# Spec-driven development

Canonical page: https://www.theglitch.ai/ai-glossary/spec-driven-development

Writing an explicit specification — scope, acceptance criteria, edge cases and architecture plan — before letting a coding agent generate implementation code.

[Spec-driven development, common card \#266 in The Glitch AI glossary: Writing an explicit specification — scope, acceptance criteria, edge cases and architecture plan — before letting a coding agent generate implementation code.](https://www.theglitch.ai/images/cards/glossary/spec-driven-development.png?v=27fbf968a7f90cb0)

GLS 266 · common

Also called: SDD, Specification-driven development.

For: Builders · Creators

## Why it matters

Coding agents move fast in the wrong direction when handed vague chat prompts. A concrete spec gives both humans and agents a reviewable contract to test the finished build against.

## In practice

Before asking an agent to build a billing webhook, a developer writes a 1-page spec listing the exact payload fields, idempotency key rule, retry status codes and four test cases. The agent implements against the spec and cannot finish until all four tests pass.

## Watch for

Specs rot if they become 40-page waterfall documents nobody updates after code ships. Keep the spec concise, living beside the code and tied directly to executable checks.

## How it compares

- [Vibe coding](https://www.theglitch.ai/ai-glossary/vibe-coding): Vibe coding iterates loosely through conversational prompts until the demo feels right; spec-driven development locks requirements and acceptance checks up front before generating code.

- [AGENTS.md](https://www.theglitch.ai/ai-glossary/agents-md): AGENTS.md holds standing repository rules across every task; a spec defines the concrete behavior and done criteria for one specific feature or change.

## Related terms

[Vibe coding](https://www.theglitch.ai/ai-glossary/vibe-coding) · [Coding agent](https://www.theglitch.ai/ai-glossary/coding-agent) · [AGENTS.md](https://www.theglitch.ai/ai-glossary/agents-md) · [Harness engineering](https://www.theglitch.ai/ai-glossary/harness-engineering)

## Try it here

[Build software without writing code](https://www.theglitch.ai/learn/build-without-code) · [Claude Code, the operator’s way](https://www.theglitch.ai/learn/claude-code)

## Sources

- [Martin Fowler · Understanding Spec-Driven Development: Kiro, spec-kit, and Tessl](https://martinfowler.com/articles/exploring-gen-ai/sdd-3-tools.html)

- [GitHub · spec-kit](https://github.com/github/spec-kit)

Use in an AI agent: connect MCP at https://www.theglitch.ai/mcp and call get\_glossary\_term with spec-driven-development, or read the [Markdown edition](https://www.theglitch.ai/ai-glossary/spec-driven-development.md).

Definition updated 2026-11-28.

[The Ultimate AI Glossary (2027): every term](https://www.theglitch.ai/ai-glossary)

---

Site: [The Glitch](https://www.theglitch.ai) · [About Rabin](https://www.theglitch.ai/about) · [Agent guide](https://www.theglitch.ai/agent.md)
