What is an βagentβ here? An agent is an AI model (like Claude, Cursor, or Copilot) given a specific role, a set of input files, and clear constraints β so it behaves predictably within a defined boundary.
This cookbook uses a five-agent pod model. Each role has a distinct responsibility and a clear handoff protocol. No single agent does everything.
graph LR
P[ποΈ Planner] -->|spec.md| O[π Orchestrator]
O -->|tasks.md + handoff| C[π» Coder]
C -->|code diff| R[π Reviewer]
R -->|approved| V[β
Verifier]
V -->|green signal| Prod[π Merge]
| Role | One-Line Job | Triggered By |
|---|---|---|
| Planner | Turns a humanβs idea into a verified, testable spec | /speckit.specify, /speckit.clarify |
| Orchestrator | Routes work between roles; enforces the Spec-Kit β Superpowers boundary | Session startup, task transitions |
| Coder | Implements each task with TDD (RED β GREEN β REFACTOR) | subagent-driven-development skill |
| Reviewer | Checks spec compliance first, code quality second | requesting-code-review skill |
| Verifier | Runs all automated gates before merge | verification-before-completion skill |
Translates human intent into spec.md acceptance criteria. Runs /speckit.clarify to flush ambiguities before planning. Every criterion must be mechanically verifiable.
Key rule: Does not proceed to plan generation without explicit user approval on acceptance criteria.
Loads context at session start, routes tasks to the correct agent, and enforces the handoff boundary between Spec-Kit and Superpowers. Escalates blocked states to the user rather than guessing.
Key rule: Issues the standard handoff message (see Greenfield Guide or Brownfield Guide) only after tasks.md is confirmed ready.
Executes the TDD loop for each task: write a failing test β write minimum code to pass β refactor. Appends an execution log entry to .ai/traces/AGENT_LOG_REFLECTIONS.md after every session.
Key rule: Writes minimum code only. No gold-plating, no unrequested abstractions.
Two-stage review: (1) spec compliance β does the output satisfy every acceptance criterion? (2) code quality β is it clean, minimal, consistent with the existing style? Blocks on critical issues; fixes minor ones inline.
Key rule: Stage 1 must pass before Stage 2 begins.
Runs all gates defined in .ai/config/VERIFICATION_AND_EVAL_GUIDE.md. Catches phantom completions. Triggers a postmortem entry if any gate fails before merge.
Key rule: Gate failure halts the branch. Logs to postmortems before surfacing the violation to the user.
Full role specifications β including inputs, outputs, and handoff protocols β are in:
β .ai/config/AGENT_PROFILE_ROLES.md
| Role | Spec-Kit Commands | Superpowers Skills |
|---|---|---|
| Planner | /speckit.specify, /speckit.clarify, /speckit.analyze |
β |
| Orchestrator | /speckit.tasks (triggers handoff) |
Session startup routing |
| Coder | β | subagent-driven-development, test-driven-development |
| Reviewer | β | requesting-code-review |
| Verifier | β | verification-before-completion, finishing-a-development-branch |