Egor Urvanov

Spec-Driven Development

Specs and requirements · SDD

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.

youspecwhat the system must doagentcodefollows the specyou writereadswriteschecks code against the spec● model, people, systems, data  ● agent and harnessSpec first, code follows; the agent writes code and checks it against the spec

Reconcile loop: Kubernetes and the agent

KubernetesSpec-Driven Development
Desiredmanifests, a Helm chartthe spec
Actualservices in the clustercode in the repository
Who comparesa controllerthe agent
What it does on a mismatchstarts or removes podsedits code until tests and spec agree
How to change the systemedit the manifest, not the clusteredit 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.

How is a spec different from AGENTS.md?

A spec describes one change and lives until it is closed. AGENTS.md holds rules for the whole project and enters every agent session.

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

Related terms

Whole glossary

© 2026 Egor Urvanov