Spec Driven Development

Spec-driven development (SDD) is a software approach where a written specification, not the code, is the primary artifact that both humans and AI coding agents work from. Before code is generated, the team agrees on a structured spec that captures intent, acceptance criteria, and constraints. The spec becomes the shared source of truth for what to build and how to build it. The term covers different levels of spec authority, and the level you choose changes the tradeoff between maintenance effort and consistency.

What does spec-driven development actually mean?

  • Spec-first: a well-structured spec is written for the task, used to guide the agent, then deleted. The next task starts fresh.
  • Spec-anchored: the spec is kept and updated as the feature evolves, so it stays a living description of behavior.
  • Spec-as-source: the spec is the only file humans edit; code is generated from it and marked as generated.

Most tools are spec-first, but not all aim to be spec-anchored or spec-as-source. The tradeoff is maintenance effort versus consistency over time.

A spec is a structured, behavior-oriented artifact written in natural language that expresses software functionality and guides AI coding agents. It is more than a product requirements document; a good spec defines external behavior, input and output definitions, acceptance criteria, and edge cases, and stays lightweight enough to evolve as the problem becomes better understood.

Does spec-driven development actually work?

Experience from teams using GitHub Spec Kit and similar tools shows SDD reduces rework and improves alignment when the spec is accurate. Microsoft reports that spec quality equals output quality, and one team cut onboarding time for new asset types from weeks to days by capturing a reusable pattern in parameterized specs. However, the approach only works when the spec is treated as a living artifact and validated at each checkpoint.

  • Greenfield projects (zero-to-one) where a small upfront spec prevents generic solutions.

  • Feature work in existing systems (N-to-N+1) where the spec forces clarity on interactions with the existing codebase.

  • Legacy modernization where the original business logic is lost and can be captured in a modern spec.

  • Small bug fixes can be over-processed; the workflow may feel like using a sledgehammer to crack a nut.

  • Reviewing long markdown documents can be more tedious than reviewing the code itself, especially when the same checks appear in several files.

  • LLM non-determinism remains a risk, so automated tests and CI/CD are still needed to validate output.

  • Over-engineering is a danger when teams spend too long polishing specs for features that may be deleted.

Is spec-driven development vibe coding?

No. Vibe coding is exploratory prompting that relies on the AI’s intuition and often produces brittle code. SDD is a structured workflow with explicit specifications, checkpoints, and human verification at each phase. The two are usually compared as ad-hoc prompting with loose guidance versus a process where the AI executes well-defined tasks and the human acts as reviewer and orchestrator.

Option Who it fits Downside
Vibe coding Quick prototypes and solo developers No guardrails; risks drift and rework as scope grows
In-house SDD with tools Teams willing to learn a structured workflow Spec review adds overhead and tools can feel heavy for small changes
Embedded engineer pilot CTOs who want SDD proven on one team before wider rollout Binds one engineer to a single team, and the gains only spread if other teams adopt the workflow afterward

When simpler approaches make sense

If your team builds quick prototypes or works on a small greenfield codebase, plain AI prompting can get fast results without the overhead of a structured spec workflow. If your team already runs a disciplined SDD process and only needs a tool, adopting an open source toolkit such as GitHub Spec Kit yourself avoids committing a dedicated engineer. The pilot is useful when you want to prove the workflow on one team with measured before and after results before rolling it out across the organization, not when you need a quick fix or already have the in-house expertise to set it up alone.