/explore
Five-phase investigation that produces specs/ARCHITECTURE.md.
When to use
Section titled “When to use”- Starting on a new codebase
- Architecture doc is missing or stale
- Before
/planon a brownfield project
What it does
Section titled “What it does”- Repo contents — What’s in the codebase, what’s the tech stack
- Internal architecture — Components, boundaries, patterns, data models
- External connections — APIs, databases, queues, third-party services (with latency, SLAs, failure modes)
- Ecosystem — Upstream consumers, downstream dependencies, blast radius
- Operational context — Deployment, monitoring, alerting, on-call, who owns what
Each phase asks questions — it doesn’t just read code and present findings. Challenge-first, decorate-second.
Greenfield projects get a fast exit: detects empty repos, creates minimal scaffolding, sends you to /feature.
Output
Section titled “Output”specs/ARCHITECTURE.md — the shared reference document that every other command reads.
Next step
Section titled “Next step”/feature to define a feature, or /plan if you already have a spec.