agentleFS
jimmypocockjimmypocock/cursor-rules/.cursor/rules/readme-documentation.mdc

cursor-rules / rules

Cursor rule8 starsChanged 19 months agoMITView on GitHub

The file

Show its rules and text

We split this readme-documentation.mdc into the rules it gives an agent

28 rules. About 0 are common, 28 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈28

    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
  1. Distinctive:

    Add badges for build status, version, license, etc.

    line 17
  2. Distinctive:

    Use visual elements (screenshots, diagrams) when they add value

    line 20
  3. Distinctive:

    Keep the main README under 1000 lines.

    line 22
  4. Distinctive:

    Write in a clear, direct style with active voice

    line 36
  5. Distinctive:

    Use consistent formatting for commands, code, and outputs

    line 37
  6. Distinctive:

    Use proper Markdown formatting for improved readability

    line 41
  7. Distinctive:

    Keep code examples concise but complete

    line 43
  8. Distinctive:

    Use syntax highlighting with proper language tags

    line 47
  9. Distinctive:

    Ensure examples are up-to-date with current API

    line 51
  10. Distinctive:

    Use consistent style across all examples

    line 52
  11. Distinctive:

    Test all examples to ensure they work as documented

    line 53
  12. Distinctive:

    Keep the main README.md focused on getting started

    line 56
  13. Distinctive:

    Create a docs/ directory for detailed documentation

    line 57
  14. Distinctive:

    Create separate files for different aspects of the project

    line 60
  15. Distinctive:

    Use a consistent naming convention for documentation files

    line 61
  16. Distinctive:

    Consider different user types (beginners, experts, etc.)

    line 66
  17. Distinctive:

    Place essential "getting started" information prominently

    line 68
  18. Distinctive:

    Create FAQ sections for common questions

    line 71
  19. Distinctive:

    Update docs when features change

    line 76
  20. Distinctive:

    Consider using documentation generators for API docs

    line 86
  21. Distinctive:

    Use diagram-as-code tools (Mermaid, PlantUML) for diagrams

    line 88
  22. Distinctive:

    Create a style guide for documentation contributors

    line 89
  23. Distinctive:

    Use templates for common documentation patterns

    line 91
  24. Distinctive:

    Consider using a static site generator for complex documentation

    line 92
  25. Distinctive:

    Document design decisions and trade-offs

    line 97
  26. Distinctive:

    Create deployment environment specifications

    line 98
  27. Distinctive:

    Document known limitations and future roadmap

    line 100
  28. Distinctive:

    Document integration points with other systems

    line 103

≈ “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
readme-documentation.mdc
---
description: 
globs: 
alwaysApply: true
---
---
Description: Best practices for README and project documentation
Globs: **/README.md, **/docs/**/*.md
---

# README Documentation Standards
@base.mdc

## README Structure
- Begin with a clear, concise project title
- Include a brief description directly under the title
- Add badges for build status, version, license, etc. when applicable
- Structure with clear, hierarchical headings
- Include a table of contents for longer READMEs
- Use visual elements (screenshots, diagrams) when they add value
- End with relevant supplementary sections (license, contributing, etc.)
- Keep the main README under 1000 lines; link to docs/ for details

## Essential Sections
- **Introduction** - What the project is and its primary purpose
- **Features** - Key capabilities, preferably as a bulleted list
- **Installation** - Step-by-step instructions for getting started
- **Usage** - Basic examples showing common use cases
- **Configuration** - Environment variables and settings
- **API Documentation** - For libraries and services
- **Deployment** - Instructions for deploying to production
- **Contributing** - How others can contribute to the project
- **License** - The project's license information

## Documentation Style
- Write in a clear, direct style with active voice
- Use consistent formatting for commands, code, and outputs
- Highlight important notes and warnings using blockquotes or admonitions
- Include version-specific information when relevant
- Maintain a friendly, helpful tone throughout
- Use proper Markdown formatting for improved readability
- Include anchors for deep linking to specific sections
- Keep code examples concise but complete

## Code Examples
- Include complete, working examples
- Use syntax highlighting with proper language tags
- Show both simple and advanced use cases
- Include expected output when applicable
- Comment code examples for clarity
- Ensure examples are up-to-date with current API
- Use consistent style across all examples
- Test all examples to ensure they work as documented

## Documentation Organization
- Keep the main README.md focused on getting started
- Create a docs/ directory for detailed documentation
- Organize docs/ by topic or user journey
- Include an index.md in docs/ to guide navigation
- Create separate files for different aspects of the project
- Use a consistent naming convention for documentation files
- Cross-link between related documentation sections
- Include a CHANGELOG.md for version history

## Writing for Different Audiences
- Consider different user types (beginners, experts, etc.)
- Structure documentation to serve all user levels
- Place essential "getting started" information prominently
- Provide deeper technical details in later sections
- Include architecture details for contributors
- Create FAQ sections for common questions
- Include troubleshooting guides for common issues
- Link to further learning resources when appropriate

## Maintaining Documentation
- Update docs when features change
- Review documentation during release process
- Date and version documentation when appropriate
- Implement documentation reviews as part of PRs
- Make documentation updates atomic with code changes
- Archive outdated documentation rather than deleting
- Mark deprecated features clearly
- Maintain a consistent voice even with multiple contributors

## Documentation Tools (if applicable)
- Consider using documentation generators for API docs
- Implement Markdown linting for consistency
- Use diagram-as-code tools (Mermaid, PlantUML) for diagrams
- Create a style guide for documentation contributors
- Set up automated checks for broken links
- Use templates for common documentation patterns
- Consider using a static site generator for complex documentation
- Implement search functionality for larger documentation sets

## Project-Specific Documentation
- Include system architecture diagrams for complex projects
- Document design decisions and trade-offs
- Create deployment environment specifications
- Include performance benchmarks when relevant
- Document known limitations and future roadmap
- Include security considerations and best practices
- Provide migration guides between major versions
- Document integration points with other systems

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.