Spec-driven development
Writing the specification and acceptance tests first, then letting agents implement against them.
Spec-driven development means writing the specification and acceptance tests first, then letting agents implement against them. The human effort moves from typing code to deciding what correct means.
A good spec names inputs, outputs, edge cases and how success is checked. Agents then iterate until the checks pass, and a reviewer reads a smaller, clearer diff. Tooling has grown around the idea: GitHub’s open-source Spec Kit splits work into a spec, a technical plan and a task list before any code is written. That structure maps onto plan-and-execute: one step plans from the spec, others carry out the tasks. Writing the spec takes real time from someone who understands the business, and a vague spec produces confident code that solves the wrong problem.
It sits at the opposite end from vibe coding, where nobody writes down what correct means. Specs and tests also serve as the evaluator in an evaluator-optimizer loop, and they are the input that makes a software factory possible.
Sources
- GitHub: github/spec-kit github.com
Related terms
- Coding agent: An agent that reads a repository, edits files, runs commands and tests, and opens pull requests.
- Vibe coding: Building by prompting and accepting the result without reading the code closely.
- Evals: A repeatable test set that scores an AI feature, so changes can be measured instead of guessed.
- Software factory (AI agents): A pipeline where agents write and fix most of the code while people write specs, set guardrails, design the checks and decide what ships.
- Evaluator-optimizer (maker-checker): One model drafts, another checks the draft against stated criteria and returns feedback, in a loop until it passes or a round limit stops it.
- Plan-and-execute: A planner model writes a step-by-step plan, executor models carry out the steps, and the planner revises the plan when a step fails.
- PRP (Product Requirement Prompt): A PRD rewritten for a coding agent: the goal and why, plus the exact files, patterns to follow and commands that prove the work is done.
- PRD (product requirements document): A document that says what a product or feature must do, for whom and why, with success criteria, while leaving the technical how to the builders.
- Validation loop (agent backpressure): Commands a coding agent runs after every change (tests, types, lint, build) and fixes against until they pass, so it checks itself before a person looks.
- Agentic engineering: Professional software work in which coding agents write most of the code while engineers own the specs, the checks, the review and the result.
