Spec-driven development: the method, the workflow and its critics

Spec-driven development (SDD) is a way of building software with AI coding agents in which you write a specification (spec) before any code is generated: what to build, why, and how you will know it works. The agent implements the spec, and you check the result against the spec.

What is spec-driven development?

The term has no single owner. These three definitions were published within three months of each other in 2025.

Birgitta Böckeler, writing on martinfowler.com in October 2025: "Spec-driven development means writing a 'spec' before writing code with AI ('documentation first')."

The Thoughtworks Technology Radar of November 2025 says the term "generally refers to workflows that begin with a structured functional specification, then proceed through multiple steps to break it down into smaller pieces, solutions and tasks."

Den Delimarsky of GitHub, announcing Spec Kit in September 2025: "We're moving from 'code is the source of truth' to 'intent is the source of truth.'"

The three agree on the core. Intent is written down first, the work is divided into smaller steps, and the written spec is what the agent implements and what the result is checked against.

Where did spec-driven development come from?

SDD is a reaction to vibe coding. Andrej Karpathy gave vibe coding its name in February 2025: describe what you want, accept what the model produces and keep prompting until it seems to work. GitHub's announcement of Spec Kit names the result, code that "looks right, but doesn't quite work".

The tools followed within the year:

  • In July 2025, AWS introduced Kiro, a development environment built around requirements, design and task documents.
  • In September 2025, GitHub released Spec Kit as open source.
  • In November 2025, Thoughtworks placed spec-driven development on its Technology Radar in the Assess ring.

Putting a specification ahead of the code is an old idea. Behaviour-driven development, design by contract and model-driven development all did it. What SDD adds is the reader of the spec, which is an agent that writes the code itself.

Spec-driven development vs vibe coding vs TDD

Vibe coding Test-driven development (TDD) Spec-driven development
What you write first A prompt A failing test A spec
What the code is checked against Whether it seems to work The tests The spec's acceptance criteria
Where the intent is kept In the chat history In the test suite In a written spec
What it suits Prototypes and throwaway scripts Units of logic you understand well Features that have to work and be maintained

SDD and TDD combine. The acceptance criteria of a spec are statements a test can check, so the spec says what and why and the tests prove it. Vibe coding and SDD combine as well, in sequence: a prototype built by prompting is a cheap way to find out what the spec should say.

What are spec-first, spec-anchored and spec-as-source?

They are Böckeler's names for three levels of commitment to the spec.

  1. Spec-first. In her words, "a well thought-out spec is written first, and then used in the AI-assisted development workflow for the task at hand."
  2. Spec-anchored. "The spec is kept even after the task is complete", and it is used again when the feature changes.
  3. Spec-as-source. "The spec is the main source file over time, and only the spec is edited by the human, the human never touches the code."

Each level costs more to keep up than the one before, because a spec that is kept has to be kept true. Böckeler doubts the upper two. She wonders whether they "might end up with the downsides of both MDD and LLMs", meaning the rigidity of model-driven development with the unpredictability of a language model on top.

What does a spec-driven development workflow look like?

GitHub's Spec Kit names four phases: Specify, Plan, Tasks and Implement. Other tools use other names and add steps before and after. Put together, the sequence is this:

  1. Clarify the intent. Settle what you are building, for whom and what is left out, before any talk of implementation.
  2. Write the spec, with the outcome, the decisions, the acceptance criteria and the limits of the work.
  3. Break the spec down until each part is small enough for an agent to implement and check in one session.
  4. Record which parts depend on which, so that each is built on something that exists.
  5. Implement one part at a time, giving the agent that part's spec and the context it needs.
  6. Review each result against its acceptance criteria.
  7. Change the spec first when the requirements change, and the code second.

What does a good spec for an AI agent contain?

A good spec for an agent states the outcome and the reason for it, the decisions you have made, acceptance criteria that a test or a person can check, what is out of scope and how to verify the result. It fits on one screen for one change. Most of its value comes from the decisions, and the reliable way to find them is to have the agent question you before it writes anything. How to write a spec for an AI coding agent works through an example and gives a template.

How do you break a large spec into smaller ones?

A spec for a whole feature is split by what the user can do, one level at a time, until each part is something an agent can finish and verify in one session. The parts form a tree whose branches have different depths, and each part records the parts it depends on. That record gives you the build order and shows which parts can be built at the same time. How to break down a spec for AI coding agents carries a checkout flow through the whole process.

How do you keep an agent inside the spec?

An agent reads more code than the spec concerns and edits what it finds there unless the spec says where the work ends. The remedy is an out-of-scope section, an instruction to report other problems without fixing them, and a look at the list of changed files before the review. How to stop an AI coding agent's scope creep covers the boundary and what to do with the reports.

What does the agent need besides the spec?

The agent also needs the instructions that hold for every change: your rules, your skills, your subagents and your MCP servers. A spec stays short only when the conventions live there and not in each spec. Keeping them the same across repositories and across tools is a problem of its own, and how to share AI agent configuration across projects compares the ways to do it.

What do critics of spec-driven development say?

The criticism is specific and comes from people who tried the tools.

Böckeler's objection is weight. One tool turned a small bug into "4 'user stories' with a total of 16 acceptance criteria", and of the documents the tools produce she writes: "To be honest, I'd rather review code than all these markdown files."

François Zaninotto of Marmelab, in The Waterfall Strikes Back (November 2025), counted "8 files and 1,300 lines of text" for a feature that displays the current date. He calls SDD "a step in the wrong direction" that reminds him of the waterfall model, with its "massive documentation before coding". His alternative is to split a complex requirement into simple ones and build in small increments.

The Technology Radar makes a different point. Some of the tools "generate lengthy spec files that are hard to review", and the authors suspect the field is relearning "that handcrafting detailed rules for AI ultimately doesn't scale."

Liu Shangqi of Thoughtworks answers the waterfall charge (December 2025). Waterfall's problem, he writes, was "its excessively long feedback cycles", and SDD is meant to shorten the loop. He also concedes a weakness of his own side: "Spec drift and hallucination are inherently difficult to avoid."

I think the critics are right about volume and right about small changes. A bug fix doesn't need user stories, and a spec that takes longer to review than the code has failed at its one job. The waterfall charge holds against one large document written up front for a whole product. It doesn't hold against a short spec written for the next change and implemented the same day, which is close to what Zaninotto recommends under another name. Spec drift is avoided only by changing the spec whenever you change the behaviour, and a spec nobody will maintain is better deleted.

Which tools support spec-driven development?

  • GitHub Spec Kit is an open-source toolkit of agent commands that produce a spec, a plan and a task list as Markdown files in your repository.
  • Kiro is a development environment from AWS whose specs are a requirements file, a design file and a task file for each feature.
  • OpenSpec is an open-source framework that keeps the current specs in the repository and describes each change as a proposal with its own design and tasks.
  • BMAD Method is an open-source method, installed as agent skills, with a short path for a single change and a longer planning path for larger work.
  • Athenode is a local console for AI coding agents whose specifications form a tree, from a whole application down to a part one agent session implements, with a workflow that installs into the AI coding tool you use.

The comparison of SDD tools sets them side by side. There is also a page for each pair: Athenode and Spec Kit, Kiro, OpenSpec and the BMAD Method.

How Athenode approaches spec-driven development

Athenode's workflow runs inside your AI coding tool. A mind map is a session in which your AI agent asks rounds of questions and turns your answers into a spec. To decompose a spec is to break it down into one level of stages, each a spec of its own, and any stage can be decomposed again, so a whole application becomes a tree. To apply a spec is to have your agent plan and implement each leaf under it, in the order its dependencies allow. An apply run works on its own and stops only when something falls outside the spec and needs you. It follows the project's settings for testing, test-first work, code review and git, including whether it opens a pull request. The specs stay in your Athenode project and your code stays in your repository. Athenode installs into 30 AI coding tools, and the quickstart takes you to a first spec.

Frequently asked questions

Is spec-driven development just waterfall?

No, unless you practise it as one large document written before any code. Waterfall's defect was the long wait between writing requirements and seeing software. A short spec that an agent implements the same day has no such wait.

Do I need a spec for every change?

No. A change you can describe in one sentence needs a clear request and a good commit message. A spec pays off when a change has several parts, alters behaviour that exists or carries decisions you haven't made.

What is the difference between a spec and a prompt?

A prompt is an instruction typed into one conversation. A spec is a document with acceptance criteria that outlives the conversation, so you can review it, hand it to another agent session and check the result against it.

Which AI coding agents work with spec-driven development?

Any agent that can read files and follow instructions, which includes Claude Code, Codex, Cursor and GitHub Copilot. The method needs a written spec and an agent that reads it. The SDD tools differ in which agents they install into, and each tool's documentation lists them.

Sources

Start with one mind map

Install Athenode, run athenode init in your repository and answer your agent's questions about the next thing you want to build.

Install for free

Free on your machine, with no account.