From wigtn-plugins
Generates hand-drawn sketch-style architecture/flow diagrams as SVG+PNG using Mermaid look:handDrawn. Useful for README, docs, and Devpost where a sketch aesthetic with legible text is needed.
How this skill is triggered — by the user, by Claude, or both
Slash command
/wigtn-plugins:handdrawn-diagramThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Renders identically everywhere (README, GitHub/GitLab, Devpost, slides), unlike
Renders identically everywhere (README, GitHub/GitLab, Devpost, slides), unlike inline Mermaid (depends on the viewer's Mermaid version) or AI image generators (garbled text).
.mmd)---
config:
look: handDrawn
theme: default
themeVariables:
fontFamily: "Apple SD Gothic Neo, Malgun Gothic, Noto Sans KR, sans-serif"
---
flowchart TD
A(["Trigger"]):::main --> B["main step"]:::main
B --> C{"decision?"}:::decision
C -->|Yes| D["highlighted path"]:::main
C -->|No| E["side step"]:::muted
D --> F[("datastore")]:::muted
E -.-> G["error / end"]:::alert
classDef main fill:#e8eaf6,stroke:#3949ab,stroke-width:2.5px,color:#1a237e;
classDef decision fill:#fff8e1,stroke:#f9a825,stroke-width:2px,color:#e65100;
classDef muted fill:#fff,stroke:#9e9e9e,color:#616161;
classDef alert fill:#ffebee,stroke:#e53935,color:#b71c1c;
Rules that avoid broken output:
["..."] — ·—≥→/() break unquoted.([..]) start/end terminal · [..] process step · [(..)] datastore/DB{..} decision (diamond) — every decision MUST have labeled branches:
C{"logged in?"} -->|Yes| D and C -->|No| E. Don't fake a branch with a
plain [..] step; a fork without a diamond + condition labels reads as a
straight line and loses the "when this / when that" meaning.<br/> for line breaks; Korean renders fine with the fontFamily above.Coloring every node flattens the hierarchy and nothing reads as important. Use 2–3 colors that each carry meaning, and let most nodes stay neutral:
muted (neutral white/gray) — ordinary steps, datastores, side paths.main (one accent, e.g. indigo) — the pipeline you want the eye to
follow (the happy path). Emphasize with stroke-width, not loud fills.decision (amber) for diamonds, alert (red) for
error/terminal states. Reserve these so a color instantly signals a role.Rule of thumb: if a reader can't guess what a color means, drop it. One accent is too plain (no role distinction); 5+ colors are noise (no hierarchy). 2–3 semantic colors give both hierarchy and classification while staying calm.
printf '%s\n' '{"args":["--no-sandbox","--disable-setuid-sandbox"]}' > /tmp/pptr.json
npx -y @mermaid-js/mermaid-cli -i d.mmd -o d.svg -p /tmp/pptr.json -b white
npx -y @mermaid-js/mermaid-cli -i d.mmd -o d.png -p /tmp/pptr.json -b white -s 2
-b white = white bg · -s 2 = 2× crisp PNG · look:handDrawn needs mermaid-cli v11+ (npx pulls latest).
..mmd (source) · .svg (vector master) · .png (embed).timeout — don't wrap npx in it.awk/grep pattern (zsh runs backticks as command substitution).& → write and.<br/>, or pad
with a trailing space inside the quotes ("손그림 다이어그램 "). Always verify
in step 3 by reading the PNG."순차 BUILD" loses its last char (→ "순차 BUIL"), but a pure-Latin line
("team BUILD") renders fine. So don't end a 한글 line with a Latin word: put
the Latin token on its own <br/> line ("순차<br/>BUILD") or pad the line.
A single trailing space is often NOT enough — verify the PNG and add more.npx claudepluginhub wigtn/wigtn-plugins --plugin wigtn-pluginsRoutes Mermaid diagram requests to type-specific guides (sequence, activity, ER, architecture); validates .md files, renders .mmd to SVG, architects from codebases.
Renders Mermaid diagrams as SVG and PNG using the Beautiful Mermaid library. Supports flowchart, sequence, state, class, and ER diagrams with multiple themes.
Creates Mermaid diagrams (flowcharts, sequence diagrams, architecture diagrams) using a project-specific blue-gray theme. Includes theme directives, shape conventions, and layout rules.