# What is spec-driven development? Spec first, then AI code

Address: https://sebastianmusial.pl/en/glossary/spec-driven-development/ · Glossary: https://sebastianmusial.pl/en/glossary/

Spec-driven development puts a written description of the change before the code. With AI agents doing more of the building, that description becomes the most important document in the project. Here is how it works.

- Also called: SDD, specification-driven development, spec-first development

**Definition.** Spec-driven development is a way of building software in which a written specification, describing what a change should do, for whom and how it will be checked, comes before any code and becomes the main input for AI coding agents. The agents turn the specification into a plan, tasks and code; people write, agree and update the specification.

## Why has the specification become so important?

An AI agent builds what it is told, quickly and literally. A vague request produces code that works but solves a slightly different problem. A specification written before the work starts gives the agent, the developer and the client the same picture of what “done” means, and stays as a record of why the software behaves as it does.

The idea of describing requirements before coding is old. What is new is that the specification is now read by agents as well as people, so it has to be precise enough for both.

## How does it work in practice?

GitHub’s open-source Spec Kit describes a typical sequence, run as commands inside the coding agent:

1. **Specify.** What should be built and why, from the user’s point of view.
2. **Plan.** The technical approach: architecture, constraints, tools.
3. **Tasks.** The plan broken into small, checkable steps.
4. **Implement.** The agent writes the code, task by task, and runs the tests.

Each step produces a short document that the next one uses, and a person reviews it before moving on.

## Is there one definition?

No. Writing on Martin Fowler’s site, Birgitta Böckeler notes that the term is used in several ways: a specification written only for the first build, one kept up to date for the life of the project, or one treated as the real source from which code is regenerated. Tools differ in which of these they support.

## What does it mean for your business?

You will be asked to read and agree a specification more often, and that is time well spent. A few questions for your developer:

- **Where is the specification kept,** and is it updated when the plan changes?
- **How is each requirement checked:** by a test, a scenario or a person?
- **Who approves the specification** before agents start building?

## Frequently asked questions

**Is spec-driven development the same as writing a requirements document?**
It builds on the same idea, but the specification is shorter, more precise and kept next to the code, because AI agents read it and build from it. It is updated as the project changes.

**Do I have to write the specification myself?**
Not usually. A developer or analyst writes it from conversations with you. Your part is to read it, correct it and agree it before the work starts.

See also: [Software factory](https://sebastianmusial.pl/en/glossary/software-factory/), [Agentic engineering](https://sebastianmusial.pl/en/glossary/agentic-engineering/), [Context engineering](https://sebastianmusial.pl/en/glossary/context-engineering/), [MVP](https://sebastianmusial.pl/en/glossary/mvp/), [AI agent](https://sebastianmusial.pl/en/glossary/ai-agent/)

Sources: [GitHub Spec Kit: documentation](https://github.github.com/spec-kit/), [Birgitta Böckeler, martinfowler.com: Understanding spec-driven development](https://martinfowler.com/articles/exploring-gen-ai/sdd-3-tools.html), [Thoughtworks Technology Radar: Spec-driven development](https://www.thoughtworks.com/radar/techniques/spec-driven-development)

---

Updated: 2026-12-02. Sebastian Musiał, kontakt@sebastianmusial.pl (I reply within 24 hours). Quote after a call, no price list on the site.
All pages: https://sebastianmusial.pl/llms.txt · The whole English text in one file: https://sebastianmusial.pl/en/llms-full.txt
