What problem does it solve? Creating and maintaining architecture diagrams as code is error-prone: Mermaid syntax errors break rendering, diagrams drift out of sync with the codebase, and exported images require manual CLI work. This Skill provides validated diagram generation, styling rules, and document templates so architecture documentation stays consistent and renderable. ## Core Features & Use Cases - Diagram Generation & Validation: Create flowcharts, sequence, ER, class, state, C4, and deployment diagrams with a resilient script that validates syntax via mermaid-cli and retries on errors. - Image Export & Extraction: Convert .mmd files to PNG/SVG, batch-render directories, and extract or validate Mermaid blocks embedded in Markdown files. - Design Document Templates: Populate ready-made templates for architecture, system, API, database, and feature design documents stored in docs/architecture/. - Use Case: After refactoring a microservices system, ask the AI to regenerate the C4 context diagram and sequence diagrams, validate them with mmdc, and embed them in docs/architecture/system-architecture.md. ## Quick Start Generate a validated Mermaid architecture diagram of my system's API flow and save it with an exported PNG to docs/architecture/.