/architect:planfrom architect
Transforms product requirements, constraints, and tradeoffs into canonical architecture artifacts and diagrams during Plan Mode. Preserves native planning flow while generating hidden architecture models.
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.
None: SKILL.md is the whole skill.
Use this skill for planning-mode architecture design.
This skill must emit the same artifact schema as architect-init.
This skill is a planning sidecar, not a replacement planner.
/architect-plan or /architect:plan, do not treat that as permission to skip normal planning behaviorarchitecture/*.yaml filesOpen Decisions visible when the design is not yet lockedCanonical Architecture Model, Repo Archetype, Data Ownership, or Files to Create unless the user explicitly asks for artifact detailmanifest.yaml, model.yaml, views/*.yaml, summary.md, or validation details when:
summary.md may still contain structured sections such as Key Decisions, but that artifact structure must not dictate the assistant's user-facing response shape.Do you want to review an interactive <strong><span style="color: #2563eb;">architecture diagram</span></strong>?/plan preview after the main draft, include the CTA there so it still lands at the very enddraw the diagram, or any equivalent affirmative response, treat that as explicit approval to write the architecture artifacts and render the diagram in the current Plan Mode sessionExitPlanMode, and do not describe tool availabilityBefore writing hidden artifact outputs, read ../references/architecture-contract.md and follow it exactly.
Do not front-load this contract read before the first visible architecture draft in normal plan-mode use.
Resolve the contract through the skill-relative reference path only.
../references/architecture-contract.md.skills/references/architecture-contract.md.manifest.yaml, model.yaml, or nearby architecture outputs.Default output path:
architecture/manifest.yamlarchitecture/model.yamlarchitecture/views/*.yamlarchitecture/summary.mdarchitecture/diff.yaml in update mode onlyarchitecture/diagram.html (primary interactive diagram)architecture/diagram-prompt.md only when explicitly requestedIf the user specifies another path, honor it.
Collect and normalize:
If critical constraints are missing, record unknowns explicitly instead of inventing answers.
/architect-plan invocation, do not start by exploring the current project directory, reading repo docs, reading the architecture contract, reading examples/evals, or spawning Explore agents unless the user explicitly asks for repo-aware tailoring or artifact-only regeneration.evals/, examples/, iteration-*, skill-snapshot/, or similar archive/snapshot directories to infer the contract or bootstrap artifacts.confirmed, strong_inference, weak_inference.evidence_basis: plan in manifest.yaml.plan://... evidence paths and plan evidence kinds.architecture_state simple:
proposedapproved only when the user explicitly approvesimplementing; the end user decides when implementation startsarchitecture_state: approved before writing artifacts or rendering the diagram; proposed is the normal review statesummary.md must include a Key Decisions section, and each key decision should include explicit coverage hints using covers: <id1,id2,...> referencing element/relationship/view IDs when possible.${CLAUDE_PLUGIN_ROOT}/scripts/decision-coverage-check.py${CLAUDE_PLUGIN_ROOT}/scripts/container-decomposition-check.py${CLAUDE_PLUGIN_ROOT}/scripts/semantic-diff-gate.py (when a baseline model exists)summary.md structure in the visible plan unless the user explicitly asks for artifact detail.Write(architecture/...) the first visible action of the skill unless the user explicitly asked for artifact-only regeneration.architect-diagram only after the first serious architecture draft, and only when a diagram materially improves the plan:
architect-diagram when explicit demo-quality output is requested; otherwise keep default fallback-friendly rendering behavior for iterative runs.Before writing any hidden artifacts or reading any artifact contracts/examples, decide whether there are unresolved high-impact choices that would materially change the plan.
Normal greenfield/direct-plan behavior:
Examples:
If those choices are unresolved:
If the necessary choices are already clear from context, skip this step.
Write the visible plan in ordinary Claude style before writing hidden artifacts.
Visible-plan rules:
Open Decisions visible when the design is not yet lockedOnly after this first serious visible draft exists should you start externalizing hidden artifacts.
Only now, if you are actually going to write hidden artifacts, read ../references/architecture-contract.md and conform to it.
Define:
initial or updateIf existing architecture artifacts are provided in update mode, preserve stable IDs and emit diff.yaml.
Create an internal ledger of planning evidence IDs before writing YAML.
Recommended IDs:
req-* requirementscon-* constraintsasm-* assumptionstrd-* tradeoffsMap each modeled claim to at least one evidence ID.
Define canonical elements and relationships from planning input:
Use conservative confidence for uncertain claims.
Write architecture/model.yaml first.
Do not write view-local facts that conflict with the canonical model.
Emit only views that improve understanding:
system-contextcontainercomponent-*, sequence-*, deploymentEvery container should support drill-down when it has meaningful, evidenced internal boundaries.
Write summary.md using the fixed shared structure.
In summary.md, ensure Key Decisions uses explicit coverage hints where possible, for example:
- [DEC-001] Separate webhook service from notification service | covers: container-webhook-service,container-notification-service,view-containerIn update mode, write diff.yaml.
This structure is for the hidden artifact package only. Do not copy these artifact headings or coverage-hint patterns into the visible Claude plan by default.
After the first serious architecture draft, decide whether the plan is complex enough that a visual adds clarity. If yes, invoke architect-diagram using the same output root.
Expected default visible output in the artifact package:
architecture/diagram.html (primary interactive diagram)Optional (only if explicitly requested by user):
architecture/diagram-prompt.md via architect-diagram-promptIf you render a diagram and workspace writes are available, surface it in the planning response as one compact appended section, for example:
## Architecture Diagram
[Open architecture diagram](/absolute/path/to/architecture/diagram.html)
Comment directly on the diagram to give me feedback on the plan. I'll reply to your comments here.
Keep this section short. Do not turn the overall response into an artifact tour.
If the environment has created a Plan Mode document for the current plan, append the same short Architecture Diagram section to that document after architecture/diagram.html has been rendered, so the plan document itself links to the HTML file.
If workspace writes are blocked in native Plan Mode, do not replace this with a "deferred" note. Finish the normal plan, then ask the exact handoff question from the Plan Mode++ contract.
If — while drafting the architecture — you have left genuine open questions that would meaningfully change the design depending on the answer (async vs sync, single vs split service, which storage engine, auth vs SSO, queue vs stream, etc.), call post_claude_comment through the architect-comments channel for each question, anchored to the relevant view_id and element_id or relationship_id.
Rules:
This runs after architect-diagram returns successfully (so bridge_url and the rendered diagram exist) and before the appended ## Architecture Diagram handoff section.
After producing a draft or revision:
architecture_state: proposed during iterationDo not start a second approval loop. The host planner owns approval.
Before presenting for approval or finishing any iteration, verify:
model.yamlmodel.yamlpython3 ${CLAUDE_PLUGIN_ROOT}/scripts/decision-coverage-check.py --summary <output-root>/architecture/summary.md --model <output-root>/architecture/model.yaml --views-dir <output-root>/architecture/views --strictpython3 ${CLAUDE_PLUGIN_ROOT}/scripts/container-decomposition-check.py --model <output-root>/architecture/model.yaml --summary <output-root>/architecture/summary.md --strict --only-when-mentionedpython3 ${CLAUDE_PLUGIN_ROOT}/scripts/semantic-diff-gate.py --baseline <previous>/architecture/model.yaml --current <output-root>/architecture/model.yamlarchitecture/diagram.html exists and corresponds to the current artifact setarchitecture/diagram-prompt.md exists and corresponds to the current artifact setarchitect-init.architect-diagram directly inside this skill for normal planning flow.architect-diagram-prompt only when user explicitly requests diagram-prompt.md generation.Complete only when:
../references/architecture-contract.mdmanifest.yaml includes generated_by_skill: architect-planevidence and confidence fieldsarchitecture_state is present and accurately reflects explicit user approval statearchitecture/diagram.html has been generated for the current approved/proposed revisionarchitecture/diagram-prompt.md has been generated for the current approved/proposed revisionWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub willhennessy/architect --plugin architect4 skills in this plugin
/diagramGenerate an interactive HTML architecture diagram (`diagram.html`) with drill-down navigation and Comment Mode. If architecture artifacts already exist, render from them; if not, first run architect-init to discover the repo and create the artifacts./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.Other plugins' skills for the same job