Decides the engineering approach for an intent in an interactive session: investigates, proposes two or three genuinely different approaches with trade-offs, recommends, lets the user decide, and writes the decision doc. Not a task-by-task plan; use sprint-plan. Not a multi-perspective debate; use design-council. Not product intent; use product-intent. Not a typed implementation handoff; use tech-spec.
Ships in architecture. 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.
The intent says what and why; this session decides how: approach, stack, data shape, boundaries, and what to de-risk first. The deliverable is a high-level decision doc. The moment you start listing file edits or task steps, you have gone too deep; pull back up to the decisions.
This is interactive. Run the loop out loud with the user, via ask_user:
investigate → 2-3 options with trade-offs → recommend + reasoning →
ask → wait for their call → go deeper
Never converge silently. Optimize for the user's goals, familiarity (a stack they know beats a "better" one they don't), leanness (decide only what is needed to move), and reversibility (spend deliberation on the expensive calls only).
/skill architecture <the intent: a PRD path, a brief, or a few sentences>
There is no operator in a headless run without an --answers file: ask_user is not registered, so
any call is refused as an unregistered tool rather than answered, every
time; calling it again will not produce a different result. From wherever
the first refusal lands (Step 0's "ask whether reference docs
exist", Step 1's greenfield/brownfield call, or any decision in Step 2),
switch immediately to the treatment already described above (state the
options, the recommendation, the reasoning, adopt it, mark it assumed — confirm) and keep running every remaining step through Step 3 in the same
turn. Never stop at the first unanswered gate and never go silent; a
one-shot document produced without ever attempting the loop is also wrong
in the other direction. Always investigate and state the loop out loud
first, degrading only once a gate actually goes unanswered. Never invent a
fact, evidence, or a codebase detail to back an assumption; anything
genuinely uncertain becomes an open question or a spike, never a plausible
guess.
The steps below (Step 0 through Step 3) are the plan; do not open a task
list for them. tasks sits outside this skill's tool surface and any call
to it is refused. bash is also outside this skill's tool surface;
investigate with read, grep, find, git, and code_nav instead;
reaching for bash to explore or verify is refused.
Read the intent (PRD path, brief, or the user's words). Read any reference
docs passed alongside; if none were passed, ask whether any exist, since the
context needed is usually already written down. To see what exists in the
repo before reading it, use the find tool (e.g. pattern **/*) or ls,
never bash find/bash ls; bash is refused outright (see Arguments).
Infer from the input and workspace; genuinely unclear → ask. It changes the exploration:
For each area, surface options, recommend with reasoning, ask, record the user's call. Skip what does not apply and say that you skipped it:
Only after the calls are made. There are exactly three valid locations, in order of default preference. Pick one, never a fourth:
docs/architecture-<slug>.md: the default, no exceptions needed.## Architecture section folded into the named PRD, only when the
user said they prefer one document.No other filename or location is ever correct. final_report.md,
REPORT.md, summary.md, and anything similar are hard misses, not
stylistic variants. If none of the three above fit, use option 1. When
writing the doc, read references/decision-doc-outline.md for its shape.
The doc exists at a confirmed location, every section is either filled or
explicitly marked skipped, every one-way-door call has a spike or a user
decision, and the user has been offered the next moves without a forced
pipeline: slice into tickets (backlog), slice into a local
sprint (sprint-plan), spike a flagged risk now, or keep refining here.
Before calling the doc done, read references/red-flags.md.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
/architecture:architecturefrom architecture
npx claudepluginhub panstudio/pancode --plugin architecture