Skip to content
Blog
3 min read

From Vibe Coding to Spec-Driven Development: Why the Spec Is the New Source Code

Spec-driven development puts a written specification, not a prompt, at the center of AI coding. What it is, how GitHub Spec Kit and Kiro use it, when it is worth the effort, and a short spec template you can copy.

  • spec-driven development
  • vibe coding
  • AI coding
  • GitHub Spec Kit
From Vibe Coding to Spec-Driven Development: Why the Spec Is the New Source Code

A year ago, the most exciting thing about AI coding was that you could skip the planning. Describe what you want, accept what comes back, and keep going until it works. That style got a name, vibe coding, and it is still the fastest way I know to test an idea.

But for anything that has to keep working, many teams have started doing the opposite. They write the plan first, in a document, and treat that document as the thing the code must match. In 2026 this has its own name too: spec-driven development.

What spec-driven development means

The idea is simple. Before an agent writes any code, you write a short specification: what the feature does, for whom, which rules it must follow and how you will know it works. The agent then works from that spec, usually in three steps: plan, break the plan into tasks, implement the tasks.

The important part is the direction of trust. In vibe coding, the code is the truth and the prompt is forgotten. In spec-driven development, the spec is the source of truth. If the code and the spec disagree, you fix the code, or you consciously change the spec.

Two tools made this popular this year:

  • GitHub Spec Kit, an open-source toolkit that works with many coding agents. It gives you commands to write a spec, turn it into a technical plan and split the plan into tasks. GitHub still labels it experimental.
  • Kiro, an editor from AWS that builds the same flow into the tool itself: spec, then design, then tasks, then code.

Why it works better with agents

Agents are good at following instructions and bad at guessing intent. A one-line prompt leaves hundreds of decisions open: error handling, edge cases, limits, naming, what happens when the network fails. The agent fills each gap with something plausible, and plausible is not the same as right.

A spec closes those gaps before the code exists. It also gives you something much easier to review than a thousand-line diff. Reading a one-page spec and asking “is this what we want?” is a better use of a senior engineer’s time than reading generated code line by line.

There is a second benefit people underrate. A spec outlives the session. Next month, a new agent, or a new teammate, can read it and understand why the code is shaped the way it is.

A spec template you can copy

You do not need a special tool to start. This is roughly the template I use for a feature of one to three days of work:

# Feature: Password reset by email

## Goal
Users who forgot their password can set a new one without contacting support.

## Rules
- The reset link expires after 30 minutes and works once.
- Requesting a reset for an unknown email returns the same response as for a known one.
- At most 3 reset emails per address per hour.
- Changing the password signs the user out on all other devices.

## Out of scope
- SMS reset, security questions.

## Acceptance checks
- [ ] Expired or reused link shows a clear error and offers a new link.
- [ ] Rate limit returns 429 after the third request.
- [ ] Old sessions stop working after the change.

## Open questions
- Should we notify the user by email after a successful change? (Yes, decided 2026-11-20.)

Notice what is not there: no code, no framework, no file names. The rules and the checks are the valuable part. The “out of scope” line saves more arguments than any other section.

When it is not worth it

Spec-driven development is not free, and critics are right that it can turn into waterfall with better branding. I would not write a spec for:

  • a throwaway prototype or a script you will run once,
  • a small bug fix where the expected behaviour is already obvious,
  • exploring an idea when you do not yet know what you want.

For those, vibe coding is still the right tool. The skill is knowing when you have moved from exploring to building, and switching modes at that moment.

My take

I see spec-driven development less as a new method and more as old engineering discipline coming back, because AI made the cost of skipping it visible. When code was expensive to write, we were forced to think first. When code became almost free, many of us stopped thinking first, and paid for it later in production.

The engineers who will get the most from AI are the ones who can write a clear spec: precise rules, honest edge cases, testable checks. That is a writing skill as much as a coding skill, and it is one that does not go out of date when the next model arrives.

If you have a product idea and want help turning it into a spec that a team, or an agent, can build reliably, get in touch. For the non-technical side of the same problem, read how to write a software project brief.

Spec-Driven Development: Beyond Vibe Coding (With Template)