What problem does it solve? Writing Mermaid diagram syntax by hand is error-prone, and broken diagrams fail silently in documentation. This Skill generates syntactically correct Mermaid code, validates it with the mermaid-cli, auto-fixes errors, and renders output files on request. ## Core Features & Use Cases - Diagram Generation: Produces Mermaid code for 20+ diagram types including flowcharts, sequence diagrams, class diagrams, ER diagrams, Gantt charts, C4 architecture, and state diagrams. - Validation & Auto-Correction: Runs mmdc validation on every diagram and iteratively fixes syntax errors until the diagram compiles. - Code-to-Diagram Analysis: Converts source code structure into class, sequence, flowchart, or state diagrams by extracting entities, relationships, and control flow. - Use Case: Ask for a sequence diagram of your OAuth login flow; the Skill writes the .mmd file, validates it with mermaid-cli, fixes any errors, and renders an SVG preview. ## Quick Start Create a Mermaid sequence diagram showing the user authentication flow and save it as an SVG file.