cursor-rules / rules
Cursor rule8 starsChanged 19 months agoMITView on GitHub
Best practices for organizing the docs/ directory
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,533 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 repository17 other files it gives its agents.
- .cursor/rules/aws-bedrock.mdcCursor rule
- .cursor/rules/aws-cloudformation.mdcCursor rule
- .cursor/rules/aws-dynamodb.mdcCursor rule
- .cursor/rules/aws-eventbridge.mdcCursor rule
- .cursor/rules/aws-gamelift.mdcCursor rule
- .cursor/rules/aws-iam.mdcCursor rule
- .cursor/rules/aws-lambda.mdcCursor rule
- .cursor/rules/aws-sagemaker.mdcCursor rule
- .cursor/rules/aws-sam.mdcCursor rule
- .cursor/rules/aws-vpc.mdcCursor rule
- .cursor/rules/base.mdcCursor rule
- .cursor/rules/expo.mdcCursor rule
- .cursor/rules/nextjs.mdcCursor rule
- .cursor/rules/react.mdcCursor rule
- .cursor/rules/react-native.mdcCursor rule
- .cursor/rules/readme-documentation.mdcCursor rule
- .cursor/rules/typescript.mdcCursor rule
The file
Show its rules and text
We split this docs-structure.mdc into the rules it gives an agent
27 rules. About 0 are common, 27 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈27
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 16
Create a clear, logical hierarchy for documentation files
- Distinctive: line 17
Use a consistent naming convention (kebab-case recommended)
- Distinctive: line 22
Create sidebar navigation for complex documentation
- Distinctive: line 23
Use folders to separate different documentation types
- Distinctive: line 38
Use consistent heading levels (## for main sections, ### for subsections)
- Distinctive: line 40
Add "Next Steps" or "See Also" sections at the end
- Distinctive: line 43
Keep individual files focused on a single topic
- Distinctive: line 46
Write in a clear, conversational style
- Distinctive: line 47
Use active voice and present tense
- Distinctive: line 49
Use consistent terminology throughout
- Distinctive: line 50
Create glossaries for complex terminology
- Distinctive: line 53
Use tables to organize structured information
- Distinctive: line 58
Tutorial: - Start-to-finish walkthrough with context
- Distinctive: line 63
Decision Record: - Document important decisions
- Distinctive: line 67
Create version-specific documentation directories when needed
- Distinctive: line 68
Document breaking changes prominently
- Distinctive: line 71
Use feature flags to toggle content visibility
- Distinctive: line 77
Use a consistent naming convention for image files
- Distinctive: line 80
Create and store diagrams as code when possible
- Distinctive: line 82
Use animated GIFs sparingly for UI demonstrations
- Distinctive: line 86
Document each endpoint thoroughly
- Distinctive: line 88
Document all parameters and their types
- Distinctive: line 91
Document rate limits and pagination
- Distinctive: line 93
Create interactive API explorers when possible
- Distinctive: line 97
Test documentation links regularly
- Distinctive: line 101
Test documentation on different devices and screen sizes
- Distinctive: line 102
Use documentation linting tools
≈ “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
--- description: Best practices for organizing the docs/ directory globs: alwaysApply: false --- --- Description: Best practices for organizing the docs/ directory Globs: **/docs/**/*.md, **/documentation/**/*.md --- # Documentation Structure Standards @base.mdc @readme-documentation.mdc ## Documentation Organization - Create a clear, logical hierarchy for documentation files - Use a consistent naming convention (kebab-case recommended) - Group related documents in subdirectories - Include an index.md in each directory for navigation - Maintain a consistent structure across all documentation - Link between related documentation sections - Create sidebar navigation for complex documentation - Use folders to separate different documentation types ## Core Documentation Types - **Guides/** - Step-by-step instructions for common tasks - **Concepts/** - Explanations of key ideas and architecture - **Reference/** - Detailed technical reference information - **Tutorials/** - Complete walkthroughs for beginners - **API/** - API documentation if applicable - **Examples/** - Example implementations and use cases - **Troubleshooting/** - Solutions for common problems - **Contributing/** - Guidelines for project contributors ## Documentation Files Structure - Begin each file with a descriptive title (# Title) - Include a brief introduction explaining the document's purpose - Use consistent heading levels (## for main sections, ### for subsections) - Include a table of contents for longer documents - Add "Next Steps" or "See Also" sections at the end - Include metadata (author, date, version) when relevant - End with links to related documentation - Keep individual files focused on a single topic ## Technical Writing Best Practices - Write in a clear, conversational style - Use active voice and present tense - Explain technical terms on first use - Use consistent terminology throughout - Create glossaries for complex terminology - Include diagrams for complex concepts - Break long processes into numbered steps - Use tables to organize structured information ## Document Types and Templates - **Concept Document** - Explain a single concept thoroughly - **How-To Guide** - Task-focused instructions - **Tutorial** - Start-to-finish walkthrough with context - **Reference** - Comprehensive technical details - **Example** - Working code with explanation - **FAQ** - Concise answers to common questions - **Architecture Document** - System design and rationale - **Decision Record** - Document important decisions ## Version-Specific Documentation - Clearly mark version-specific information - Create version-specific documentation directories when needed - Document breaking changes prominently - Include migration guides between versions - Maintain documentation for supported older versions - Use feature flags to toggle content visibility - Link to the correct version of external documentation - Include version compatibility tables ## Media and Assets - Store images in an assets/ directory - Use a consistent naming convention for image files - Optimize images for web display - Include alt text for all images - Create and store diagrams as code when possible - Maintain source files for complex diagrams - Use animated GIFs sparingly for UI demonstrations - Include captions for complex figures ## API Documentation - Document each endpoint thoroughly - Include request and response examples - Document all parameters and their types - Show error responses and codes - Include authentication requirements - Document rate limits and pagination - Provide example code in multiple languages - Create interactive API explorers when possible ## Documentation Testing - Validate all code examples work as documented - Test documentation links regularly - Review documentation for accuracy during releases - Implement user feedback mechanisms - Gather metrics on documentation usage - Test documentation on different devices and screen sizes - Use documentation linting tools - Review documentation clarity with new team members
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.

