010 Coding Collective

010 Coding Collective

What is spec-driven development? Spec coding explained, with the tools and the pitfalls

Spec-driven development means you write down what the software must do first and have the AI generate code from it. How it works, which tools exist, such as Spec Kit and Kiro, and when it pays off.

AI Spec-Driven Development AI-Assisted Coding AI Agents Claude Code Cursor Software Architecture Software Development

AI writes fast, but what exactly?

An AI agent writes in minutes what used to take a day. Without the intent written down, nobody can tell afterwards whether that code does what was asked.

Spec first, code second

In spec-driven development you first write down what the software must do and which rules it follows. The AI generates code from that document, and you check the code against it.

Code you can verify

The spec becomes the yardstick. Review turns into a comparison with what you wrote down, and a change starts in the spec rather than in a new prompt.

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.

1

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.

2

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.

3

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.

4

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.

1

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.

2

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.

3

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.

4

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.

5

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.

Frequently Asked Questions

What is spec-driven development?

Spec-driven development is an approach where you first write a specification: what the software must do, for whom and under which rules. An AI agent generates the code from that spec, and you check the code against it. When something changes, you update the spec first. The spec is the document you maintain, and the code follows.

What is spec coding?

Spec coding is the short name for spec-driven development. There is no difference in method between the two: in both cases you first write down what the software must do and have the AI generate code from it.

What is GitHub Spec Kit?

Spec Kit is an open-source toolkit from GitHub for spec-driven development. It gives your AI agent commands to create a spec, a technical plan and a task list step by step, which land as files in your repository. It works with several agents, including GitHub Copilot, Claude Code and Cursor.

What is Kiro?

Kiro is an AI editor from Amazon with spec-driven development built in as its way of working. In spec mode Kiro turns your request into requirements, a technical design and a task list, and the agent then works through those tasks.

What is the difference between spec-driven development and vibe coding?

In vibe coding you start with a prompt and keep going until the result feels right. Your intent stays in the chat and in your head. In spec-driven development that intent is in a written spec, so you have something to check the code against. Vibe coding suits prototypes, spec-driven development suits software that has to keep working.

Do I need a special tool for spec-driven development?

No. A markdown file in your repository with the spec, plus a file of project rules your AI agent reads every session, is enough to start. Tools such as Spec Kit and Kiro help you keep to the steps, but the discipline is in how you work, not in the tool.

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.

Let's discuss your project

From AI prototypes that need to be production-ready to strategic advice, code audits, or ongoing development support. We're happy to think along about the best approach, no strings attached.

010 Coding Collective free consultation
free

Free Consultation

In 1.5 hours we discuss your project, challenges and goals. Honest advice from senior developers, no sales pitch.

1.5 hours with senior developer(s)
Analysis of your current situation
Written summary afterwards
Concrete next steps