zum Inhalt

Spec-driven Development

Methods and techniques | assess

Last updated:

assess

Dec 2026

What is spec-driven development?

Spec-driven development is an approach to AI assisted development. Its core premise is to prepare clear functional specification broken down into smaller work items before any code is written.

Unlike vibe coding, which relies on chat prompts and ad-hoc code tweaks, SDD keeps a written spec as the source of truth. That structure lowers intent drift and improves maintainability in long-lived codebases, and gives both humans and AI agents a shared contract. It fits production work better than pure prompt-driven exploration.

How it works

  • First, write specs: what needs to be built, what must be avoided, technical requirements and constraints.
  • Next, review and correct the specs (by humans) to avoid ambiguity. Too general and ambiguous specs can eventually lead to low quality of AI-generated code.
  • Let AI agents build code with mandatory automated tests and linters.
  • Verify results against the specifications and ensure all tests pass.
  • Iterate on specs and code based on evaluation results.

How is SDD applied?

There are no strict rules on how detailed specs need to be and whether it should be one document or many. The right level depends on project size and complexity. Luckily, there are tools which can help add structure and define repeatable workflows. We've assessed two of them: OpenSpec and Spec Kit. If you want to start, we recommend OpenSpec first because its workflow is simpler and more universal. Spec-Kit can fit when you want a more structured, multi-step process.

When is it not a good idea?

  • Small, simple changes and bug fixes, where writing the spec takes longer than writing the code.
  • Disposable PoCs.
  • Exploratory work (UI tweaks, design iteration), where requirements emerge while building.
  • Domains the team does not understand yet. Spec written from guesses just fixes the guesses.

Challenges with Spec-driven development

A challenge can be keeping specs up to date. If the spec drifts from the implementation, it stops being a reliable source of truth and can mislead future work. When AI writes specs, enforce strict rules on length, structure, and style. Models often produce wordy text which are hard to read and maintain.

How to start?

  • Begin with small, well-scoped greenfield work or isolated tasks in brownfield projects.
  • Work in short iterations, so it is easier to validate the outcome and update the spec.
  • A plain Markdown file is enough for a first experiment; formalize the process later if it helps.
  • Compare the result with a similar task done without SDD: time spent, review effort, defects.

Where we stand

SDD showed clear benefits where specs were precise, but we have not yet tested it widely enough to adopt it as a default. We are still experimenting:

  • How detailed a spec has to be to be useful, and where more detail stops paying off.
  • Which LLMs and which AI harnesses are the most effective for a given level specs detail.
  • How well it works on large brownfield codebases.