@blefnk/1001-markdown
Always use for writing or updating Markdown files to ensure consistent formatting and readability across documentation globs: **/*.{m
prpm install @blefnk/1001-markdown0 total downloads
📄 Full Prompt Content
---
description: Always use for writing or updating Markdown files to ensure consistent formatting and readability across documentation
globs: **/*.{md,mdx}
alwaysApply: false
---
# Markdown Documentation Standards
<author>blefnk/rules</author>
<version>1.0.0</version>
## Context
- Applies to all `.md` and `.mdx` files.
- Ensures clear, structured, and consistent formatting.
## Requirements
- Follow the [Markdown Guide](mdc:https:/www.markdownguide.org) for syntax.
- Maintain logical document structure and readability.
- Use minimal, structured YAML front matter when needed.
- Leverage Mermaid diagrams for complex visual documentation.
## Markdown Formatting Rules
- Use ATX-style headings (`# Heading`), maintaining a proper hierarchy (max depth: 4).
- Add a blank line before and after headings.
- Indent XML tag content by 2 spaces; close tags on a new line.
- Use blockquotes with emoji for callouts (Warning, Tip, Note).
<example>
> 🚨 **Warning:** Critical information.
> 💡 **Tip:** Helpful suggestion.
> 📝 **Note:** Additional context.
</example>
## Code Blocks
- Use triple backticks and specify language.
- Indent properly within blocks.
- Add a blank line before and after the block.
- Use inline code for short references.
<example>
```typescript
function example(): void {
console.log("Hello, Reliverse!");
}
```
Use `example()` inline.
</example>
## Tables
- Use alignment indicators (`:---`, `:---:`, `---:`).
- Include a header row and separator.
- Keep tables simple, with 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:
<example>
> 🚨 **Warning:** Critical information.
> 💡 **Tip:** Helpful suggestion.
> 📝 **Note:** Additional context.
</example>
### Mermaid Diagrams
Use Mermaid for architecture flows, decision trees, state machines, and AI agent rule flows.
#### Diagram Best Practices
1. Add a title (`--- title: Example ---`).
2. Use descriptive node labels.
3. Comment complex flows.
4. Group related components in subgraphs.
5. Maintain consistent layout (`TD`, `LR`, `TB`).
6. Keep diagrams focused.
<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>
## Examples
<example>
```md
# Heading
> 🚨 **Warning:** Important detail.
```
✅ Proper headings, callouts, and spacing.
</example>
<example type="invalid">
❌ No headings.
❌ Inline code block missing triple backticks.
</example>
💡 Suggested Test Inputs
Loading suggested inputs...
🎯 Community Test Results
Loading results...
📦 Package Info
- Format
- cursor
- Type
- rule
- Category
- general
- License
- MIT