Spec-Driven Development
Spec-Driven Development (SDD) is an approach where a specification — what the system must do — is written first, and an agent writes the code and checks it against the spec. The spec becomes the main document and the code its consequence.
Reconcile loop: Kubernetes and the agent
| Kubernetes | Spec-Driven Development | |
|---|---|---|
| Desired | manifests, a Helm chart | the spec |
| Actual | services in the cluster | code in the repository |
| Who compares | a controller | the agent |
| What it does on a mismatch | starts or removes pods | edits code until tests and spec agree |
| How to change the system | edit the manifest, not the cluster | edit the spec, not the code |
Frequently asked questions
What is spec-driven development?
An approach where the specification of what the system must do comes first, and an agent writes and checks the code against it.Which frameworks support spec-driven development?
For example, OpenSpec by Fission AI and Spec Kit by GitHub.How is spec-driven development different from TDD?
In TDD you first write a failing test for one function, then the code for it. In SDD you first write a spec for the whole change — requirements and when–then scenarios — and the agent derives the tests and code from it.Source: GitHub Blog: Spec-driven development
Read more: OpenSpec: spec-driven development in practiceSpecs by aggregate: keeping specs from multiplyingA reconcile loop: keeping spec and code in syncHow a spec differs from AGENTS.md
Where it appears · 4
- AI agent maturity levels · Specs and context
- What are quality gates for AI agents · Harness
- What is OpenSpec, setup and commands · Specs and context
- Harness engineering in practice · Harness