prompt-decorators / rules
Cursor rule44 starsChanged 21 months agoApache-2.0View on GitHub
ALWAYS use when writing or updating Markdown files to ensure consistent formatting and readability. This rule enforces standardized Markdown practices across all documentation.
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 repository6 other files it gives its agents.
- .cursor/rules/000-cursor-rules.mdcCursor rule
- .cursor/rules/001-emoji-communication.mdcCursor rule
- .cursor/rules/050-careful-code-modification.mdcCursor rule
- .cursor/rules/060-coding-patterns.mdcCursor rule
- .cursor/rules/070-workflow-preferences.mdcCursor rule
- .cursor/rules/900-software-dev-decorators.mdcCursor rule
The file
Show its rules and text
We split this 400-md-docs.mdc into the rules it gives an agent
17 rules. About 0 are common, 15 are distinctive, and 2 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.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Follow the official Markdown Guide for all basic and extended syntax
- Distinctive: line 12
Use Mermaid diagrams for visual documentation where appropriate
- Distinctive: line 13
Always Include YAML front matter for metadata but Keep metadata concise
- Very specific: line 23
Use ATX-style headings with space after hash: # Heading
- Distinctive: line 26
Add blank line before and after headings
- Distinctive: line 29
Use blockquotes with emoji for different types of callouts:
- Distinctive: line 41
Use triple backticks with language specification
- Distinctive: line 43
Add blank line before and after
- Distinctive: line 44
Use inline code for short references
- Distinctive: line 60
Keep tables simple and readable
- Distinctive: line 61
Add blank lines before and after
- Distinctive: line 86
Use Mermaid diagrams to visualize:
- Distinctive: line 105
Use descriptive node labels
- Distinctive: line 106
Add comments for complex flows
- Very specific: line 108
Use consistent direction (TD/LR/TB)
- Distinctive: line 109
Keep diagrams focused and specific
- Distinctive: line 132
No title, unclear labels, no context </example>
≈ “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: ALWAYS use when writing or updating Markdown files to ensure consistent formatting and readability. This rule enforces standardized Markdown practices across all documentation.
globs: **/*.{md,mdx}
---
# Markdown Documentation Standards
## Requirements
- Follow the official [Markdown Guide](mdc:https:/www.markdownguide.org) for all basic and extended syntax
- Maintain clear document structure and readability
- Include appropriate metadata when required
- Use Mermaid diagrams for visual documentation where appropriate
- Always Include YAML front matter for metadata but Keep metadata concise
## Markdown Reference
For all basic and extended Markdown syntax, refer to:
- [Basic Syntax Guide](mdc:https:/www.markdownguide.org/basic-syntax)
- [Extended Syntax Guide](mdc:https:/www.markdownguide.org/extended-syntax)
## Formatting Rules
- Use ATX-style headings with space after hash: `# Heading`
- Maintain proper heading hierarchy (don't skip levels)
- Maximum heading depth: 4 levels
- Add blank line before and after headings
- Indent content within XML tags by 2 spaces
- Close XML tags on their own line at the parent indentation level
- Use blockquotes with emoji for different types of callouts:
<example>
> 🚨 **Warning:** Critical information here.
> 💡 **Tip:** Helpful suggestion.
> ℹ️ **Note:** Additional context.
</example>
## Code Blocks
- Use triple backticks with language specification
- Indent code blocks properly
- Add blank line before and after
- Use inline code for short references
<example>
```typescript
function example(): void {
console.log('Hello, Universe!');
}
```
Reference the `example()` function inline.
</example>
## Tables
- Use alignment indicators
- Include header row separator
- Keep tables simple and readable
- Add blank lines before and after
<example>
| Name | Type | Description |
|:--------|:-------:|---------------:|
| id | number | Primary key |
| name | string | User's name |
</example>
## Special Elements
### Callouts
Use blockquotes with emoji for different types of callouts:
<example>
> 🚨 **Warning:** Critical information here.
> 💡 **Tip:** Helpful suggestion.
> ℹ️ **Note:** Additional context.
</example>
### Mermaid Diagrams
Use Mermaid diagrams to visualize:
- Architecture flows
- Process sequences
- Decision trees
- State machines
- Component relationships
- AI agent rule flows
### When to Use Mermaid
- Simple and Complex workflows need visualization
- System architecture needs to be explained
- Process flows have multiple branches
- State transitions need to be clear
- AI decision trees need to be mapped
### Diagram Best Practices
1. Include clear titles using the `---` syntax
2. Use descriptive node labels
3. Add comments for complex flows
4. Group related components using subgraphs
5. Use consistent direction (TD/LR/TB)
6. Keep diagrams focused and specific
<example>
```mermaid
---
title: Example Workflow
---
graph TD
A[Start] --> B{Decision}
B -->|Yes| C[Process 1]
B -->|No| D[Process 2]
C --> E[End]
D --> E
```
</example>
<example type="invalid">
```mermaid
graph TD
A-->B
B-->C
```
No title, unclear labels, no context
</example>
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.

