/install handdraw-flowchart
Handdraw Flowchart
Workflow
-
Convert the user's natural-language process into one supported Mermaid diagram:
flowchart TDorflowchart LRfor business processes, decision trees, and state transitions.sequenceDiagramfor actor/system interactions over time.classDiagramfor domain objects, DTOs, entities, interfaces, and relationships.
-
Generate raw Mermaid only. Do not wrap it in Markdown fences when writing
.mmdfiles. -
Read
references/mermaid-generation-rules.mdbefore producing non-trivial Mermaid, especially for sequence or class diagrams. -
Save the Mermaid source as
\x3Cname>.mmd. -
Run the renderer script. It performs strict Mermaid parsing before conversion:
cd \x3Cskill-directory> npm install node scripts/render-mermaid-handdraw.mjs --input /path/to/\x3Cname>.mmd --out-dir /path/to/output --name \x3Cname>
The script writes:
\x3Cname>.mmd: normalized Mermaid source\x3Cname>.excalidraw: editable Excalidraw scene\x3Cname>.png: rendered PNG
Conversion Contract
- Treat
flowchartas the primary hand-drawn path. It converts to native Excalidraw elements and gives the best editable sketch-style result. - Treat
sequenceDiagramas supported but still verify output visually when the diagram is complex. - Treat
classDiagramas supported with possible image fallback inside the Excalidraw scene. If the script reportsimage-fallback, the PNG is valid, but editability is limited. - Reject unsupported Mermaid diagram types instead of silently producing a lower-quality result.
- Do not claim success until the renderer has completed without validation or export errors.
Strict Validation Rules
- Run
node scripts/render-mermaid-handdraw.mjs --input \x3Cfile> --validate-onlyafter generating Mermaid if you need a fast syntax gate. - If validation fails, edit the Mermaid source and rerun. Do not bypass validation.
- Prefer simple Mermaid syntax over clever syntax. Avoid custom CSS, HTML labels, Markdown tables inside labels, YAML frontmatter, and experimental Mermaid shape declarations.
- Keep node IDs stable and ASCII where practical. Put user-facing Chinese text in labels, not IDs.
Rendering Notes
- The script uses browser execution because Excalidraw export utilities require DOM/canvas APIs.
- If Playwright has no bundled browser, the script tries common local Chrome/Chromium executable paths and honors
CHROME_PATH. - For reproducible results, keep the versions pinned in
package.jsonunless there is a specific reason to upgrade and retest the renderer.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install handdraw-flowchart - After installation, invoke the skill by name or use
/handdraw-flowchart - Provide required inputs per the skill's parameter spec and get structured output
What is handdraw-flowchart?
Create hand-drawn workflow diagrams from natural-language process descriptions by generating strictly validated Mermaid flowchart, sequenceDiagram, or classD... It is an AI Agent Skill for Claude Code / OpenClaw, with 31 downloads so far.
How do I install handdraw-flowchart?
Run "/install handdraw-flowchart" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is handdraw-flowchart free?
Yes, handdraw-flowchart is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does handdraw-flowchart support?
handdraw-flowchart is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created handdraw-flowchart?
It is built and maintained by zengiai (@zengiai); the current version is v1.0.0.