Specification-Driven Development
ποΈ Description
A development methodology where detailed specifications are written before any code. The specs serve as the primary input for AI coding agents β the more precise and complete the spec, the better the agent output.
Also known as SDD (Specification-Driven Development). The OpenSpec framework formalizes this approach.
π§© Key principles:
- Spec first, code second β never start coding without a spec
- Specs are the product β in Agentic Coding, the developerβs output IS the spec, not the code
- Executable specs β specs should be precise enough that an agent can implement them without ambiguity
- Iterative refinement β write spec β agent implements β review β refine spec β repeat
π How it fits together
- Brainstorm β clarify what to build (goals, constraints, success criteria)
- Write spec β detailed design document with architecture, components, data flow
- Write plan β break spec into bite-sized implementation tasks
- Agent executes β AI coding agent implements task by task
- Review β human reviews each task output before proceeding
π Further reading
Agentic Coding Context Engineering
Template: knowledge_note_info