/architect:diagramfrom architect
Generates an interactive HTML architecture diagram with drill-down navigation from existing architecture artifacts. If artifacts are missing, delegates to architect-init first.
Ships in architect. 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.
Use this skill to render diagram.html from architecture artifacts. Before rendering, always check whether the required artifacts already exist. If they do not exist, hand off to architect-init first, using the same output root and repo scope, then resume rendering after architect-init produces the artifacts.
architecture/manifest.yamlarchitecture/model.yamlarchitecture/views/*.yamlarchitecture/summary.mdarchitecture/diff.yamlRequired:
<output-root>/architecture/diagram.html (primary)Recommended intermediate output:
<output-root>/architecture/.out/diagram-svg/<view-id>.svg (one per non-sequence view)Optional debug output:
<output-root>/architecture/.out/diagram-data.json (when --write-data-json is enabled)Runtime state (managed by the bridge):
<output-root>/architecture/.out/claude-comments.json — persisted Claude-authored comment threads. Source of truth for the bidirectional comments surface. Read by render-diagram-html.py at render time and embedded into the diagram handoff; mutated only by the bridge in response to channel tool calls or user reply POSTs.The architect-comments MCP channel exposes these tools:
update_feedback_status — progress updates for user-submitted feedback batches.finalize_feedback_update — validate artifacts + rerender after Claude-authored edits.post_claude_comment — open a new Claude-authored thread anchored to a specific view/element/relationship. Use during plan mode for genuine design questions.post_claude_reply — reply into an existing thread, optionally with resolves=true to close on reply or silent_resolve=true to resolve without writing a message.resolve_thread — silently resolve a thread without posting a reply.The channel delivers two event types to Claude:
architect_feedback_batch — user submitted a batch of comments. May include open_thread_ids + open_thread_summary for threads the user did not reply to in this batch. Claude must not act on those threads this turn.architect_thread_user_reply — the user replied into a specific Claude-authored thread. Claude should use post_claude_reply (not finalize_feedback_update) to respond.architect-init; architect-diagram only resumes once artifacts exist.diagram.html must remain a single-file artifact with inline CSS/JS; external assets are disallowed except for the approved Instrument Sans Google Fonts links when that typography path is intentionally used.diagram.html must implement drill-down + breadcrumb navigation.diagram.html must implement Comment Mode (Comment toggle + C shortcut + queued comments + JSON submit modal).diagram-prompt.md in this skill.architect-diagram-prompt.[👤 User].scripts/generate-svg-fragments.py and browser-side normalization in templates/diagram-app.html. If you adjust header band size, label alignment, or person-card header placement, update both paths.Primary path (preferred):
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/generate-svg-fragments.py --output-root <output-root>python3 ${CLAUDE_PLUGIN_ROOT}/scripts/render-diagram-html.py --output-root <output-root> --demo-modeFallback/testing path:
python3 ${CLAUDE_PLUGIN_ROOT}/scripts/render-diagram-html.py --output-root <output-root> --mode fastDefault:
Opt-in (explicit request only):
--include-sequence to render-diagram-html.py<output-root>:
<output-root>/architecture/manifest.yaml<output-root>/architecture/model.yaml<output-root>/architecture/views/*.yaml<output-root>/architecture/summary.mdarchitect-init against the same repo/output rootarchitect-init to treat this as update/recovery mode and preserve stable IDs where concepts are unchangedarchitect-init finishes, restart this workflow from artifact preflightreferences/diagram-output-contract.mdreferences/html-diagram-spec.mdreferences/svg-fragment-spec.md<output-root>/architecture/.<output-root>/architecture/.out/diagram-svg/.architecture/diagram.html via template injection.${CLAUDE_PLUGIN_ROOT}/scripts/validate-diagram-html.sh <output-root>/architecture/diagram.htmlComplete only when architecture/diagram.html exists, is grounded in artifacts, and passes validation.
What SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/diagram-promptGenerate the secondary Claude Imagine upload bundle (`diagram-prompt.md`) from existing architecture artifacts and rendered diagram output. Use when explicitly requested./initDiscover and model the architecture of an unfamiliar codebase, emit a canonical architecture model plus derived structured view files for multiple audiences, then automatically hand off to architect-diagram for the interactive HTML diagram. Use this skill when asked to explore a repository, identify runtime boundaries, data ownership, key workflows, or generate architecture artifacts from source code./planArchitecture planning sidecar for Claude's native Plan Mode. Turn product requirements, constraints, team size, timeline, assumptions, and tradeoffs into canonical architecture artifacts and, when useful, an interactive diagram. Strongly consider this skill in Plan Mode when a user is planning a new or changing software system and asks for the architecture, system design, service breakdown, or technical plan before implementation, including prompts like "propose the architecture", "design the system", or "help me plan the architecture."npx claudepluginhub willhennessy/architect --plugin architectOther plugins' skills for the same job