mermaid-architecture-diagrams
Installation
SKILL.md
Mermaid Architecture Diagrams
Produce diagrams that are correct, legible in print, and consistent as a set — not just syntactically valid Mermaid.
The one non-negotiable rule
Never trust unrendered diagram code. Mermaid layout is emergent: label widths, edge routing, and subgraph sizing only exist after rendering. The loop is:
- Author the
.mmd - Render it:
scripts/render-mmd.sh diagram.mmd - Look at the preview image (the script writes a
*-preview.pngsized for inspection) - Fix clipping, overlaps, label collisions, edge crossings — re-render
- Repeat until clean (minimum one fix round; diagrams are never right first try)
A diagram you haven't looked at is a draft, not a deliverable.