Phase 0: Detect Stage
→ Read and follow: ~/.claude/skills/decompose/steps/detect-stage.md
Phase 1: Codebase Context
→ Read and follow: ~/.claude/skills/decompose/steps/context-gather.md
Phase 2: Execute Decomposition
If PLAN_TO_SPECS:
→ Read and follow: ~/.claude/skills/decompose/steps/decompose-specs.md
If SPECS_TO_TASKS:
→ Read and follow: ~/.claude/skills/decompose/steps/decompose-tasks.md
Phase 3-4: Quality Review & Output
→ Read and follow: ~/.claude/skills/decompose/steps/quality-review.md
Anti-Patterns
| Wrong | Right |
|---|---|
| 10 tiny tasks | 3 right-sized tasks |
| 15 criteria per task | 3-5 essential behavioral tests |
| "Works correctly" | Testable assertions |
| No integration tests | Include integration criteria in relevant tasks |
| Dotted IDs (1.1) | Sequential integers (1, 2, 3) |
| Split TDD phases | Atomic TDD within each task (see TDD Atomicity above) |
| TBD/TODO in spec | Resolve now or ask user |
| Missing implements | Every task links to plan goal IDs |
| Phases with import deps between them | Each phase ships independently — merge if symbol created in N used in N |
Manual depends_on when task references another's output | Use inputs: {key: "$task[N].outputs.key"} — deps auto-computed |
String criteria (- "text") | CriterionV2 format (- id: c-1, current: "text") |
Dict testing (testing: {unit: ...}) | List testing (testing: ["unit: ..."]) |
Protocols
!cat ~/.claude/skills/_shared/review.md