What problem does it solve?
This Skill removes the guesswork of translating user requirements into correct Mermaid syntax by generating diagrams and verifying they render successfully.
Core Features & Use Cases
- Diagram-type selection from requirements: Picks an appropriate Mermaid diagram type (e.g., flowchart, sequence, ER, Gantt) based on what the user describes.
- Automated generation with structured file outputs: Writes raw Mermaid source to figures as a .mmd file and a preview-friendly .md file.
- Mandatory syntax verification loop: Uses Mermaid CLI (mmdc, or npx fallback) to render a PNG and iterates up to three times to fix syntax issues.
- Broad Mermaid diagram coverage: Supports many diagram styles including flowcharts, sequence diagrams, class diagrams, ER diagrams, Gantt charts, and more.
Quick Start
Use the mermaid-diagram skill to generate a diagram by describing what you want (including the intended diagram type if you know it), and the Skill will output verified Mermaid files into the figures directory.