---
title: "What is spec-driven development?"
url: "https://www.mikefluff.com/en/answers/what-is-spec-driven-development"
locale: "en"
author: "Mikhail Savchenko (Mike Fluff)"
updated: "2026-10-14"
published: "2026-10-14"
description: "What spec-driven development (SDD) is: how GitHub Spec Kit and Kiro work, what a good spec for an AI agent contains, and what a spec does not solve."
book: "https://www.mikefluff.com/en/books/nobody-writes-code"
alternates:
  - locale: "en"
    url: "https://www.mikefluff.com/en/answers/what-is-spec-driven-development"
    markdown: "https://www.mikefluff.com/en/answers/what-is-spec-driven-development.md"
  - locale: "ru"
    url: "https://www.mikefluff.com/ru/answers/what-is-spec-driven-development"
    markdown: "https://www.mikefluff.com/ru/answers/what-is-spec-driven-development.md"
  - locale: "pt"
    url: "https://www.mikefluff.com/pt/answers/what-is-spec-driven-development"
    markdown: "https://www.mikefluff.com/pt/answers/what-is-spec-driven-development.md"
  - locale: "es"
    url: "https://www.mikefluff.com/es/answers/what-is-spec-driven-development"
    markdown: "https://www.mikefluff.com/es/answers/what-is-spec-driven-development.md"
---

# What is spec-driven development?

Spec-driven development is a way of building software with AI agents in which you first write a specification (what the system must do, for whom, by what signs the work is done and what must not break) and the agent then plans, writes and checks code against it. The spec, not the chat history, becomes the source of truth.

## From vibes to a spec

On 2 September 2025 GitHub released the open-source Spec Kit and explained why. Vibe coding “can be great for quick prototypes,” it wrote, but is far less reliable for serious applications and existing codebases. Spec Kit runs in four phases: Specify what you are building and why, Plan the technical approach, break it into small testable Tasks, and only then Implement. GitHub’s own line: “we’re moving from ‘code is the source of truth’ to ‘intent is the source of truth’” ([GitHub](https://github.blog/ai-and-ml/generative-ai/spec-driven-development-with-ai-get-started-with-a-new-open-source-toolkit/)). Amazon’s Kiro and Tessl take similar routes.

## What a spec has to contain

In the book I show this on a nail salon that lets clients give several phone numbers. The order “add a second field to the table and a button to the form” described two links out of seven, and the other five broke. The intent would have read differently: a client can enter several numbers and mark the main one; the reminder goes to the main one; old clients keep their numbers after the migration; the accountant’s export opens; all checks are green ([chapter “A Goal Instead of an Instruction”](https://www.mikefluff.com/en/read/nobody-writes-code/ch17#a-9635283c)). You can walk the chain in the experiment [“Seven links behind one phone number”](https://www.mikefluff.com/en/experiments/nw-ch04-seven-links).

Besides the goal, a good intent has limits: what must not be done even for the sake of victory, and where the agent should stop and report ([same chapter](https://www.mikefluff.com/en/read/nobody-writes-code/ch17#a-09a18fcf)). Limits are most useful written as prohibitions ([chapter “Architecture as a System of Prohibitions”](https://www.mikefluff.com/en/read/nobody-writes-code/ch07#a-0d8a505a)). The usual place is AGENTS.md, a file the agent reads at the start of every session, which [agents.md](https://agents.md) says over 60,000 open-source projects use ([same chapter](https://www.mikefluff.com/en/read/nobody-writes-code/ch07#a-042860ce)).

## What a spec does not solve

In October 2025 Birgitta Böckeler of Thoughtworks tried Kiro, Spec Kit and Tessl and wrote down where they stall. Kiro turned a small bug fix into four user stories with 16 acceptance criteria. Spec Kit produced a pile of markdown, and she wrote, “I’d rather review code than all these markdown files.” And despite all the checklists, the agent sometimes skipped instructions and recreated classes the project already had ([Martin Fowler’s site](https://martinfowler.com/articles/exploring-gen-ai/sdd-3-tools.html)).

The last point does not surprise me. A rule in a text file is a request, and in a long session the agent may forget it ([chapter “Architecture as a System of Prohibitions”](https://www.mikefluff.com/en/read/nobody-writes-code/ch07#a-169dab2d)). A spec works when its points become checks, and when the tests are written or approved by someone other than the agent writing the code ([chapter “The Agent Cheats the Test”](https://www.mikefluff.com/en/read/nobody-writes-code/ch10#a-342597c4)). Read the plan before the work starts, while the agent has not yet deleted anything ([chapter “A Goal Instead of an Instruction”](https://www.mikefluff.com/en/read/nobody-writes-code/ch17#a-452d0378)). Stating a task so it cannot be read two ways is the first module of my [vibe coding course](https://www.mikefluff.com/en/vibe-coding-course).

## Questions

### How is spec-driven development different from TDD?

In TDD you write a test first, then the code that passes it. In SDD you first write the whole description: goals, limits, criteria for done. Tests come out of the spec and are how you check the agent carried it out.

### Do I need special tools for SDD?

No. Spec Kit, Kiro and Tessl make it smoother, but a text file with the spec, an AGENTS.md with the prohibitions and a pipeline of checks the agent cannot switch off are enough.

### Is a spec worth writing for a small task?

Usually not. Böckeler describes a small bug fix growing into four stories and 16 criteria. A spec pays off when a change touches several parts of the system or other people’s data.

## From the book

- [Chapter 17. A Goal Instead of an Instruction](https://www.mikefluff.com/en/read/nobody-writes-code/ch17) (opening free, rest in the full book; Markdown: https://www.mikefluff.com/en/read/nobody-writes-code/ch17.md)
- [Chapter 7. Architecture as a System of Prohibitions](https://www.mikefluff.com/en/read/nobody-writes-code/ch07) (opening free, rest in the full book; Markdown: https://www.mikefluff.com/en/read/nobody-writes-code/ch07.md)
- [Chapter 10. The Agent Cheats the Test](https://www.mikefluff.com/en/read/nobody-writes-code/ch10) (opening free, rest in the full book; Markdown: https://www.mikefluff.com/en/read/nobody-writes-code/ch10.md)

## Try it

- [Seven links behind one phone number](https://www.mikefluff.com/en/experiments/nw-ch04-seven-links) — The salon administrator’s request against the chapter’s chain: data schema, migration, logic, links to other programs, permissions, screens, checks. The agent changed two links; the other five made themselves known within three weeks.

## Related questions

- [What is context engineering?](https://www.mikefluff.com/en/answers/what-is-context-engineering)
- [What is agentic AI?](https://www.mikefluff.com/en/answers/what-is-agentic-ai)
- [Why is AI-written code cheap to write but expensive to maintain?](https://www.mikefluff.com/en/answers/cheap-code-expensive-maintenance)

---

Source: [Nobody Writes Code Anymore](https://www.mikefluff.com/en/books/nobody-writes-code)
