AI SummaryCursor Rules template providing a problem-solving methodology framework for AI-assisted debugging and code analysis. Useful for developers seeking structured approaches to troubleshooting within Cursor IDE.
Install
Copy this and paste it into Claude Code, Cursor, or any AI assistant:
I want to add the "ai-template — Cursor Rules" prompt rules to my project. Repository: https://github.com/jasonstcyrx/ai-template Please read the repo to find the rules/prompt file, then: 1. Download it to the correct location (.cursorrules, .windsurfrules, .github/prompts/, or project root — based on the file type) 2. If there's an existing rules file, merge the new rules in rather than overwriting 3. Confirm what was added
Description
Cursor Rules for ai-template
Searched for Internal Tools access control
codebase_search: "Internal Tools super admin access control authentication" grep_search: "Internal Tools" in .tsx,.ts files ` Why this approach: I gathered information from multiple angles simultaneously rather than sequentially. This gave me a complete picture faster: • Backend authentication logic • Frontend component structure • Route protection mechanisms
1. **Initial Problem Assessment**
What I did: Started by understanding the exact symptoms • You could see Internal Tools before, now you can't • You're logged in as Super Admin • The UI shows you're on the Synthetic Order Generator page but access is restricted Why this matters: Clear problem definition prevents solving the wrong issue. I needed to distinguish between "tools disappeared" vs "access denied" vs "broken navigation."
2. **Information Gathering Through Code Analysis**
What I did: Used parallel searches to understand the system architecture `bash
3. **Component Flow Analysis**
What I did: Traced the path from user login to Internal Tools display • Found MerchantSidebar.tsx controls the menu display • Identified the condition: userRole === "Super Admin" • Located where userRole comes from: user?.user_type in AppLayout Why this works: Understanding the data flow helps identify where the breakdown occurs. The issue could be at any point in this chain.
Discussion
Health Signals
My Fox Den
Community Rating
Sign in to rate this booster
Works With
Any AI assistant that accepts custom rules or system prompts