Help us improve
Share bugs, ideas, or general feedback.
npx claudepluginhub xoai/sage --plugin sageHow this skill is triggered — by the user, by Claude, or both
Slash command
/sage:architectThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
- PERSONA: Read sage/core/agents/architect.persona.md for your mindset.
Creates ADRs in MADR format, arc42 documentation, and plan-context.md for architecture proposals. Handles branch verification, GitHub issue/PR creation, artifact triage, and backlog updates.
Translates PRDs into system architecture via interactive workflow: loads product specs.md, iterates decisions with options/discussion, outputs documented architecture.md. Handles Groundwork monorepos.
Guides architecture planning with steps for requirements, research, design, risk assessment, and task breakdown. Outputs spec, plan, and task artifacts.
Share bugs, ideas, or general feedback.
System design for new projects or major redesigns. Elicit, then design, then plan. Never skip steps.
Scan .sage/work/ for architect initiatives.
This scan is MANDATORY — check the DISK.
Manifest-first path: If .sage/work/*/manifest.md exists with
workflow: architect, read it. Resume at the phase indicated.
Use context summary and handoff guidance for judgment context.
Multi-session architect cycles benefit most from the manifest —
it preserves the reasoning behind architecture decisions across sessions.
Fallback path: If no manifest.md but artifacts exist, use file-scan:
You MUST follow this routing. Do not override it.
Scan .sage/docs/ for existing research, ADRs, or decisions.
Read .sage/decisions.md for context. Read handoff field in
the most recent artifact if present.
Create manifest.md when brief.md is saved (after elicitation).
Update at every checkpoint: elicitation gate, design checkpoint,
plan checkpoint, each milestone completion.
Session end ([N]): Manifest update is MANDATORY — architect cycles
span sessions, so handoff guidance is critical.
Completion: Set status: complete after final milestone.
Anti-lazy-manifest: Same contract as build workflow — summary must
contain judgment, not spec titles.
This is the most important step. Understand the full picture before designing anything.
For comprehensive elicitation process, read
sage/core/capabilities/elicitation/deep-elicit/SKILL.md.
Three rounds — each produces a VISIBLE ARTIFACT:
Round 1 — Vision: What are you building and why? Who is it for? What does success look like? → Produce: vision summary (saved inline in brief or presented)
Round 2 — Constraints: Technical constraints, timeline, team size, existing systems to integrate with, non-negotiables. → Produce: constraints list (saved inline in brief or presented)
Round 3 — Gaps: What's still unclear? What assumptions are we making? → Produce: gaps analysis (saved inline in brief or presented)
Save combined elicitation to .sage/work/YYYYMMDD-slug/brief.md.
Do NOT proceed to design until all three rounds are complete. Do NOT compress three rounds into one response. Do NOT skip rounds because "the user already explained everything." Each round asks different questions — answers to Round 1 don't satisfy Round 2 or 3.
If Sage has relevant UNDERSTAND skills (research, analysis), recommend them here:
Sage recommends understanding the context before designing:
[1] Start with research — understand user needs first [2] Continue with elicitation round [N] [3] Something else
🔒 ELICITATION GATE:
File check: Does .sage/work/*/brief.md exist with content
from all three rounds (vision, constraints, gaps)?
If no → complete the missing rounds. Do NOT proceed to design.
Do NOT rationalize skipping:
Sage: Elicitation complete. Brief saved.
[A] Approve — continue to architecture design [R] Revise — I want to add or change something [N] New session — type /architect to continue with design
Pick A/R/N, or tell me what to change.
File check: .sage/work/*/brief.md MUST exist before designing.
If it doesn't exist, go back to Step 2. No exceptions.
Define: system components, data model, API boundaries, technology choices, deployment architecture, security model. Document key trade-offs and the reasoning behind each decision.
Save architecture decisions to .sage/docs/decision-*.md.
Save the full design to .sage/work/YYYYMMDD-slug/spec.md with frontmatter.
🔒 DESIGN CHECKPOINT:
Self-check (observable conditions):
Sage: Architecture design saved. ADRs in .sage/docs/decision-*.md Decision: [key architecture decisions]. (append to .sage/decisions.md)
[A] Approve — continue to planning in this session [R] Revise — here's what needs changing [Q] Question — I want to understand [specific decision] better [N] New session — type /architect to continue with milestone plan
Pick A/R/Q/N, or tell me what to change.
On approval: update spec frontmatter to status: completed.
Write handoff field in frontmatter:
handoff: |
Key decisions: [architecture choices and trade-offs]
Open questions: [what needs resolution during build]
Risks: [cross-cutting concerns, performance, migration]
Next agent should: [specific guidance for milestone planning]
Append architecture decisions to decisions.md (Rule 7).
File check: .sage/work/*/spec.md MUST exist with status: completed
before creating a milestone plan. If it doesn't → go back to Step 3.
Break the build into milestones (not tasks — milestones). Each milestone should be deployable and testable independently. Within each milestone, create a task plan.
Save to .sage/work/YYYYMMDD-slug/plan.md with frontmatter.
🔒 PLAN CHECKPOINT: Sage: Milestone plan saved to .sage/work/YYYYMMDD-slug/plan.md
[A] Approve — start building milestone 1 in this session [R] Revise — adjust the breakdown [N] New session — type /build to start milestone 1
Pick A/R/N, or tell me what to change.
On approval: append plan approach to decisions.md (Rule 7).
Next steps (Zone 3):
Next steps: /build — spec → plan → implement → verify (start milestone 1) /review — independent evaluation of the architecture /reflect — review design decisions before building
Type a command, or describe what you want to do next.
Execute milestone by milestone. Each milestone MUST follow the build workflow gates independently:
For each milestone:
Do NOT batch-implement multiple milestones without checkpoints. Do NOT skip per-milestone verification because "I'll test everything at the end."
At each milestone completion checkpoint: Sage: Milestone [N] complete — [summary] Decision: [what was learned during implementation]. (append to decisions.md)
[C] Continue to milestone [N+1] [R] Revise — adjust before continuing [P] Pause — type /build to continue next session
Re-validate after each milestone: Check architecture assumptions against what implementation revealed. If the architecture needs adjustment, note it in decisions.md and update ADRs before proceeding.
Communication style: Systems thinking. Name trade-offs explicitly, discuss failure modes, and explain decisions in terms of constraints and alternatives considered.
Good architecture output: