Spec-Driven Development (SDD) — Workflow Reference
The Four Phases
2. PLAN (/plan)
- Goal: Design the technical implementation.
- Tech stack, architecture (contracts/schemas), dependency matrix, and risks are defined.
- Ambiguities surfaced in the spec are resolved via
/clarify.
3. TASKS (/tasks)
- Goal: Decompose the plan into chunks (5–30 min per agent session).
- Each task requires a stable ID, description, file list, and verifiable AC.
- Validation: Implementation is blocked if any spec AC lacks a corresponding task.
4. IMPLEMENT (/implement)
- Goal: Execute tasks in parallel where dependencies allow.
- Each task runs through an isolated RPI loop (Research, Plan, Implement).
pipeline-state.jsonis reconciled upon completion or failure of each task.
Artifact Skeletons
plan.md
- Architecture: Layer diagrams and data flow.
- API Contracts: Schemas and signatures.
- Dependency Matrix: Upstream/downstream component mapping.
tasks.md
- ID:
T-1,T-2, etc. - Acceptance: A concrete command or check that returns pass/fail.
- Depends On: Upstream task IDs.
Pattern Mapping
Reference Files
sk-4d-method/SKILL.md— Per-invocation wrapper.sk-pipeline-patterns/SKILL.md— Pattern 5 definition.sk-write-review-isolation/SKILL.md— Implementation review loop.sk-pipeline-state/SKILL.md— State reconciliation rules.