Error in user YAML: (<unknown>): did not find expected alphabetic or numeric character while scanning an alias at line 2 column 8
---
description: Always use for writing or updating Markdown files to ensure consistent formatting and readability across documentation
globs: **/*.{md,mdx}
alwaysApply: false
---
blefnk/rules 1.0.0
- Applies to all
.mdand.mdxfiles. - Ensures clear, structured, and consistent formatting.
- Follow the Markdown Guide for syntax.
- Maintain logical document structure and readability.
- Use minimal, structured YAML front matter when needed.
- Leverage Mermaid diagrams for complex visual documentation.
- 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).
🚨 Warning: Critical information. 💡 Tip: Helpful suggestion. 📝 Note: Additional context.
- 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.
function example(): void {
console.log("Hello, Reliverse!");
}Use example() inline.
- Use alignment indicators (
:---,:---:,---:). - Include a header row and separator.
- Keep tables simple, with blank lines before and after.
| Name | Type | Description |
|---|---|---|
| id | number | Primary key |
| name | string | User's name |
Use blockquotes with emoji:
🚨 Warning: Critical information. 💡 Tip: Helpful suggestion. 📝 Note: Additional context.
Use Mermaid for architecture flows, decision trees, state machines, and AI agent rule flows.
- Add a title (
--- title: Example ---). - Use descriptive node labels.
- Comment complex flows.
- Group related components in subgraphs.
- Maintain consistent layout (
TD,LR,TB). - Keep diagrams focused.
---
title: Example Workflow
---
graph TD
A[Start] --> B{Decision}
B -->|Yes| C[Process 1]
B -->|No| D[Process 2]
C --> E[End]
D --> E
graph TD
A-->B
B-->C
❌ No title, unclear labels, no context.
# Heading
> 🚨 **Warning:** Important detail.
✅ Proper headings, callouts, and spacing.
❌ No headings. ❌ Inline code block missing triple backticks.