From arboretum
Interview the user to determine project shape, match to an architecture archetype, surface essential decisions, recommend spikes, and scaffold ARCHITECTURE.md and group documents. Standalone or called by /init-project.
How this skill is triggered — by the user, by Claude, or both
Slash command
/arboretum:architectThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Interview the user to understand their project's shape, match it to an architecture archetype, surface essential decisions early, recommend spikes for high-risk areas, and scaffold governed documents.
Interview the user to understand their project's shape, match it to an architecture archetype, surface essential decisions early, recommend spikes for high-risk areas, and scaffold governed documents.
/architect directly/init-project: called as a step after project bootstrappingCheck for signals of an existing project:
ARCHITECTURE.md or docs/ARCHITECTURE.md exist?docs/specs/?If any of these exist, use Existing Project Mode. Otherwise, use Greenfield Mode.
Ask about the project through guided conversation. One question at a time. After each answer, confirm understanding before moving on.
Cover these areas through guided conversation. One question at a time. The order below is a guide — follow the conversation naturally, but ensure all areas are covered before moving to archetype matching.
Use simple ASCII diagrams throughout the interview to confirm understanding. After learning about data flow, sketch it and ask "does this look right?" For example:
Based on what you've described, here's what I'm seeing:
[EHR system] → parse → classify → generate → [billing system]
Does this capture the flow, or am I missing something?
Read all .md files in the archetypes/ subdirectory of this skill's directory (${CLAUDE_PLUGIN_ROOT}/skills/architect/archetypes/ when running from the installed plugin, or skills/architect/archetypes/ when running from arboretum-dev's working tree). For each archetype file, review its Recognition Signals section — keywords, data flow pattern, and shape.
Compare the interview signals holistically against each archetype. Don't require exact keyword matches — look for pattern alignment:
If a match is found, present the archetype's diagram template applied to THIS project — not the generic example. Show the user's actual system components in the archetype's diagram shape.
If no clear match, take the escape hatch (see below).
Present the essentials from the matched archetype (from its Generic Essentials section), applied to this specific project. Add any project-specific essentials discovered during the interview.
Categorize by cost:
For each HIGH COST essential, recommend a concrete spike using the archetype's Spike Triggers section as a template. Each spike recommendation should state:
Show the full architecture summary in one block:
Wait for user confirmation before generating any files. Ask: "Does this look right? I'll generate ARCHITECTURE.md and group stubs once you approve."
After user approval, generate:
ARCHITECTURE.md — use the matched archetype's "Architecture.md Template Sections" as the structure. Fill with project-specific details from the interview. Include the canonical diagram with this project's actual components.
docs/groups/<name>.md — one stub per spec group. Use docs/templates/group.md as the base structure, and the archetype's "Group Document Template Sections" for content guidance. Each group document gets:
owner: architecture in frontmattername: as lowercase-hyphenated (e.g., ingestion-routing)Read existing project artifacts to build understanding. Prefer bounded reads over whole-file reads — use bash scripts/explore-doc.sh <doc> to discover headings, then bash scripts/read-doc-section.sh <doc> "<heading>" for the relevant section(s); fall back to a whole-file read only when discovery is insufficient:
ARCHITECTURE.md or docs/ARCHITECTURE.md — scan the sections relevant to the assessment (e.g. §1 — Product JTBD, §5 — Component Jobs)docs/REGISTER.md — the Spec Index section (bash scripts/read-doc-section.sh docs/REGISTER.md "Spec Index")docs/specs/Summarize what you found before starting the interview.
Same areas as greenfield (purpose/scope, actors/boundaries, data/flow, risk/uncertainty, scale), but Claude proposes answers from what it read. The user confirms or corrects.
Example: "Based on your code, this looks like a pipeline that transforms clinical documents into billing claims. Is that right?"
This is faster for the user and validates Claude's understanding. Pay special attention to scope and boundaries — existing projects often have implicit scope that needs to be made explicit.
Same as greenfield, but validate against existing structure. If the code structure doesn't match the archetype, flag it explicitly:
"Your code looks like a pipeline but your specs are grouped by feature. Want to restructure, or keep the current organization?"
Same as greenfield, but flag which essentials are already violated in existing code:
"Your stages share imports — spec independence needs attention."
Only recommend spikes for essentials not yet validated by existing tests or working code. If a spike's question is already answered by production behaviour, skip it.
Same approval gate as greenfield.
Reconcile the archetype template with any existing ARCHITECTURE.md — don't overwrite existing decisions or content. Create any missing group documents.
If interview signals don't clearly match any archetype:
/architect again when you have 5+ specs and the grouping axis should be clearer."$ARGUMENTS
Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub stephen-van-gaal/arboretum --plugin arboretum