What is Spec-driven development?
In Turkish: Spesifikasyon odaklı geliştirme (spec-driven development) · Topic: Using AI
An approach to building software in which a detailed written document, the specification, describes what should be built first, and AI agents then generate the software from it instead of being told to write code directly.
How does it work?
A person writes down how a feature should behave, what constraints it must respect and what counts as done. An AI coding assistant turns that document into a plan and a task list, then produces the code and tests. The output is checked against the criteria in the document. When something needs to change, the spec is updated first and the code is regenerated or adjusted to match. The document becomes the shared reference for both the team and the AI.
Why does it matter?
Generating code from short, loose prompts is fast, but results can be inconsistent because the AI fills gaps with its own assumptions. A spec puts the intent in writing and reduces that ambiguity. Critics, however, see it as a return to old-style up-front design and point out that writing detailed specs takes effort of its own.
Example
A team writes down the flow, error cases and security rules for a 'password reset' feature, and a coding assistant derives the tasks, code and tests from that document.
FAQ
Is spec-driven development the same as test-driven development?
No. Test-driven development starts by writing tests, while the spec-driven approach starts by describing the desired behavior, and tests can be derived from that. The two can also be combined.
Is it suitable for every software project?
For small, experimental work a spec may be unnecessary overhead. It makes more sense for long-lived projects with clear requirements and several people involved.