AI-Assisted Specification Generation and Review
Introduction: The Human-AI Partnership in SDD
Welcome to Unit 5! You've learned to evaluate specifications in Units 1-4. Now you'll learn the actual Spec-Driven Development workflow: collaborating with AI to generate specifications.
The Traditional Mistake:
Many developers think SDD means "write detailed specifications by hand before coding." That's the old way - and it's why specification-driven approaches failed historically. They were too time-consuming.
The SDD Reality with AI:
In modern SDD with Claude Code:
- Humans provide requirements and intent (structured prompts)
- AI generates formal specifications using templates
- Humans review for quality and business correctness
- AI refines based on feedback
- Humans approve when spec meets quality threshold
Your Role in the Partnership:
You are NOT a specification writer. You are a specification architect:
- Define WHAT you want (business intent)
- Review AI-generated specs critically
- Catch domain knowledge AI doesn't have
- Guide refinement through targeted feedback
- Approve when quality threshold met (≥75/100)
AI's Role:
Claude Code is your specification generator:
- Systematically covers all template sections
- Considers edge cases you might forget
- Maintains consistent format
- Generates complete technical plans
- But needs your domain expertise to validate
Core Principle: Division of Labor
Humans define WHAT and WHY. AI generates HOW.
This division leverages each party's strengths:
- Humans excel at understanding business needs, domain constraints, and user value
- AI excels at systematic documentation, comprehensive coverage, and consistent formatting
With AI assistance, specification creation becomes faster than jumping straight to code while producing better outcomes.
The AI-Accelerated SDD Workflow
Here's the typical workflow when building features with AI assistance:
- Human provides structured requirements - Context, requirements, user perspective, constraints
- AI generates comprehensive specification - Follows template, covers all sections
- Human reviews critically - Validates business logic, checks domain accuracy, scores on 5 dimensions
- AI refines based on feedback - Addresses specific issues, adds missing details
- Human approves final spec - Confirms ≥75/100 score, verifies readiness
- AI generates tests and implementation - Creates tests and code matching specification
- Human validates against business needs - Runs tests, checks behavior
This workflow transforms specification from a bottleneck into an accelerator.
