draw-diagrams-with-mermaid
Installation
SKILL.md
Draw Diagrams with Mermaid
Purpose
This skill allows the agent to generate diagrams (PNG, SVG, PDF) from Mermaid text syntax. It follows a robust workflow involving markdown files and verification.
1. Safety & Verification
Before executing any commands, the agent must:
- Check Tool: Verify
mmdcis installed by runningmmdc --version. - Verify Syntax: All node labels MUST be double-quoted (e.g.,
A["Start"]). - Reference Examples: Consult
.cursor/skills/draw-diagrams-with-mermaid/references/mermaid-syntax.mdfor compliant examples.
2. Common Workflows
Workflow: Generate Diagram from Markdown (Primary)
The standard way to generate a diagram is to first create a markdown file containing the Mermaid block and then render it.