AI can now write software faster than any team in history. That has exposed an old truth: the hard part was never typing the code. It was knowing exactly what to build. Give an AI a vague request and it fills the gaps with guesses, quickly and confidently. Spec-driven development flips the order. You write down what you want, clearly, before anything gets built, and that document becomes the source of truth for people and AI alike. Here's what it is, how to do it well, when to change the spec, and how to keep it healthy.
Key takeaways
- A spec is a clear, written description of what to build and why, including how you'll know it's done. It's not a long prompt and it's not a 50-page binder.
- Spec-driven development makes the spec the source of truth. Code, tests and AI instructions all trace back to it.
- The golden rule for changes: when what the product should do changes, update the spec first, then the code.
- Match the rigor to the job. A one-line fix doesn't need a spec. A new feature, a long-lived product or a regulated system does.
What spec-driven development is
A specification, or spec, describes what a piece of software should do: who it's for, what problem it solves, how it should behave and what "done" looks like. Spec-driven development (SDD) is the practice of writing that spec first and treating it as the single source of truth while the software is designed, built, tested and changed.
The idea isn't new. Engineers have written requirements documents, API contracts and test scenarios for decades. What's new is the reason it suddenly matters to everyone: AI coding agents. In 2025, GitHub released an open-source toolkit for spec-driven development, Amazon launched Kiro, a coding tool built around specs, and Thoughtworks added the technique to its Technology Radar as one worth assessing. By 2027 it's a standard conversation in any team building with AI.
Vibe coding asks the AI to guess what you mean. Spec-driven development tells it.
Why it matters more in the age of AI
A human developer who gets a vague request will usually ask questions. An AI agent often won't. It fills every gap with a plausible assumption and keeps going. That's how you end up with an app that looks finished but handles refunds the wrong way, forgets about users on slow connections, or quietly ignores a rule your business can't break.
Fast, then slow
A demo appears in hours. Then come weeks of "that's not what I meant", rework and surprises.
Slower start, faster finish
An hour or two of clear thinking up front, then the AI and the team build the right thing the first time far more often.
Shared memory
Months later, anyone (or any AI) can read why the product works the way it does.
A January 2026 technical report on SDD argues the approach adds the most value for AI-assisted work, complex requirements, long-lived systems with several maintainers, and regulated industries, and that it can be overkill for throwaway prototypes and quick experiments.
Three levels of commitment
Writing in late 2025, Thoughtworks' Birgitta Böckeler described three levels of spec-driven development. They're a useful way to decide how far to go.
| Level | What happens to the spec | Best for |
|---|---|---|
| Spec-first | Written before building, then set aside once the feature ships | One-off features, small projects |
| Spec-anchored | Kept and updated as the product evolves, and used for every change | Most real products, and the sweet spot for most teams |
| Spec-as-source | People edit only the spec, and code is regenerated from it | Narrow, well-tooled areas. Still experimental for typical apps |
Most teams start spec-first. The real payoff comes from spec-anchored work, where the spec stays alive for the whole life of the product.
What a great spec contains
A great spec is short enough to read in one sitting and precise enough that two different builders would produce roughly the same thing. These sections cover most products:
- The goal and the why. One or two sentences on the problem and who has it. "Busy clinic managers lose hours each week chasing appointment confirmations."
- Users and their key journeys. Who uses it and the handful of things they must be able to do, written as short user stories.
- Acceptance criteria. Testable statements of "done". A popular format is Given / When / Then: Given a patient hasn't confirmed, when it's 24 hours before the appointment, then they receive one reminder by text.
- Scope and non-goals. What's in, and just as important, what's deliberately out for now. Non-goals stop scope creep and stop AI from "helpfully" building extras.
- Rules and constraints. Business rules, privacy and security requirements, accessibility, performance and brand guidelines. GitHub's toolkit calls a project's always-true principles its "constitution".
- Edge cases. Empty states, errors, cancellations, time zones, duplicate submissions: the places where software usually breaks.
- Open questions and decisions. What's still undecided, and a short log of decisions made and why.
The workflow
The loop matters: validation sometimes shows the code is wrong, and sometimes shows the spec was.
How to write a spec well
- Write for a smart stranger. If someone new to the project, or an AI with no context, couldn't build from it, it's not clear enough.
- Prefer examples to adjectives. "Fast" means nothing. "Search results appear within one second for a typical catalog" is testable.
- Make every requirement checkable. If you can't imagine a test for it, rewrite it.
- Review it with the people who'll use it before anything is built. Changing a sentence is far cheaper than changing a shipped feature.
- Keep it small and split it. One spec per feature or area beats one enormous document nobody reads.
When to edit the spec
This is where most teams go wrong. Either the spec is never touched again and slowly becomes fiction, or it's rewritten on every whim and nobody trusts it. A simple rule solves most of it: if a change affects what the product does or why, it goes in the spec first. If it only affects how it's built, it doesn't.
| Situation | Edit the spec? | Why |
|---|---|---|
| A new feature or a change in behavior | Yes, before building | The spec defines what "correct" now means |
| Users or the client change their mind | Yes, and log the decision | Future readers need to know why it changed |
| Building reveals a gap or a contradiction | Yes, then continue | The spec was incomplete. Fix the source, not just the symptom |
| A bug shows a case nobody thought of | Yes, add an acceptance criterion | So it's tested forever after |
| A new law, policy or brand rule | Yes, in the rules section | Constraints apply to every future change |
| Switching a library or refactoring code | No, update the plan | Behavior doesn't change, only the how |
| Fixing a typo or a one-line bug | No | Not worth the ceremony |
Code that disagrees with the spec is a bug. A spec that disagrees with reality is a bigger one.
How to keep a spec in top shape
- Store it next to the code. Keep specs in the same repository as the software, with version history, so every change to behavior and every change to the spec can be seen together.
- Review spec changes like code changes. A change to the spec deserves a second pair of eyes, just as a code change does.
- Give it an owner. One person is responsible for the spec making sense as a whole, even if many people contribute.
- Link it to tests. Each acceptance criterion should map to an automated test or a clear check. Then drift shows up as a failing test, not a surprise in production (see how to tell if AI works).
- Keep a short decision log. One line per decision: what, why, when. It answers "why does it work like this?" months later.
- Prune regularly. Delete what no longer applies. A spec full of outdated sections is worse than a short one.
- Watch for spec debt. Warning signs: people say "ignore that part of the spec", the AI keeps getting a feature wrong, or new teammates can't use it to understand the product.
Common traps
- A sledgehammer for a nut. Böckeler describes one tool turning a small bug fix into four user stories with 16 acceptance criteria. Scale the process to the size of the change.
- Review overload. AI can generate pages of spec text that nobody reads carefully. A shorter spec that's actually reviewed beats a long one that isn't.
- False sense of control. A spec doesn't guarantee the AI follows it. Agents still skip or misread instructions, so validation against the acceptance criteria is not optional.
- "Spec" as a fancy word for "long prompt". A real spec is a maintained document the whole team relies on, not a one-time instruction.
Have an idea that needs a clear plan?
NextGenOra's experts help turn your idea into a clear spec, with goals, user journeys and what "done" looks like, then build it with you. Bring us your idea.
Talk to an expertFrequently asked questions
What is spec-driven development?
Spec-driven development is a way of building software where a clear written specification of what to build, for whom and how success is judged comes first, and stays the source of truth for people and AI coding tools throughout the build and every later change.
How is spec-driven development different from vibe coding?
Vibe coding means loosely prompting an AI and accepting what it produces. Spec-driven development defines requirements, acceptance criteria and constraints first, so the AI builds to a clear target and the result can be checked against it.
When should you update a software spec?
Update the spec before changing code whenever what the product does or why changes: new features, changed requirements, gaps discovered while building, bugs that reveal missing cases, and new rules. Purely technical changes like refactoring belong in the technical plan instead.
Is spec-driven development worth it for small projects?
For quick prototypes and tiny fixes, a light approach is usually enough: a short goal, a few acceptance criteria and a list of non-goals. The fuller process pays off for real products, long-lived systems, teams and regulated domains.
Sources
- Birgitta Böckeler, martinfowler.com, Understanding Spec-Driven-Development: Kiro, spec-kit, and Tessl (October 2025).
- GitHub Blog, Spec-driven development with AI: Get started with a new open source toolkit (September 2025).
- Thoughtworks Technology Radar, Spec-driven development (November 2025).
- D. B. Piskala, arXiv, Spec-Driven Development: From Code to Contract in the Age of AI Coding Assistants (January 2026).



