/wigtn-plugins:architecture-diagramfrom wigtn-plugins
Draws architecture, system, or flow diagrams as hand-drawn SVG/PNG images with rough outlines and pastel fills. Writes a JSON spec, then renders via headless Chromium with ELK layout and rough.js.
Ships in wigtn-plugins. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
You write the structure as JSON. The renderer owns everything visual: it measures each label in headless Chromium, lays out with ELK (layered, orthogonal routing), draws with rough.js, embeds subset fonts in the SVG, and checks the result.
The look follows what makes Mermaid look: handDrawn and Excalidraw read well:
shapes rougher than lines (0.8 vs 0.35), pastel hachure fills from the open-color palette,
warm paper background, Poor Story handwriting for titles and annotations, Pretendard for
node labels so small text stays legible.
groups.emphasis.If the diagram is of a real codebase, read the code first (entry points, services, datastores, external calls) instead of guessing. 6–15 nodes reads well; split bigger systems into two diagrams.
<name>.json){
"title": "서비스 아키텍처",
"subtitle": "한 줄 설명 (선택)",
"direction": "DOWN",
"groups": [
{ "id": "client", "label": "클라이언트 (Next.js)", "tone": "blue" },
{ "id": "data", "label": "데이터" }
],
"nodes": [
{ "id": "user", "label": "사용자", "shape": "actor" },
{ "id": "web", "label": "웹 앱", "sub": "Next.js", "group": "client", "emphasis": true },
{ "id": "pg", "label": "PostgreSQL", "sub": "주 DB", "group": "data", "shape": "db" },
{ "id": "pay", "label": "결제 대행사", "shape": "external" }
],
"edges": [
{ "from": "user", "to": "web", "emphasis": true },
{ "from": "web", "to": "pg", "label": "조회", "emphasis": true },
{ "from": "pay", "to": "web", "dashed": true, "label": "웹훅" }
],
"legend": [
{ "kind": "emphasis", "label": "주요 흐름" },
{ "kind": "dashed", "label": "비동기" }
]
}
| Field | Values | Notes |
|---|---|---|
direction | DOWN · RIGHT | DOWN for layered architecture, RIGHT for pipelines and event flows |
style | sketch (default) · clean | clean = crisp lines on white, for formal docs |
font | mixed (default) · hand · plain | hand puts node labels in handwriting too; plain uses no handwriting |
tone (top level) | a tone name | color for nodes outside any toned group (default violet) |
groups[].tone | gray blue green yellow orange violet red teal | nodes inherit their group's tone; untoned groups are gray. slate / amber / rose are accepted as aliases of gray / orange / red |
nodes[].shape | box db queue actor external decision | pick by role: datastore → db, queue/worker → queue, person/client → actor, 3rd party → external, branch → decision (each outgoing edge gets a condition label: 예/아니오, PASS/FAIL) |
nodes[].sub | short second line | tech or role: "NestJS", "BullMQ" |
nodes[].tone | a tone name | override for one node (rare) |
edges[].back | true | feedback / retry edge (FAIL → 수정). Laid out forward, drawn reversed, so a loop never flips the main flow. Self-loops (from = to) are rejected |
legend[].kind | emphasis dashed external edge | add a legend whenever emphasis, dashed edges, or external nodes appear |
background | hex color, e.g. #ffffff | defaults to paper #fdfcf8 (sketch) or white (clean) |
List nodes in reading order (upstream first).
Design rules
examples/).emphasis makes outlines and arrows darker and thicker. If more than about a third of the nodes are emphasized, nothing stands out.sub.bash "${CLAUDE_PLUGIN_ROOT}/skills/architecture-diagram/scripts/render.sh" docs/diagrams/arch.json
# → docs/diagrams/arch.svg (fonts embedded) + arch.png (2x)
The first run installs elkjs, roughjs, puppeteer and subset-font and downloads the fonts (Poor Story, Pretendard; both SIL OFL) into ~/.cache/wigtn-diagram.
Exit codes: 0 rendered and checks passed · 1 rendered, but a layout check failed — each problem is listed (text overflowing its box, overlapping nodes, an edge running through another node or another edge's label); fix the spec · 2 the spec is invalid or setup failed (missing node/npm, install or download error) — the message names the field; nothing about the layout needs changing.
A passing check means nothing clips or overlaps. It says nothing about whether the diagram reads well. Read the PNG and check:
nodes, or switch direction.sub?Edit the spec and render again. Never hand-edit the SVG. If you cannot view images in this environment, say that the visual check was skipped instead of calling the diagram done.
Worked examples: examples/layered-architecture.json (DOWN, three layers) and examples/pipeline-flow.json (RIGHT, with a back edge).
Commit the .json source, the .svg, and the .png. The SVG carries its own fonts and looks the same in any viewer; the PNG is for places that don't take SVG. Embed with .
fonts-noto-cjk._ and -. Labels can be anything (Korean, /, →, &).\n in a label forces one. Otherwise long labels wrap at spaces, never inside a word.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub wigtn/wigtn-plugins --plugin wigtn-plugins11 skills in this plugin
/code-review-levelsReference documents for deep code review (Level 3) and architecture review (Level 4). Used by code-reviewer agent for advanced review levels./demo-video제품·시스템 데모 영상을 Remotion으로 만든다. 길이 제한과 해상도를 먼저 정하고 대본 한 벌로 자막과 (선택) TTS 음성을 함께 만든다. 대본의 주장과 숫자는 코드·결과 파일과 대조한 뒤에 찍는다. 실제 화면 녹화를 capture slot에 넣고 빈 slot은 placeholder로 렌더되어 일부만 채워도 영상이 나온다. 스틸 프레임을 체크리스트로 검토한 다음 전체를 렌더하고 ffprobe로 길이·해상도·fps·오디오를 재서 보고한다. 논문 시연 영상용 `paper-demo`와 소개 영상용 `showcase` 두 프로필이 있다. Triggers on: '데모 영상', '시연 영상', '영상 편집', '영상 만들어줘', '스크린캐스트', '제품 소개 영상', '논문 데모 영상', 'demo video', 'screencast', 'system demonstration video', 'Remotion'./design-system-referenceStyle guides and implementation rules for frontend design. Works with design-discovery agent which handles context gathering and VS-based style recommendations. Contains detailed style guides, anti-patterns, and implementation checklists./knowledge-wiki세션에서 배운 것을 정책 게이트를 통과시켜 팀 위키에 자동 축적한다. github.com/wigtn/ repo 작업은 폴더 위치와 무관하게 팀 위키(wigtn-team-wiki)로 가고, 그 외는 전역 설정(~/.config/wigtn/knowledge-wiki.yml)에 지정한 경로에서만 동작하며, 시크릿·개인정보·고객 식별 정보는 4단 게이트로 차단한다. 쌓인 기록 중 프롬프트와 관련 있는 글은 자동으로 컨텍스트에 붙인다. 위키 설정·정책 확인·수동 축적·문제 진단에 사용한다./paper-scout최근 arXiv 논문을 가져와 우리 관심 분야와 관련 있는 것만 골라 한국어로 정리한다. arXiv API로 최신 논문을 수집하고, Hugging Face Daily Papers 업보트를 인기 신호로 붙인다. 이미 보여 준 논문은 다음 실행에서 빼고, 요청하면 한 편의 TeX 소스를 읽고 우리 프로젝트에 연결해 자세히 분석한다. 관심 분야와 프로젝트는 ~/.config/wigtn/paper-scout/profile.md (없으면 references/profile.md)에서 고친다. Triggers on: '논문 찾아줘', '최신 논문', '트렌딩 논문', '요즘 논문', '관련 논문', '이 논문 자세히', '논문 스카우트', 'arxiv 검색', 'paper scout', 'latest papers', 'trending papers'./screen-specPRD를 입력으로 화면정의서 5종(IA, User Flow, Screen Spec, Wireframe HTML, Dev Handoff)을
순차 생성한다. Wireframe은 흑백 + 의미색만 사용하는 lo-fi 산출물(스타일/브랜드는 별도 단계).
frontend-developer 자동 리뷰 지원. /screen-spec 명령어에서 호출되며,
/prd → /implement 사이의 선택적 게이트로 동작한다.
Other plugins' skills for the same job