Spec-Driven Development: Making AI Build What You Meant
What spec-driven development is, how it differs from vibe coding, what you need to know to do it well, and three open-source tools to try.
AI keeps getting better at software engineering. First we got website builders and no-code tools, then autocomplete in the editor, and now tools that build a whole feature from one prompt. It's heading toward less and less human involvement in making software.
The results are uneven, though. Social media is full of stories about AI-built products that fall short on performance, reliability or usability, and people have a word for them: slop. Maybe that's part of why software engineers still have jobs in a hard market.
This post is for experienced engineers and for people just getting into the industry. I'll cover what spec-driven development (SDD) is, how it differs from vibe coding, what you need to know to do it well, when it's overkill, and three open-source tools you can try.
Base Assumptions
- Software engineering is more than coding. In my view the code is rarely the problem. AI writes decent code, often better than most people who write code. Where it goes wrong is vague instructions. It fills every gap with a guess, and you only find out which guesses were wrong once people are using the product.
- AI is inevitable, and avoiding it isn't the answer. If everyone around you adopts it and you don't, you fall behind, and that pressure is hard to argue with. A better answer is to learn how to use it so it builds what you meant, with much less drift. That's what SDD is about.
What is spec-driven development

SDD means you write down what to build, and how it should behave, before the AI writes any code. That spec is what the AI works from, and a human reviews it first.
Most SDD tools follow the same sequence. First a spec: what are we building and why. Then a plan for how. Then a list of small tasks, and then the implementation. In all three tools I cover below, a human reviews the output before any code gets written.
There's a second half of SDD that gets less attention: writing down your standards. AI tends to write verbose code with habits of its own. That's a style problem, and you can steer style. Decide the conventions up front, things like naming, project structure, error handling, how tests are written, and what to avoid.
Once the standards live in a file, the AI follows them on every task and you review against them. That makes reviewing easier too, since you know what the code was supposed to look like.
Vibe coding versus SDD
Vibe coding means describing what you want in a chat, taking what comes back, and fixing problems with more prompts, without reading the result too closely. It's fast, and for a prototype or a throwaway script it's often the right call.
It gets risky when the result has to survive real use. Say users should be able to reset their password by email, and your prompt is "add password reset." The AI now has to decide a few things you never mentioned:
- How long the reset link stays valid.
- Whether the link can be used more than once.
- What the page says when the email doesn't belong to an account.
- How many reset requests one account can make in an hour.
It'll pick something for each one, and it may pick well. But you wouldn't know, because you never made those decisions. Here's the same feature as a few lines of spec, in the style OpenSpec uses (the numbers are made up):
## ADDED Requirements
### Requirement: Password reset link
The system SHALL send a password reset link to the registered email.
The link SHALL expire after 30 minutes and work only once.
#### Scenario: Unknown email
- WHEN someone requests a reset for an email that has no account
- THEN the system shows the same confirmation as for a known email
#### Scenario: Too many requests
- WHEN an account requests more than 5 resets in one hour
- THEN the system rejects further requests until the hour has passed
To write those lines you need to know that links should expire, that a reusable link is a risk, that a different message for unknown emails leaks who has an account, and that unlimited requests can be abused. All of that is plain software knowledge.
We call this a knowledge gap. If you only vibe code, you end up with code you don't understand, built on decisions you never made. You can't tell when the AI guessed wrong, and you can't fix it when you find out. With a spec you make the decisions yourself, and the plan and the review let you check that the AI followed them.
The learning curve
If you are new
SDD can teach you how software works. Every blank in a spec is a question. What happens when this fails? Who's allowed to do this? What should the user see? If you can't answer one, you've found your next thing to learn, and the AI can help you understand it.
There's a trap, though. You can ask the AI to write the spec and then approve it without reading it. The gap is still there, but a few habits help:
- Read every spec and plan before you approve it.
- Ask the AI to explain any term you don't know.
- Ask what assumptions it made, and which ones you would have chosen differently.
- Check one or two decisions against how a real system you know works.
If you're not sure where to start learning, these fundamentals pay off first: how data is stored and how it changes over time, how things fail, basic security, how services talk to each other, and how to test behavior. Or just learn system design. It'll help you in almost every part of being a software engineer.
If you are experienced
You're in a sweet spot. Writing code is getting cheaper, and knowing what can go wrong is getting more valuable: failure modes, edge cases, limits in production. Spend your time in the spec, the standards file and the review. What you've learned from running systems is exactly what a good spec encodes.
What it costs
SDD is slower at the start. You write or review a spec before you see any code, you read the plan, and you set up the tooling. It takes discipline to review each step, and the review is what makes it work. You get less rework later, but only if you actually read what the tool produces.
When SDD is too much
Not everything needs a spec. A one-line fix, a throwaway script, or an exploration where you don't know what you want yet is faster with a plain prompt. The tools agree on this. spec-driven-dev has a /small-change path for changes that don't need a reviewed plan, and OpenSpec has an explore step for when you're not sure what to build.
Rigor also costs time. In its own March 2026 comparison on one feature, the author of spec-driven-dev reports about 22 minutes, against about 15 for two other workflows. That's one test by the tool's author, so it's no general rule, but it makes sense that more review passes take longer.
Three tools to try
I've used all three. They share the same idea and differ in weight, in which agents they work with, and in how they organize the work. I'm not picking a winner here, just giving you options. These repos move fast, and the commands below were current when I read their READMEs in October 2026, so check the docs before you install.
| Spec Kit | spec-driven-dev | OpenSpec | |
|---|---|---|---|
| Works with | Many coding agents | Claude Code | 30+ AI assistants |
| Install | Python 3.11+ and uv, then uv tool install specify-cli | Two /plugin commands inside Claude Code | Node.js 20.19+, then npm install -g @fission-ai/openspec@latest |
| Flow | Constitution, specify, plan, tasks, implement, converge | Write plan, you review, implement plan | Explore, propose, apply, archive |
| License | MIT | MIT | MIT |
How to start
Pick one small feature, not a whole project, and try this:
- Write a page of standards: naming, structure, error handling, testing. Put it where your tool reads it.
- Write the spec for the feature, including the scenarios that should work and the failure cases.
- Let the tool draft the plan, then read it. Note every decision you didn't make yourself.
- Let it implement, then compare the result against your spec, not against what you remember wanting.
- Look at what surprised you. Each surprise is a gap in your spec or your standards.
Do this a few times and your specs get shorter and sharper, because you learn which decisions matter.
If you've tried SDD, I'd like to hear which part of the spec you found hardest to write, and which tool you stayed with.
Cheers!