transcripts-mcp / rules
Cursor rule8 starsChanged 2 months agoMITView on GitHub
Use when user asks to create or update *.mdc files
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 4,157 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 repository33 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .deepsec/AGENTS.mdAGENTS.md
- .cursor/rules/010-workflow.mdcCursor rule
- .cursor/rules/020-codebase-structure.mdcCursor rule
- .cursor/rules/030-coding-style.mdcCursor rule
- .cursor/rules/031-never-use-any.mdcCursor rule
- .cursor/rules/032-import-rules.mdcCursor rule
- .cursor/rules/050-testing.mdcCursor rule
- .cursor/rules/070-comments-defensive-programming.mdcCursor rule
- .cursor/rules/080-ai-interaction.mdcCursor rule
- .cursor/rules/090-changesets.mdcCursor rule
- .cursor/rules/095-calldiff.mdcCursor rule
- .cursor/rules/990-cursor-rule-editing-workaround.mdcCursor rule
- adversarial-reviewSkill
- agent-browserSkill
- calldiffSkill
- changesetSkill
- commitSkill
- deslopSkill
- fix-prSkill
- git-conventionsSkill
- humanizerSkill
- improve-codebase-architectureSkill
- logging-best-practicesSkill
- opensrcSkill
- rebaseSkill
- recomposing-commitsSkill
- security-reviewSkill
- show-meSkill
- simplifySkill
- thermo-nuclear-code-quality-reviewSkill
- wait-whatSkill
- writing-for-agentsSkill
The file
Show its rules and text
We split this 999-mdc-format.mdc into the rules it gives an agent
22 rules. About 0 are common, 15 are distinctive, and 7 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈15
Distinctive · estimate
This author's own choices. Worth a look.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 35
description: Should be agent-friendly and clearly describe when the rule is relevant.
- Distinctive: line 37
If a rule is only relevant in very specific situations, leave globs empty so it's loaded only when applicable to the user request.
- Very specific: line 38
If the only glob would match all files (like /*), leave it empty and set alwaysApply: true instead.
- Distinctive: line 40
alwaysApply: Use sparingly for truly global guidelines.
- Distinctive: line 50
After the frontmatter, the rest of the file should be valid Markdown:
- Distinctive: line 73
When this rule is activated, the referenced file will also be included in the context.
- Distinctive: line 77
Use fenced code blocks for examples:
- Very specific: line 91
Use numbered prefixes (e.g., 01-workflow.mdc) for sorting rules logically
- Very specific: line 92
Place task-specific rules in the tasks/ subdirectory
- Distinctive: line 93
Use descriptive filenames that indicate the rule's purpose
- Very specific: line 97
Use alwaysApply: true for truly global guidelines
- Distinctive: line 101
Start with a clear title (H1)
- Distinctive: line 102
Use hierarchical headings (H2, H3, etc.) to organize content
- Distinctive: line 104
Keep instructions clear and actionable
- Distinctive: line 107
Keep files focused on a single topic or closely related topics
- Distinctive: line 113
When working with files in Cursor, rules are automatically applied when:
- Very specific: line 122
When a rule file is added/renamed/removed, update also the list under 010-workflow.mdc.
- Very specific: line 123
When changs are made to multiple mdc files from a single request, review also 999-mdc-format) to consider whether to update it too.
- Distinctive: line 127
When updating existing rules:
- Distinctive: line 130
Keep the same glob patterns unless intentionally changing the rule's scope
- Distinctive: line 131
Update the description if the purpose of the rule changes
- Distinctive: line 132
Consider whether changes should propagate to related rules (e.g., CE versions)
≈ “Common” is an estimate: at least 1 in 5 of the 6,668 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: Use when user asks to create or update *.mdc files
globs: **/*.mdc
alwaysApply: false
---
# MDC File Format Guide
MDC (Markdown Configuration) files are used by Cursor to provide context-specific instructions to AI assistants. This guide explains how to create and maintain these files properly.
## File Structure
Each MDC file consists of two main parts:
1. **Frontmatter** - Configuration metadata at the top of the file
2. **Markdown Content** - The actual instructions in Markdown format
### Frontmatter
The frontmatter must be the first thing in the file and must be enclosed between triple-dash lines (`---`). Configuration should be based on the intended behavior:
```
---
# Configure your rule based on desired behavior:
description: Brief description of what the rule does
globs: **/*.js, **/*.ts # Optional: Comma-separated list, not an array
alwaysApply: false # Set to true for global rules
---
```
> **Important**: Despite the appearance, the frontmatter is not strictly YAML formatted. The `globs` field is a comma-separated list and should NOT include brackets `[]` or quotes `"`.
#### Guidelines for Setting Fields
- **description**: Should be agent-friendly and clearly describe when the rule is relevant. Format as `<topic>: <details>` for best results.
- **globs**:
- If a rule is only relevant in very specific situations, leave globs empty so it's loaded only when applicable to the user request.
- If the only glob would match all files (like `**/*`), leave it empty and set `alwaysApply: true` instead.
- Otherwise, be as specific as possible with glob patterns to ensure rules are only applied with relevant files.
- **alwaysApply**: Use sparingly for truly global guidelines.
#### Glob Pattern Examples
- **/*.js - All JavaScript files
- src/**/*.jsx - All JSX files in the src directory
- **/components/**/*.vue - All Vue files in any components directory
### Markdown Content
After the frontmatter, the rest of the file should be valid Markdown:
```markdown
# Title of Your Rule
## Section 1
- Guidelines and information
- Code examples
## Section 2
More detailed information...
```
## Special Features
### File References
You can reference other files from within an MDC file using the markdown link syntax:
```
[rule-name.mdc](mdc:location/of/the/rule.mdc)
```
When this rule is activated, the referenced file will also be included in the context.
### Code Blocks
Use fenced code blocks for examples:
````markdown
```javascript
// Example code
function example() {
return "This is an example";
}
```
````
## Best Practices
1. **Clear Organization**
- Use numbered prefixes (e.g., `01-workflow.mdc`) for sorting rules logically
- Place task-specific rules in the `tasks/` subdirectory
- Use descriptive filenames that indicate the rule's purpose
2. **Frontmatter Specificity**
- Be specific with glob patterns to ensure rules are only applied in relevant contexts
- Use `alwaysApply: true` for truly global guidelines
- Make descriptions clear and concise so AI knows when to apply the rule
3. **Content Structure**
- Start with a clear title (H1)
- Use hierarchical headings (H2, H3, etc.) to organize content
- Include examples where appropriate
- Keep instructions clear and actionable
4. **File Size Considerations**
- Keep files focused on a single topic or closely related topics
- Split very large rule sets into multiple files and link them with references
- Aim for under 300 lines per file when possible
## Usage in Cursor
When working with files in Cursor, rules are automatically applied when:
1. The file you're working on matches a rule's glob pattern
2. A rule has `alwaysApply: true` set in its frontmatter
3. The agent thinks the rule's description matches the user request
4. You explicitly reference a rule in a conversation with Cursor's AI
## Creating/Renaming/Removing Rules
- When a rule file is added/renamed/removed, update also the list under 010-workflow.mdc.
- When changs are made to multiple `mdc` files from a single request, review also [999-mdc-format](mdc:(mdc:.cursor/rules/999-mdc-format.mdc)) to consider whether to update it too.
## Updating Rules
When updating existing rules:
1. Maintain the frontmatter format
2. Keep the same glob patterns unless intentionally changing the rule's scope
3. Update the description if the purpose of the rule changes
4. Consider whether changes should propagate to related rules (e.g., CE versions)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.

