agentleFS
HKTITANHKTITAN/cursor-best-practices/.cursor/rules/skill-maintenance.md

cursor-best-practices / rules

Cursor rule7 starsChanged 10 months agoMITView on GitHub

Maintaining and updating cursor-best-practices skill. Adding rules, updating SKILL.md, maintaining indexes, following patterns, keeping content current. How to contribute, update content, follow structure, maintain consistency.

The file

Show its rules and text

We split this skill-maintenance.md into the rules it gives an agent

15 rules. About 0 are common, 11 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈11

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Choose location: Place in appropriate rules/ subdirectory based on topic

    line 15
  2. Distinctive:

    Write content: Follow Do/Don't or Incorrect/Correct pattern

    line 17
  3. Very specific:

    Update index: Add entry to rules/_sections.md

    line 19
  4. Distinctive:

    Update indexes: Add to relevant index files if needed

    line 20
  5. Distinctive:

    Do: [Pattern] with explanation

    line 36
  6. Distinctive:

    Don't: [Anti-pattern] with explanation

    line 37
  7. Distinctive:

    Maintain links: Ensure all links to rules/, commands/, agents/, skills/, references/ are current

    line 47
  8. Distinctive:

    Add new rule to appropriate index

    line 72
  9. Distinctive:

    Update rules when features change

    line 106
  10. Distinctive:

    Update examples to match current behavior

    line 108
  11. Very specific:

    Update CHANGELOG.md with notable changes

    line 112
  12. Very specific:

    Update SKILL.md frontmatter version

    line 114
  13. Distinctive:

    Make changes: Follow patterns and guidelines

    line 143
  14. Distinctive:

    Update indexes: Add to relevant index files

    line 144
  15. Distinctive:

    Update CHANGELOG: Document notable changes

    line 145

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
skill-maintenance.md

Skill Maintenance Guidelines

Guidelines for maintaining and updating the cursor-best-practices skill.

Adding New Rules

Process

  1. Choose location: Place in appropriate rules/ subdirectory based on topic
  2. Use template: Copy rules/_template.md as starting point
  3. Write content: Follow Do/Don't or Incorrect/Correct pattern
  4. Add frontmatter: Include keyword-rich description and tags
  5. Update index: Add entry to rules/_sections.md
  6. Update indexes: Add to relevant index files if needed

Frontmatter Requirements

---
description: "Keyword-rich description with multiple phrasings and common queries"
tags: [tag1, tag2, tag3, related-tags]
globs: ["**/*.ts"]  # Optional, for file-specific rules
alwaysApply: false  # Optional, default false
---

Content Structure

  • Brief introduction
  • Do: [Pattern] with explanation
  • Don't: [Anti-pattern] with explanation
  • Related Queries section
  • See Also section with links

Updating SKILL.md

Guidelines

  • Keep under ~500 lines: Link to rules/ and references/ instead of duplicating
  • Update when adding major sections: New categories or significant features
  • Maintain links: Ensure all links to rules/, commands/, agents/, skills/, references/ are current
  • Follow structure: Maintain existing organization and flow

When to Update

  • Adding new major category of rules
  • Significant changes to command templates
  • New reference guides
  • Major structural changes

Maintaining Indexes

Index Files

  • query-index.md - Maps user queries to rules
  • setup-workflows-index.md - Framework and project setup
  • feature-index.md - Feature-based organization
  • integration-index.md - Integration index
  • configuration-index.md - Configuration index
  • troubleshooting-index.md - Troubleshooting index
  • pattern-index.md - Pattern index
  • use-case-index.md - Use case index

Update Process

  1. Add new rule to appropriate index
  2. Maintain alphabetical or logical ordering
  3. Include brief description
  4. Link to rule file

Following Patterns

Rule Files

  • One practice per file
  • Clear Do/Don't patterns
  • Keyword-rich descriptions
  • Related queries section
  • See also links

Commands

  • Clear instructions
  • Usage examples
  • Output format specification
  • Checklist or step-by-step structure

References

  • Comprehensive coverage
  • Link to rules (don't duplicate)
  • Examples and patterns
  • Clear organization

Keeping Content Current

Tracking Cursor Docs

  • Monitor Cursor docs for changes
  • Update rules when features change
  • Reflect new features in relevant sections
  • Update examples to match current behavior

Version Updates

  • Update CHANGELOG.md with notable changes
  • Update metadata.json version
  • Update SKILL.md frontmatter version
  • Document breaking changes

Consistency Checks

Before Committing

  • Rule follows template structure
  • Frontmatter has keyword-rich description
  • Added to _sections.md
  • Updated relevant indexes
  • Links are valid
  • No duplicate content
  • Follows naming conventions
  • Under 500 lines (if rule file)

Code Review Checklist

  • Content is accurate
  • Examples are correct
  • Links work
  • Follows patterns
  • Well-organized
  • User-friendly

Contribution Workflow

  1. Identify need: Outdated info, missing content, or improvement
  2. Create issue: Discuss approach if major change
  3. Make changes: Follow patterns and guidelines
  4. Update indexes: Add to relevant index files
  5. Update CHANGELOG: Document notable changes
  6. Submit PR: Include description of changes

Key Principles

  1. User-focused: Content helps users effectively
  2. Accurate: Reflects current Cursor behavior
  3. Organized: Clear structure and navigation
  4. Consistent: Follows established patterns
  5. Maintainable: Easy to update and extend

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.