Understanding Spec-Driven-Development

Original version published at martinfowler.com in October 2025

I've been trying to understand one of the latest AI coding buzzwords: Spec-driven development (SDD). I looked at three of the tools that label themselves as SDD tools and tried to untangle what it means, as of now.

Definition

Like with many emerging terms in this fast-paced space, the definition of "spec-driven development" (SDD) is still in flux. Here's what I can gather from how I have seen it used so far: Spec-driven development means writing a "spec" before writing code with AI ("documentation first"). The spec becomes the source of truth for the human and the AI.

GitHub: "In this new world, maintaining software means evolving specifications. [...] The lingua franca of development moves to a higher level, and code is the last-mile approach."

Tessl: "A development approach where specs — not code — are the primary artifact. Specs describe intent in structured, testable language, and agents generate code to match them."

After looking over the usages of the term, and some of the tools that claim to be implementing SDD, it seems to me that in reality, there are multiple implementation levels to it:

  1. Spec-first: A well thought-out spec is written first, and then used in the AI-assisted development workflow for the task at hand.
  2. Spec-anchored: The spec is kept even after the task is complete, to continue using it for evolution and maintenance of the respective feature.
  3. Spec-as-source: The spec is the main source file over time, and only the spec is edited by the human, the human never touches the code.

All SDD approaches and definitions I've found are spec-first, but not all strive to be spec-anchored or spec-as-source. And often it's left vague or totally open what the spec maintenance strategy over time is meant to be.

An illustration of the three observed levels of SDD, in 2 columns of "Creation of feature" and "Evolution and maintenance of feature", each level shown in a row

What is a spec?

The key question in terms of definitions of course is: What is a spec? There doesn't seem to be a general definition, the closest I've seen to a consistent definition is the comparison of a spec to a "Product Requirements Document".

The term is quite overloaded at the moment, here is my attempt at defining what a spec is:

A spec is a structured, behavior-oriented artifact — or a set of related artifacts — written in natural language that expresses software functionality and serves as guidance to AI coding agents. Each variant of spec-driven development defines their approach to a spec's structure, level of detail, and how these artifacts are organized within a project.

There is a useful difference to be made I think between specs and the more general context documents for a codebase. That general context are things like rules files, or high level descriptions of the product and the codebase. Some tools call this context a memory bank, so that's what I will use here. These files are relevant across all AI coding sessions in the codebase, whereas specs only relevant to the tasks that actually create or change that particular functionality.

An overview diagram showing agent context files in two categories: Memory Bank (AGENTS.md, project.md, architecture.md as examples), and Specs (Story-324.md, product-search.md, a folder feature-x with files like data-model.md, plan.md as example files)

Three examples

In the original post in October 2025, I evaluated three of the emerging tools at the time as examples. None of those are really as described anymore, one was even sunset soon after, so I'm not repeating those here. But you can revisit those in the original post.

Observations and questions

The three tools I evaluated were all labelling themselves as implementations of spec-driven development, but they were quite different from each other. So that's the first thing to keep in mind when talking about SDD, it is not just one thing, and that hasn't changed since I originally wrote about this.

The list of questions I had at the time about spec-driven development also has not changed much:

One workflow to fit all sizes?

Many SDD frameworks provide very opinionated workflows, but none is usually suitable for all the real life coding problems in an engineer's day to day. In particular, I've often found vast differences in suitability of workflows depending on the problem sizes.

When I asked Kiro back in the day to fix a small bug, it quickly became clear that the workflow was like using a sledgehammer to crack a nut. The requirements document turned this small bug into 4 "user stories" with a total of 16 acceptance criteria, including gems like "User story: As a developer, I want the transformation function to handle edge cases gracefully, so that the system remains robust when new category formats are introduced." This was still the case when I tried Kiro again, about 10 months later.

I had a similar challenge when I used spec-kit, I wasn't quite sure what size of problem to use it for. Available tutorials are usually based on creating an application from scratch, because that's easiest for a tutorial. One of the use cases I ended up trying was a feature that would be a 3-5 point story on one of my past teams. The feature depended on a lot of code that was already there, it was supposed to build an overview modal that summarised a bunch of data from an existing dashboard. With the amount of steps spec-kit took, and the amount of markdown files it created for me to review, this again felt like overkill for the size of the problem. It was a bigger problem than the one I used with Kiro, but also a much more elaborate workflow. I never even finished the full implementation, but I think in the same time it took me to run and review the spec-kit results I could have implemented the feature with "plain" AI-assisted coding, and I would have felt much more in control.

An effective SDD tool would at the very least have to provide flexibility for a few different core workflows, for different sizes and types of changes.

Reviewing markdown over reviewing code?

Many SDD frameworks create a LOT of markdown files. Back in 2025 when I tried spec-kit, those files were repetitive, both with each other, and with the code that already existed. Some contained code already. Overall they were just very verbose and tedious to review. This is an experience I still have today with SDD frameworks, and also something I have since heard from lots of engineers.

I'd often rather review code than all these markdown files. An effective SDD tool would ideally provide a very good spec review experience - it seems though this has not evolved much from markdown files.

False sense of control?

Even with all of these files and templates and prompts and workflows and checklists built into some frameworks, I frequently saw the agent ultimately not follow all the instructions. Yes, the context windows are now larger, which is often mentioned as one of the enablers of spec-driven development. But just because the windows are larger, doesn't mean that AI will properly pick up on everything that's in there.

For example: Back in 2025, spec-kit had a research step somewhere during planning, and it did a lot of research on the existing code and what's already there, which was great because I asked it to add a feature that built on top of existing code. But ultimately the agent ignored the notes that these were descriptions of existing classes, it just took them as a new specification and generated them all over again, creating duplicates. But I didn't only see examples of ignoring instructions, I also saw the agent go way overboard because it was too eagerly following instructions (e.g. one of the constitution articles).

The past has shown that the best way for us to stay in control of what we're building are small, iterative steps, so I'm very skeptical that lots of up-front spec design is a good idea, especially when it's overly verbose. An effective SDD tool would have to cater to an iterative approach, but small work packages almost seem counter to the idea of SDD.

How to effectively separate functional from technical spec?

It is a common idea in SDD to be intentional about the separation between functional spec and technical implementation. The underlying aspiration I guess is that ultimately, we could have AI fill in all the solutioning and details, and switch to different tech stacks with the same spec.

In reality, when I was trying spec-kit, I frequently got confused when to stay on the functional level, and when it was time to add technical details. The tutorial and documentation also weren't quite consistent with it, there seem to be different interpretations of what "purely functional" really means. And when I think back on the many, many user stories I've read in my career that weren't properly separating requirements from implementation, I don't think we have a good track record as a profession to do this well.

Who is the target user?

Many of the demos and tutorials for spec-driven development tools include things like defining product and feature goals, they even incorporate terms like "user story". The idea here seems to be to use AI as an enabler for cross-skilling, and have developers participate more heavily in requirements analysis? Or have developers pair with product people when they work on this workflow? None of this is made explicit though, it's presented as a given that a developer would do all this analysis.

In which case I would ask myself again, what problem size and type is SDD meant for? Probably not for large features that are still very unclear, as surely that would require more specialist product and requirements skills, and lots of other steps like research and stakeholder involvement?

A 2x2 matrix, x-axis "Clarity of problem", y-axis "Size of problem". Each quadrant has a box with a question mark, and there is a label in the middle that says "Where does SDD sit?"

Spec-anchored and spec-as-source: Are we learning from the past?

While many people draw analogies between SDD and TDD or BDD, I think another important parallel to look at for spec-as-source in particular is MDD (model-driven development). I worked on a few projects at the beginning of my career that heavily used MDD, and I kept being reminded about that when I was trying out the Tessl Framework in 2025 (the only spec-as-source framework I could find back then). The models in MDD were basically the specs, albeit not in natural language, but expressed in e.g. custom UML or a textual DSL. We built custom code generators to turn those specs into code.

Example of a structured, parseable specification DSL from my past experience

Ultimately, MDD never took off for business applications, it sits at an awkward abstraction level and just creates too much overhead and constraints. But LLMs take some of the overhead and constraints of MDD away, so there is a new hope that we can now finally focus on writing specs and just generate code from them. With LLMs, we are not constrained by a predefined and parseable spec language anymore, and we don't have to build elaborate code generators. The price for that is LLMs' non-determinism of course. And the parseable structure also had upsides that we're losing now: We could provide the spec author with a lot of tool support to write valid, complete and consistent specs. I wonder if spec-as-source, and even spec-anchoring, might end up with the downsides of both MDD and LLMs: Inflexibility and non-determinism.

To be clear, I'm not nostalgic about my MDD experience in the past and saying "we might as well bring that back". But we should look to code-from-spec attempts in the past to learn from them when we explore spec-as-source today.

Conclusions

In my personal usage of AI-assisted coding, I also often spend time on carefully crafting some form of spec first to give to the coding agent. So the general principle of spec-first is definitely valuable in many situations, and the different approaches of how to structure that spec are very sought after. They are among the top most frequently asked questions I heard back then from practitioners: "How do I structure my memory bank?", "How do I write a good specification and design document for AI?". Those questions have changed a little bit in terminology since then, but they are still all about how to best provide context and instructions to agents.

The term "spec-driven development" is still not very well defined, 1 year in, and it was semantically diffused as soon as it started gaining traction. People sometimes even use "spec" basically just as a synonym for "detailed prompt".

I wonder if many of the SDD frameworks out there are trying to feed AI agents with our existing workflows too literally, ultimately amplifying existing challenges like review overload and hallucinations. Especially with the more elaborate approaches that create lots of files, I can't help but think of the German compound word "Verschlimmbesserung": Are we making something worse in the attempt of making it better?