The short answer
Spec-driven development is a way of building software with AI that starts from a written specification, the spec. It says what the software must do, for whom and under which rules. The AI generates the code from that spec, and you check the code against it. When something changes, you update the spec first and let the code follow.
You will also hear it called spec coding. Same method, shorter name.
The idea is not new: developers have written specifications for decades. What is new is who reads the spec. An AI agent such as Claude Code or Cursor, an AI harness wrapped around a language model, builds what you describe in minutes, so the quality of what you write down now decides the quality of the code directly.
Why everyone is suddenly talking about it
With an AI agent, writing code has become almost free. What became scarce is knowing what to build and being able to tell whether it is right. If you only work with loose prompts, that knowledge lives in a chat history that disappears when the session ends.
A spec keeps that knowledge in a file in the repository. The model reads it again for every task, a colleague can read it, and a test can check against it. That makes spec-driven development the disciplined counterpart of vibe coding, where you prompt until the result feels right. How the two relate is in vibe coding vs spec-driven development.
How spec-driven development works
Most teams and tools follow the same four steps. Each step produces a document you can read and approve before the next one starts.
The spec: what and why
You describe in plain language what the software must do. Who uses it, what they can do, and what happens on an error or an edge case. No code, but concrete enough that someone else can say whether what got built is right.
The plan: how
From the spec comes a technical plan: which stack, which data models, which integrations and which project rules apply. This is where you catch architecture choices before they are in the code.
The tasks: in which steps
The plan is cut into small tasks that can each be built and reviewed on their own. Nobody really reviews a task that touches thirty files.
The code: build and check
The AI agent works through the tasks. Every change is checked against the spec, with tests and with a person reading along. When something is off, you fix the spec or the plan, not just the code.
The key difference from plain prompting is in that last sentence. The spec is the document you maintain. The code follows from it.
The tools for spec-driven development
Tooling that walks you through these steps appeared quickly. You don’t need it to start, but it helps you keep the discipline.
| Spec Kit | Kiro | Markdown in your repo | |
|---|---|---|---|
| What it is | An open-source toolkit from GitHub with commands for spec, plan and tasks. | An AI editor from Amazon with its own mode for specs. | A plain file, such as AGENTS.md or CLAUDE.md, that your agent reads every session. |
| How you work | From your own AI agent, such as Claude Code, Copilot or Cursor. | Inside the Kiro editor, which sets up the documents for you. | With any agent that reads project instructions. |
| What you get | A spec, a plan and a task list as files in your repository. | Requirements, a design and tasks, with the agent working through them. | Whatever you put in: rules, conventions and pointers to specs. |
| Fits | Teams that want to keep their own agent and are looking for a fixed way of working. | Anyone who wants a ready-made environment with the flow built in. | Every project, as the base under the other two. |
How Kiro works in detail, what it costs and how it compares to Cursor and Claude Code is in what is Kiro.
Newer players such as Tessl go further still and treat the spec as the real source code. That is early days. For most teams a good set of markdown files in the repository is the best start: it works with any agent and doesn’t lock you in.
A file of project rules like that is also a form of context engineering: making sure the model gets exactly the information it needs for every task. More on that in what is context engineering.
How a senior team works with specs
We build our own work around a written brief and a person who sees every line before it goes live. A few things make the difference.
The spec is short and concrete
Nobody reads a fifty-page spec, and the model doesn't read it well either. Write down the behaviour, the edge cases and what must not happen. Leave out what goes without saying.
Acceptance criteria you can test
Phrase each piece of behaviour so a test can be written for it: when the user does this, that happens. Then you check the code against the spec, not against a feeling.
Project rules apart from the feature
Stack, conventions and security boundaries apply to every part. They live in one fixed file the agent always reads, so each spec only has to cover the feature itself.
Every mistake becomes a rule
When the agent makes the same mistake twice, something is missing from the spec or the rules. Add it there, and the next task has it solved too.
A person approves every step
Spec, plan and code each get read before the next step starts. On security, payments and customer data a senior developer looks extra hard.
The AI writes the code. The spec decides whether you can say that code is right.
When spec-driven development is a weaker fit
Writing a spec takes time, and that time has to pay for itself. For a prototype when you don’t yet know what it should become, a spec is a guess on paper. There, quick prompting and exploring is the better approach, and you write the spec only for the part that stays.
Small changes don’t need a full spec either. Changing a line of copy or fixing a fifteen-minute bug with spec, plan and task list feels like ceremony, because it is. And a spec is no guarantee: a vague or contradictory spec produces code that neatly satisfies something vague. The thinking stays with you.
Where spec-driven development does pay off: anything with real users, real data and a second year. How to take a project like that from first setup to production is in how to develop software with AI.
Conclusion: the intent on paper
Spec-driven development moves the work from writing code to writing down what the code must do. That sounds like extra work, but with an AI agent doing the typing it is exactly the work that remains, and the work that decides whether the result is any good.
Spec = the yardstick
What the software must do and under which rules, kept in the repository where people, tests and the model can read it.
AI agent = the execution
Fast and tireless, as long as the spec is clear and someone checks that the result matches it.
What is spec-driven development?
What is spec coding?
What is GitHub Spec Kit?
What is Kiro?
What is the difference between spec-driven development and vibe coding?
Do I need a special tool for spec-driven development?
Build faster with AI without lowering the bar?
Our senior developers work with specs and AI agents every day. Bring them onto your project, or have your team learn to work with them well in a workshop.