METHODOLOGY

Spec-Driven Development (SDD)

AI is only as good as the structure you give it. AI-SDD turns vague prompts into precise specs — and precise specs into working software.

Waterfall, Agile, and Spec-Driven Development comparison
Waterfall, Agile, and Spec-Driven Development comparison
The Context

The evolution of software development methodologies

"Software was expensive, slow, and limited by human capacity."

Methodologies emerged from the need to manage human capacity and complexity across coordinated teams.

WATERFALL Total planning

Optimized for predictability and complete documentation

AGILE Short cycles

Optimized for iterative adaptation and continuous delivery

SDD Total fidelity

Specification as the shared source of truth

The Paradigm Shift

AI changed the bottleneck of development

BEFORE AI

Humans were the bottleneck. Every line of code cost time and money. Methodologies were born to manage that cost, minimize rework, and coordinate teams.

WITH AI

Execution speed is no longer the primary constraint. The new bottleneck is clarity of intent — the quality of the specification that guides the AI.

The Problem

"Just Prompting" Doesn't Scale.

Code That Solves the Wrong Problem

Without structured requirements, AI generates what it thinks you want — not what you actually need. The output looks right until it hits production.

No Trace of Intent

Raw AI output has no audit trail. Six months later, no one knows why a decision was made — only that the code exists. Reviews become guesswork.

Rework Cycles That Cancel the Gains

AI acceleration without direction just gets you lost faster. Teams spend the time AI saved on fixing misaligned implementations.

The Cost of Defects

The cost of fixing grows exponentially

Phase Relative Cost Impact
Requirements $1 Text review
Design $5 Architecture change
Code $10 Refactoring
Tests $50 Cascading regression
Production $100 Downtime, reputation
"30 minutes of spec review = 30 days of rework avoided."

Defects caught in the requirements phase cost on average 100x less than the same defects found in production. A clear specification is the best investment a team can make.

Source: IBM System Science Institute

What Is SDD

Spec-Driven Development: the specification as the source of truth

In SDD, the human expresses intent — the AI generates the specification. Everything else derives from it: code, tests, and documentation. The spec is the single contract between humans and AI — clear, versioned, and auditable.

What the AI generates from intent
Requirements
Architecture
Tasks
Tests
Code
Docs
Core Goal

Keep the specification as the single source of truth, from which code, tests, and documentation are derived — never the other way around.

Is SDD the True Parent of TDD, BDD, and DDD?

TDD, BDD, and DDD assume the specification already exists. SDD is the upstream layer that none of them have. — ai-sdd.com

The Three Roles

Three roles, one contract

HUMAN

The Director

Expresses intent and business context at a high level. The AI structures the rest — the human reviews and approves each phase before proceeding.

Intent Approval Vision
SPEC

The Contract

Formal specification in versioned text. EARS-format requirements, architecture design, and atomized tasks — with zero ambiguity.

requirements.md design.md tasks.md
AI

The Executor

Transforms human intent into structured specification. Generates code, tests, and documentation aligned with the contract — without ambiguity.

Claude Gemini Copilot ...

"The AI generates the contract and executes it. The human defines the intent."

EARS Format

EARS (Easy Approach to Requirements Syntax): eliminating the ambiguity that costs dearly

Vague natural language

"The system should send a notification when the user does something important."

5 developers = 5 different implementations

  • "something important" — what exactly?
  • What type of notification? Email? Push? SMS?
  • Who receives it? When does it expire?
EARS Format
WHEN a purchase order is confirmed by the payment system
AND the total amount exceeds $500.00
THEN the system SHALL send a confirmation email to the registered user
WITHIN 60 seconds of payment confirmation.

WHERE the user has disabled email notifications,
the system SHALL send a push notification in the mobile app.
  • Precise, measurable trigger
  • Mandatory behavior (SHALL)
  • Alternative cases covered
Steering

Steering: automatic governance for the whole team

product.md

Product vision, personas, business goals, and constraints. The AI never loses strategic context.

tech.md

Tech stack, code patterns, naming conventions, and security rules.

structure.md

Folder organization, modules, responsibility boundaries, and architectural patterns.

Without Steering

Every conversation with the AI starts from scratch. Inconsistencies between features, diverging patterns, constant rework.

With Steering

The AI loads project context in every session. Consistent decisions, fewer reviews, coherent code.

Steering transforms the AI from a generic assistant into a specialist member of your team, with deep knowledge of the product, stack, and project conventions.

The Cycle

From Steering to Shipped

Six phases, each with a human checkpoint before AI proceeds.

01

Steering

Establish project-wide context: product vision, tech stack, code structure. AI agents read these on every task — before generating anything.

02

Spec Init

Describe the feature in natural language. AI generates a structured spec shell — you refine it into the starting point for requirements.

03

Requirements

AI expands the description into formal EARS requirements. Human reviews and approves before moving on — this is the most critical gate.

04

Design

AI generates a technical design aligned to requirements. Architect validates architectural decisions. No code until design is approved.

05

Tasks

Design is broken into atomic, testable implementation tasks — each traceable to a specific requirement. The implementation roadmap.

06

Implementation

AI implements task-by-task. Developer reviews each. Validation runs against original requirements — not just "does it pass tests."

Human

Describes the intent at a high level — the problem to solve and the business context.

AI

Generates structured requirements in EARS format — precise, unambiguous, verifiable.

Human

Reviews and approves requirements — or requests adjustments before proceeding.

✓ Approval
AI

Proposes architecture design — components, integrations, and documented technical decisions.

Human

Reviews and approves the design — ensuring alignment with constraints and product vision.

✓ Approval
AI

Atomizes implementation tasks — each traceable to a requirement, with defined acceptance criteria.

Human

Reviews and approves the backlog — validates scope, priority, and granularity before execution.

✓ Approval
AI

Executes spec tasks, generating tests automatically with TDD — code that adheres to the approved design and requirements.

Human

Reviews the implementation and approves the merge — final validation before delivery.

✓ Approval
AI

Performs merge and deployment — original intent delivered to production, traceable end to end.

Deployment
Central Thesis

"Software fails because humans and AI misunderstand each other.
AI executes contracts — it doesn't guess intentions."

— Central Thesis of Spec-Driven Development

SDD is not about giving the AI more autonomy. It is about creating the precise contract that allows the AI to use its full execution capacity in service of human intent.

The methodology keeps evolving.