cursor-best-practices / rules
Cursor rule7 starsChanged 10 months agoMITView on GitHub
Architecture and design decisions for cursor-best-practices skill. Understanding design choices, structure rationale, organization patterns, content relationships, file dependencies, standards compliance, performance considerations, maintenance workflow. How the codebase is organized, why decisions were made, what patterns are used, how content relates.
Where files are headingNew Cursor rule files have more rules about planning and tracking tasks, and fewer about code style.
Of the Cursor rule files we read, the 1,531 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository5 other files it gives its agents.
- .cursor/AGENTS.mdAGENTS.md
- .cursor/rules/codebase-structure.mdCursor rule
- .cursor/rules/content-patterns.mdCursor rule
- .cursor/rules/skill-maintenance.mdCursor rule
- cursor-best-practicesSkill
The file
We split this architecture-and-design.md into the rules it gives an agent
9 rules. About 0 are common, 9 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
Every aspect of Cursor usage is covered
- Distinctive: line 47
All content designed to:
- Distinctive: line 103
Use-case index - Find by task
- Distinctive: line 120
All rules enhanced with:
- Distinctive: line 194
Only relevant rules included
- Distinctive: line 209
Create rule in appropriate category
- Distinctive: line 210
Use template for structure
- Distinctive: line 218
Update indexes if needed
- Distinctive: line 220
Verify links still work
≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Architecture and Design
Understanding the architecture and design decisions of the cursor-best-practices skill codebase.
Design Principles
1. Standards Compliance
The skill follows three standards simultaneously:
- Agent Skills Specification - Official open standard
- skills.sh - Skill discovery and installation platform
- Cursor Skills - Cursor's skill system
This ensures maximum compatibility and usability.
2. Comprehensive Coverage
250+ rules ensure:
- Every aspect of Cursor usage is covered
- Users can find guidance for any question
- Multiple discovery paths (indexes, categories, queries)
3. Atomic Rules
One practice per file:
- Easy to find and reference
- Clear scope and purpose
- Can be enhanced independently
- Efficient loading (only relevant rules load)
4. Progressive Enhancement
Content loads progressively:
- SKILL.md provides overview
- Rules provide specific guidance
- References provide deep dives
- Indexes enable discovery
5. User-Focused
All content designed to:
- Help users understand Cursor
- Provide actionable guidance
- Include practical examples
- Enable effective usage
Structure Rationale
Nested Folder Structure
cursor-best-practices/
└── cursor-best-practices/ # Skill folder
└── SKILL.mdWhy:
- Repository name must match skill name for
npx skills add - Skills.sh expects this structure
- Allows direct GitHub installation
Category Organization
Rules organized by category:
agent/- Agent-related contentcontext/- Context managementfeatures/- Cursor featuresintegrations/- External integrationsconfiguration/- Configuration optionscookbook/- Examples and patternstroubleshooting/- Problem solvingget-started/- Getting started
Why:
- Logical grouping by topic
- Easy navigation
- Clear mental model
- Scalable structure
Separate References
References separate from rules:
- Rules: Concise, atomic practices
- References: Comprehensive deep dives
Why:
- Keeps rules under 500 lines
- Avoids duplication
- Enables focused reading
- Links maintain relationships
Multiple Indexes
8 different indexes:
- Query index - Find by question
- Feature index - Find by feature
- Use-case index - Find by task
- Setup index - Find setup guides
- Pattern index - Find patterns
- Integration index - Find integrations
- Configuration index - Find config
- Troubleshooting index - Find solutions
Why:
- Different discovery paths
- Multiple entry points
- User flexibility
- Comprehensive coverage
Content Patterns
Rule Enhancement Pattern
All rules enhanced with:
- Keyword-rich descriptions (multiple phrasings)
- Enhanced tags (query variations)
- Related Queries section
- See Also links
Why:
- Better relevance matching
- Improved discoverability
- Multiple query paths
- Clear relationships
Do/Don't Pattern
Rules use Do/Don't structure:
- Clear correct approach
- Clear incorrect approach
- Examples for both
- Easy to understand
Why:
- Clear guidance
- Prevents mistakes
- Practical examples
- Easy to follow
Template Pattern
Templates provided for:
- Rules (
_template.md) - Skills (
_template-skill.md) - Commands (examples in commands/)
Why:
- Consistency
- Easy creation
- Best practices
- Quick start
File Relationships
Dependency Graph
SKILL.md
├── links to → rules/_sections.md
├── links to → commands/
├── links to → agents/
├── links to → skills/
└── links to → references/
rules/_sections.md
└── indexes → all rule files
indexes/
└── reference → rule files
references/
└── link to → rule filesContent Flow
- User asks question → Skill activates
- SKILL.md → Provides overview
- Indexes → Help find relevant rules
- Rules → Provide specific guidance
- References → Provide deep dives
Performance Considerations
Lazy Loading
- Rules load on demand
- Only relevant rules included
- File-specific rules use globs
- Indexes enable quick discovery
Efficient Structure
- Atomic rules (small files)
- Linked content (not duplicated)
- Organized categories (easy navigation)
- Multiple indexes (fast discovery)
Maintenance Patterns
Adding Content
- Create rule in appropriate category
- Use template for structure
- Add to
_sections.md - Update relevant indexes
- Update CHANGELOG.md
Updating Content
- Modify rule file
- Update indexes if needed
- Update CHANGELOG.md
- Verify links still work
Tracking Changes
- CHANGELOG.md for notable changes
- metadata.json for version
- SKILL.md frontmatter for version
- Git history for detailed changes
Standards Compliance
Agent Skills Specification
- ✅ SKILL.md with proper frontmatter
- ✅ Correct directory structure
- ✅ Optional directories (references, indexes)
- ✅ Standards-compliant format
skills.sh
- ✅ GitHub repository structure
- ✅ Installable via
npx skills add - ✅ Proper metadata.json
- ✅ README.md with installation
Cursor Skills
- ✅ Compatible with
.cursor/skills/ - ✅ Works with skill discovery
- ✅ Supports Cursor features
- ✅ References Cursor docs
See Also
- Codebase Structure
- Skill Maintenance
- SKILL.md
- Agent Skills Specification
- skills.sh Documentation
- Cursor Skills Documentation
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

