Convert the user's natural-language process into one supported Mermaid diagram:
flowchart TD or flowchart LR for business processes, decision trees, and state transitions.sequenceDiagram for actor/system interactions over time.classDiagram for domain objects, DTOs, entities, interfaces, and relationships.Generate raw Mermaid only. Do not wrap it in Markdown fences when writing .mmd files.
Read references/mermaid-generation-rules.md before producing non-trivial Mermaid, especially for sequence or class diagrams.
Save the Mermaid source as <name>.mmd.
Run the renderer script. It performs strict Mermaid parsing before conversion: bash
cd <skill-directory>
npm install
node scripts/render-mermaid-handdraw.mjs --input /path/to/<name>.mmd --out-dir /path/to/output --name <name>
The script writes:
<name>.mmd: normalized Mermaid source<name>.excalidraw: editable Excalidraw scene<name>.png: rendered PNGflowchart as the primary hand-drawn path. It converts to native Excalidraw elements and gives the best editable sketch-style result.sequenceDiagram as supported but still verify output visually when the diagram is complex.classDiagram as supported with possible image fallback inside the Excalidraw scene. If the script reports image-fallback, the PNG is valid, but editability is limited.node scripts/render-mermaid-handdraw.mjs --input <file> --validate-only after generating Mermaid if you need a fast syntax gate.CHROME_PATH.package.json unless there is a specific reason to upgrade and retest the renderer.