mermaid-diagram
SKILL.md
Mermaid CLI Skill
Create, edit, and validate Mermaid diagrams using the mmdc command-line tool. This skill ensures diagrams are syntactically correct and visually well-organized before finalizing.
Core Principles
- Always validate syntax - Run
mmdcto check syntax before considering a diagram complete - Always inspect visually - Read the generated SVG to evaluate node arrangement
- Always get user approval - Open the SVG for user review before finalizing
- Prioritize clarity - Diagrams are for humans; organized layouts matter
Workflow: Creating New Diagrams
Step 1: Set Up Working Directory
Generate a unique session ID and create the working directory: