← Back to Skills Marketplace
zengiai

handdraw-flowchart

by zengiai · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
31
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install handdraw-flowchart
Description
Create hand-drawn workflow diagrams from natural-language process descriptions by generating strictly validated Mermaid flowchart, sequenceDiagram, or classD...
README (SKILL.md)

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 \x3Cname>.mmd.

  5. 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 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 \x3Cfile> --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.
Usage Guidance
This looks safe to use for generating diagrams. Before installing, be comfortable with running npm install and a local Node/Playwright renderer, and choose a dedicated output directory for generated files.
Capability Analysis
Type: OpenClaw Skill Name: handdraw-flowchart Version: 1.0.0 The skill bundle is a legitimate tool for converting natural-language process descriptions into hand-drawn style diagrams using Mermaid and Excalidraw. It utilizes Playwright to launch a headless browser for rendering and esbuild to dynamically bundle the necessary conversion libraries (mermaid, @excalidraw/excalidraw) at runtime. The script `scripts/render-mermaid-handdraw.mjs` includes security best practices such as enforcing Mermaid's 'strict' security level and sanitizing output filenames to prevent path traversal. While the skill requires significant permissions (filesystem access and browser execution), these capabilities are strictly aligned with its stated purpose, and no evidence of malicious intent, data exfiltration, or prompt injection was found.
Capability Tags
crypto
Capability Assessment
Purpose & Capability
The SKILL.md, package metadata, and visible script behavior consistently support the stated purpose of validating Mermaid and exporting diagram files.
Instruction Scope
The workflow asks the agent to create files and run a local renderer, which is expected for this skill and constrained by validation rules and supported diagram types.
Install Mechanism
There is no automatic install spec, but the user-directed workflow requires npm install of pinned third-party packages from package.json/package-lock.json.
Credentials
The skill requires Node/npm and launches Playwright or a local Chrome/Chromium executable, which is proportionate for image export but worth noticing.
Persistence & Privilege
No credentials, background service, persistent memory, or privilege escalation are declared or evident; persistence is limited to generated .mmd, .excalidraw, and .png output files.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install handdraw-flowchart
  3. After installation, invoke the skill by name or use /handdraw-flowchart
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of handdraw-flowchart. - Generates hand-drawn style workflow diagrams from natural-language process descriptions. - Converts strictly validated Mermaid (flowchart, sequenceDiagram, classDiagram) into Excalidraw scenes and exports PNG images. - Script ensures Mermaid syntax validity and supports rejection of unsupported diagram types. - Supports editable diagrams with best quality for flowcharts; sequence and class diagrams are supported with caveats. - Provides stepwise workflow and strict validation rules for consistent and reliable outputs.
Metadata
Slug handdraw-flowchart
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

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.

💬 Comments