Generates animated isometric diagrams of a codebase's runtime request flow or dependency structure. Useful for visualizing architecture, request paths, or before/after refactors.
Ships in protocol-anim. 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.
SKILL_DIR below = this skill's base directory (shown when the skill loads). Needs node (18+) and Chrome/Chromium (set CHROME=/path if it isn't on PATH).
Make a protocol-anim diagram of: $ARGUMENTS (empty = the single most important request path in this project).
HARD RULES:
node "$SKILL_DIR"/gen.mjs. Never write HTML, SVG, CSS or a page yourself. If the generator can't express something, say so and stop.flow = one request's lifecycle at RUNTIME: who calls whom over the network, and the answer coming back.deps = who USES / IMPORTS / COPIES whose CODE, before vs after a change (refactor, extraction, migration).FLOW (kind omitted or "flow"):
file:line for each hop.title (short) + subtitle (the path).docs/diagrams/<slug>.json:
nodes (3-8): one per real process or service the request crosses. A library or function is not a node; a separate process, service, DB, queue or third-party API is. label <=16 chars, sub <=22 chars (port, route, or what it is).icon: user/laptop/desktop/mobiledevice = actors; loadbalancer = gateway/proxy/router; server = app/API; function-module = serverless/worker; firewall or lock = auth/tunnel; storage = DB; cache; queue; cloud = third-party API; dns; mail; vm; cronjob. Others: ls $SKILL_DIR/vendor/isoflow/icons/.steps (6-16) in time order, each one network hop. A step must start at a node an earlier step reached. label <=24 chars, the literal thing on the wire (POST /api/chat, SELECT messages, SSE tokens). note = one plain sentence, cite file.ts where useful. color: req outbound, res coming back, auth tokens/sessions, err failure path. Responses follow the real return path.DEPS ("kind": "deps"):
git log / git show <sha> / the old branch, or the files as they were. For every edge, find the actual import, package.json dependency, copy script or drift check, and note file:line.title = the change in a few words; subtitle = one sentence of what moved where.docs/diagrams/<slug>.json:
nodes (2-12): apps and packages (one per app, package or repo, NOT per file). icon: desktop = web app, mobiledevice = mobile app, laptop = separate/partner repo, package-module = shared package, server = backend.before / after, each: note (<=140 chars, one plain sentence), owns ({ nodeId: [up to 4 items, <=24 chars each] }, what code lives there), edges ({ from, to, kind, ref, label? }). from USES/COPIES to, so arrows point at the code's owner. kind: uses = imports it, copies = vendored copy kept in sync, drift = a stale copy that diverged. ref = the file:line that proves the edge (REQUIRED). label <=18 chars, optional.BOTH, then:
4. Run node "$SKILL_DIR"/gen.mjs docs/diagrams/<slug>.json > docs/diagrams/<slug>.html. A lint: error says exactly what to fix. Fix the spec and rerun until it prints ok:.
5. Run $SKILL_DIR/shot.sh docs/diagrams/<slug>.html, then Read every PNG it prints. Check: no overlapping labels, no orphan or duplicate-looking nodes, and each note makes sense to someone who hasn't seen the code. Fix the spec and repeat 4-5 if anything is off.
6. Open docs/diagrams/<slug>.html in the browser (xdg-open on Linux, open on macOS).
7. Reply with: the ok: line, the html path, and one line per node (flow) or per edge (deps): label - file:line. Nothing else.
FLOW EXAMPLE (SKILL_DIR/specs/serving.json):
{
"title": "DeepSeek serving path",
"subtitle": "pi -> router -> IAP tunnel -> on-box Bifrost :8080 -> SGLang :8000",
"nodes": [
{ "id": "pi", "icon": "laptop", "label": "pi", "sub": "coding agent" },
{ "id": "router", "icon": "router", "label": "router", "sub": "picks profile" },
{ "id": "iap", "icon": "firewall", "label": "IAP tunnel", "sub": "self-signed JWT" },
{ "id": "bifrost", "icon": "loadbalancer", "label": "Bifrost", "sub": ":8080" },
{ "id": "s0", "icon": "server", "label": "SGLang", "sub": ":8000 flash" }
],
"steps": [
{ "from": "pi", "to": "router", "label": "POST /v1/messages", "note": "pi sends an Anthropic-shaped request." },
{ "from": "router", "to": "iap", "label": "+ IAP JWT", "color": "auth", "note": "router signs a JWT and opens the IAP tunnel." },
{ "from": "iap", "to": "bifrost", "label": "tunnel :8080", "note": "IAP verifies the token and forwards to Bifrost." },
{ "from": "bifrost", "to": "s0", "label": "deepseek-v4-flash", "note": "Bifrost maps the model name to the :8000 slot." },
{ "from": "s0", "to": "bifrost", "label": "SSE tokens", "color": "res", "note": "SGLang streams tokens back." },
{ "from": "bifrost", "to": "iap", "label": "SSE", "color": "res" },
{ "from": "iap", "to": "router", "label": "SSE", "color": "res" },
{ "from": "router", "to": "pi", "label": "200 stream", "color": "res", "note": "pi renders the stream." }
]
}
DEPS EXAMPLE (SKILL_DIR/specs/deps-example.json; real specs put file:line in every ref):
{
"kind": "deps",
"title": "Shared chat core",
"subtitle": "Each app had its own chat parts; now one core package, web owns the UI, partner copies it.",
"nodes": [
{ "id": "partner", "icon": "laptop", "label": "Partner app", "sub": "separate repo" },
{ "id": "web", "icon": "desktop", "label": "Web", "sub": "apps/web" },
{ "id": "mobile", "icon": "mobiledevice", "label": "Mobile", "sub": "apps/mobile" },
{ "id": "core", "icon": "package-module", "label": "core", "sub": "packages/core" }
],
"before": {
"note": "Each app had its own chat row format and bubble; the partner's copy had drifted.",
"owns": { "web": ["chat rows", "bubble"], "mobile": ["chat rows", "bubble"], "partner": ["chat rows (old)"] },
"edges": [ { "from": "partner", "to": "web", "kind": "drift", "ref": "partner/src/chat/Row.tsx:1" } ]
},
"after": {
"note": "core owns the chat model; web owns the screen parts; partner copies them under a drift check.",
"owns": { "core": ["chat model", "history"], "web": ["renderer registry", "bubble"], "partner": ["own rows only"] },
"edges": [
{ "from": "web", "to": "core", "kind": "uses", "ref": "apps/web/package.json:14" },
{ "from": "mobile", "to": "core", "kind": "uses", "ref": "apps/mobile/package.json:12" },
{ "from": "partner", "to": "web", "kind": "copies", "label": "copies + check", "ref": "partner/scripts/sync-chat.sh:3" }
]
}
}
README.md (opens in a new tab)gen.mjs (opens in a new tab)shot.sh (opens in a new tab)specs/deps-example.json (opens in a new tab)specs/serving.json (opens in a new tab)vendor/isoflow/LICENSE (opens in a new tab)vendor/isoflow/icons/block.svg (opens in a new tab)vendor/isoflow/icons/cache.svg (opens in a new tab)vendor/isoflow/icons/cardterminal.svg (opens in a new tab)vendor/isoflow/icons/cloud.svg (opens in a new tab)vendor/isoflow/icons/cronjob.svg (opens in a new tab)vendor/isoflow/icons/cube.svg (opens in a new tab)vendor/isoflow/icons/desktop.svg (opens in a new tab)vendor/isoflow/icons/diamond.svg (opens in a new tab)vendor/isoflow/icons/dns.svg (opens in a new tab)vendor/isoflow/icons/document.svg (opens in a new tab)vendor/isoflow/icons/firewall.svg (opens in a new tab)vendor/isoflow/icons/function-module.svg (opens in a new tab)vendor/isoflow/icons/image.svg (opens in a new tab)vendor/isoflow/icons/laptop.svg (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/protocol-anim:make-diagramfrom protocol-anim
npx claudepluginhub human-frontier-labs-inc/human-frontier-labs-marketplace --plugin protocol-anim