handdraw-flowchart

Create hand-drawn workflow diagrams from natural-language process descriptions by generating strictly validated Mermaid flowchart, sequenceDiagram, or classDiagram code, converting Mermaid to Excalidraw scene files, and exporting PNGs. Use when Codex needs sketch-style process diagrams, Mermaid-to-Excalidraw conversion, validated Mermaid diagram generation, or PNG exports from process descriptions.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "handdraw-flowchart" with this command: npx skills add zengiai/handdraw-flowchart

Handdraw Flowchart

Workflow

  1. 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.
  2. Generate raw Mermaid only. Do not wrap it in Markdown fences when writing .mmd files.

  3. Read references/mermaid-generation-rules.md before producing non-trivial Mermaid, especially for sequence or class diagrams.

  4. Save the Mermaid source as <name>.mmd.

  5. Run the renderer script. It performs strict Mermaid parsing before conversion:

    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 PNG

Conversion Contract

  • Treat flowchart as the primary hand-drawn path. It converts to native Excalidraw elements and gives the best editable sketch-style result.
  • Treat sequenceDiagram as supported but still verify output visually when the diagram is complex.
  • Treat 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.
  • 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 <file> --validate-only after 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.json unless there is a specific reason to upgrade and retest the renderer.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Automation

Agent Lens

Track AI agent API calls, analyze token usage, and optimize costs. Use when user wants to monitor LLM spending, debug API calls, track token consumption, or...

Registry SourceRecently Updated
Automation

Find Agent

OceanBus-powered agent and service discovery via Yellow Pages. Use when users want to find someone, look for a service, reach out to an expert, discover anot...

Registry SourceRecently Updated
Automation

Qwen Web Agent

Browser automation for 通义千问 (Qwen) web interface at qianwen.com. Use when the agent needs to ask questions to Qwen AI and get back responses via browser auto...

Registry SourceRecently Updated
00Profile unavailable
Automation

bot File Processor

通用文件处理技能,用于批量重命名和格式转换。当用户需要批量重命名文件(添加前缀/后缀、替换文本、编号重命名、正则表达式重命名)或转换文件格式(图片格式转换、PDF与图片互转、DOCX转PDF、Markdown转PDF)时使用此技能。

Registry SourceRecently Updated
1880Profile unavailable