What problem does it solve?
This Skill eliminates the trial-and-error of writing Mermaid diagrams by generating correct diagram syntax from requirements and verifying it renders successfully.
Core Features & Use Cases
- Mermaid code generation: Produces high-quality Mermaid diagram source from your diagram description, choosing an appropriate diagram type (flowchart, sequence, ER, class, Gantt, and more).
- Dual-file output for preview and editing: Saves both a raw Mermaid file and a GitHub/Markdown preview file with embedded Mermaid code.
- Automated syntax verification: Renders the Mermaid file via Mermaid CLI (mmdc, with an npx fallback), then performs a strict visual review and iteratively fixes errors up to three attempts.
- Use Case: Describe your system behavior (e.g., a data pipeline, training process, or architecture interaction), then automatically generate publication-ready diagrams with consistent structure.
Quick Start
Use the mermaid-diagram skill to generate a verified diagram for your requirements and save the .mmd, .md, and .png outputs to the figures/ directory.