I used to mix up the name. Spec-driven design, spec-driven development, I kept switching them. The right one is spec-driven development, development guided by a specification. And if you type the acronym SDD on its own into Google, you will still land on SSD drives. So let's spell it out.
I use SDD every day, with Claude Code and Codex working on my projects. In this post I cover what it is, where it came from, what changed with the new tools and, above all, what I measured in practice.
What Is Spec-driven Development (SDD), Without the Fluff
The idea is simple. Before the agent writes a single line, there is a short document that answers:
- What is going to be built and why.
- How you will know it is done: acceptance criteria you can actually check.
- How it will be done: which files change, which part of the project already does something similar.
- In which steps: small tasks, each one checkable.

The GitHub post that launched Spec Kit sums up the shift in one sentence: we are moving from "code is the source of truth" to "intent is the source of truth" (GitHub Blog).
And André Baltieri, in a great piece on the subject, explains why this matters with agents: language models are excellent at completing patterns, but they do not read minds (balta.io). Whatever you did not write down, the agent will fill in with the most common pattern it knows. Sometimes it gets it right. Often it is not your project's pattern.

The Opposite of SDD: Vibe Coding
In February 2025, Andrej Karpathy coined "vibe codingWay of programming by asking an AI for everything in plain language and accepting the generated code without reading it closely, steering only by what shows on screen." for the way of programming where you give in to the AI and forget the code even exists. Ask, accept, run, ask again.
It works really well for a weekend prototype. The trouble starts when that turns into a product: nobody knows why the code is the way it is, every new request undoes an old decision, and the agent gets more confused as the project grows.
SDD is not the opposite of using AI. It is using AI with a written agreement.
The Cycle, in Practice
- Specify. What, why and the acceptance criteria. No talk about technology here.
- Plan. How it will be done. The most important point: which file in the project already does something similar and can serve as the model.
- Tasks. Break the plan into small steps. Each one ends with something you can check: a passing test, a working screen.
- Implement. The agent runs the tasks, only what was agreed.
- Review. You read the diff, run the tests and, if something changed along the way, update the spec. That is why the dashed arrow goes back to the start: the spec is alive.
A good practice for acceptance criteria is EARS notation, which Kiro, the AWS IDE, uses in its requirements files (Kiro). It forces a sentence you can verify:
WHEN the user submits the form with invalid data
THE SYSTEM SHALL show the error next to each fieldIt looks like nothing. But writing it this way makes you think about the case, and it gives the agent something it can turn into a test.
What I Measured
I do not use an off-the-shelf SDD tool. I use the folder format: each phase of a project has its own requirements.md, design.md and tasks.md. This site was built that way, in nine phases. My personal CRM is past thirty, each one with a product document and screen designs before any code.
When I delegate a task to a coding agent, I send a short brief: the stack, the files that matter, what it does not need to look at, the command that proves it is done, and a field called pattern to follow, with the path to a file that already does something similar.
I logged the numbers from those delegations. The results changed the way I work:
| What changed in the brief | Tokens spent by the agent (median) |
|---|---|
| With the "pattern to follow" field | about 50k |
| Without the "pattern to follow" field | about 77k |
That is 36% less, across 71 briefs. And in one case with no brief at all, on a front-end task, the agent read 211 of the project's 247 files before getting started. Of everything it spent, 91% went to exploring, not building.
Another finding: listing four to six relevant files was the sweet spot. With fewer, the agent fills the gap by exploring on its own. With more than seven, it reads everything.
The Three Maturity Levels
Birgitta Böckeler, from Thoughtworks, proposed a split into three levels that Baltieri explores in depth (martinfowler.com):
| Level | What happens to the spec | Good for |
|---|---|---|
| Spec-first | Guides the task, then the code becomes the reference | Prototype, isolated task |
| Spec-anchored | Lives in the repository and evolves with the code, with tests blocking drift | Product in production |
| Spec-as-source | People only edit the spec, the code is generated | Stable module, regulated area |
For most teams, the realistic target is the middle one. To be honest about my own case: the specs live in the repository and I update them, but not always on the same day the code changes. In most modules I sit between the first and second levels. And that is fine: maturity can vary from one part of the system to another.
The Tools in 2026
- GitHub Spec Kit. The most popular, with over 145k stars. It works with several agents and follows the cycle constitution, specify, plan, tasks and implement, with one command per step.
- Kiro. The AWS IDE generates the three files (requirements, design and tasks) and has a quick mode for bugs and small tasks.
- OpenSpec. Lighter, built for existing projects: each change becomes a folder with a proposal, specs, design and tasks, and at the end it updates the main spec.
- Tessl. The most ambitious, aiming at the level where the spec is the source of the code.
You do not need any of them to get started. A folder with three markdown files and an agent that reads that folder will do the job.
Where SDD Goes Wrong
SDD has its critics too, and they get several things right:
- Too much markdown. Böckeler wrote that she would rather review code than review that mountain of files. A giant spec is as bad as none at all.
- Ceremony for everything. She describes a small bug that turned into four user stories and sixteen acceptance criteria. A full workflow for a one-line fix is waste.
- Waterfall in disguise. François Zaninotto, from Marmelab, argues that agents already have plan mode and task lists, and that SDD often adds little (Marmelab).
- Specs that go stale. With agents shipping fast, the spec gets outdated in days.
My rule to stay out of that trap: the size of the spec follows the size of the risk. A copy fix or a color tweak goes straight in, no document. A new feature, a change that touches several files or an integration with an outside system gets a spec. And the spec fits in one or two screens. If it does not, the task needs to be split.
Not to Be Confused with
- TDD. The test is the spec, written before the code, in a short loop. It pairs really well with SDD: the acceptance criterion becomes the test.
- BDD. Behavior described in business language, in the given-when-then format. It also plays nicely with SDD.
- Software Design Document. Another SDD, the traditional software design document. Same acronym, different thing.
- "Spec-driven design". It has no standard definition. Sometimes it shows up as an informal synonym, sometimes in the sense of designing an APIContract that defines how one program asks another for data or actions: which endpoints to call, what to send and what comes back. On the web, usually HTTP with JSON. contract before writing code.
How to Start Tomorrow
- Pick the next medium-sized feature in your project, not the smallest and not the biggest.
- Write one page: what, why, three to five acceptance criteria and the file that serves as the model.
- Ask the agent for a plan and tell it to stop before implementing. Read the plan. Fixing things there is much cheaper than fixing code.
- Only release the implementation of the approved tasks.
- Review the diff the way you would review a teammate's. If something changed, update the spec.
If you are figuring out where AI fits in your workflow, I also wrote about when to use visual tools like n8n and when to code the agents, and about what changes for people working with React now that AI writes the components. To take SDD to a whole team, I described how I organize AI coding agents in a front-end team.
This is how I build custom web systems and AI agents for businesses: a document before the code, AI speeding up the execution and a person responsible for the result.
Frequently Asked Questions
What is spec-driven development (SDD), in one sentence?
It is writing the specification of a feature before you let an AI agent code it, and using that specification as the contract and as the review criteria.
Is SDD a return to waterfall?
Not when it is done well. The spec covers one feature, not the whole project, and it gets revisited every short cycle. It turns into waterfall when someone tries to specify everything at once.
Do I need Spec Kit or Kiro to use SDD?
No. Three markdown files in a folder and an agent told to read them before starting will do the job. The tools help standardize things as the team grows.
Is it worth it on a small project?
In a lean version, yes. For a small tweak, no. For a new feature, even half a page of spec saves rework.
References
- GitHub Blog. Spec-driven development with AI: get started with a new open source toolkit, Sep. 2025.
- GitHub. Spec Kit.
- Birgitta Böckeler. Understanding Spec-Driven-Development: Kiro, spec-kit, and Tessl, Oct. 2025.
- André Baltieri. Maturidade do SDD: os 3 níveis do código guiado por IA (in Portuguese), Oct. 2026.
- Data Science Academy. Spec-Driven Development: a nova arquitetura de engenharia de software na era dos agentes de IA, parte 3 (in Portuguese), Feb. 2026.
- Kiro. Specs and Feature specs.
- Fission AI. OpenSpec.
- Tessl. Spec-driven development with Tessl.
- François Zaninotto, Marmelab. Spec-Driven Development: The Waterfall Strikes Back, Nov. 2025.