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

  1. Brainstorm β€” clarify what to build (goals, constraints, success criteria)
  2. Write spec β€” detailed design document with architecture, components, data flow
  3. Write plan β€” break spec into bite-sized implementation tasks
  4. Agent executes β€” AI coding agent implements task by task
  5. Review β€” human reviews each task output before proceeding

πŸ“– Further reading

Agentic Coding Context Engineering


Template: knowledge_note_info