agentleFS
synaptiaisynaptiai/prompt-decorators/.cursor/rules/400-md-docs.mdc

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.

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

    Follow the official Markdown Guide for all basic and extended syntax

    line 9
  2. Distinctive:

    Use Mermaid diagrams for visual documentation where appropriate

    line 12
  3. Distinctive:

    Always Include YAML front matter for metadata but Keep metadata concise

    line 13
  4. Very specific:

    Use ATX-style headings with space after hash: # Heading

    line 23
  5. Distinctive:

    Add blank line before and after headings

    line 26
  6. Distinctive:

    Use blockquotes with emoji for different types of callouts:

    line 29
  7. Distinctive:

    Use triple backticks with language specification

    line 41
  8. Distinctive:

    Add blank line before and after

    line 43
  9. Distinctive:

    Use inline code for short references

    line 44
  10. Distinctive:

    Keep tables simple and readable

    line 60
  11. Distinctive:

    Add blank lines before and after

    line 61
  12. Distinctive:

    Use Mermaid diagrams to visualize:

    line 86
  13. Distinctive:

    Use descriptive node labels

    line 105
  14. Distinctive:

    Add comments for complex flows

    line 106
  15. Very specific:

    Use consistent direction (TD/LR/TB)

    line 108
  16. Distinctive:

    Keep diagrams focused and specific

    line 109
  17. Distinctive:

    No title, unclear labels, no context </example>

    line 132

≈ “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
400-md-docs.mdc
---
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>

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.