dotnet-cursor-rules / rules
Cursor rule134 starsChanged 22 months agoApache-2.0View on GitHub
A meta-rule for using Cursor to update *.mdc file in this repository.
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.
The file
We split this meta.mdc into the rules it gives an agent
12 rules. About 0 are common, 10 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈10
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Don't modify existing line endings
- Distinctive: line 18
Keep line length consistent with existing code
- Very specific: line 23
Always commit changes to *.mdc files directly
- Very specific: line 24
Ensure changes to *.mdc files are synchronized with their implementation
- Distinctive: line 26
Prefer modifying existing files over creating new ones unless explicitly requested
- Distinctive: line 27
When adding new content, first check if it fits within an existing rule file
- Distinctive: line 32
Only create new rule files when:
- Distinctive: line 36
Document the rationale for creating new files in their README.md
- Distinctive: line 43
Keep indentation consistent with file style
- Distinctive: line 46
Keep file structure consistent
- Distinctive: line 47
Don't move files without updating all references
- Distinctive: line 53
Always include "do" and "don't" examples when showing specific changes to files or syntax
≈ “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: A meta-rule for using Cursor to update *.mdc file in this repository.
globs: *.mdc
---
# Cursor Rules
This document outlines the meta-rules for cursor operations in this repository.
## Line Ending & Formatting Rules
1. **Line Endings**
- Don't modify existing line endings
- Preserve CRLF/LF as found in the original file
2. **Whitespace**
- Preserve trailing whitespace where it exists
- Maintain existing indentation style (spaces vs tabs)
- Keep line length consistent with existing code
## File Handling
1. **MDC Files**
- Always commit changes to `*.mdc` files directly
- Ensure changes to `*.mdc` files are synchronized with their implementation
- Maintain consistent formatting within MDC files
- Prefer modifying existing files over creating new ones unless explicitly requested
- When adding new content, first check if it fits within an existing rule file
2. **File Creation**
- Only create new rule files when:
- Explicitly requested by the user
- The content doesn't logically fit in any existing rule file
- Creating a new file would significantly improve organization and clarity
- Document the rationale for creating new files in their README.md
## Code Style & Structure
1. **Formatting**
- Preserve existing code formatting patterns
- Maintain consistent naming conventions
- Keep indentation consistent with file style
2. **Organization**
- Keep file structure consistent
- Don't move files without updating all references
- Maintain existing import/include order
## Rule Content
1. **Examples**
- Always include "do" and "don't" examples when showing specific changes to files or syntax
- Include helpful comments that explain why an example is a "do" or a "don't"
## Documentation
1. **README.md**
- Each `*.mdc` file is lumped into a folder with a `README.md` file explaining what the rule does and when it's used. 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.

