Chapter 1: Vibe Coding: It Works Until It Doesn’t
- The Project That Goes Well Until It Doesn’t
- The Three Symptoms
- Why This Happens
- The Mistake Almost Everyone Makes
- This Isn’t an AI Problem
- What Comes Next
Chapter 3: The Spec as Primary Artifact
- Why Traditional Specs Fail
- The Living Spec
- Behavior, Not Architecture
- What a Spec Has and What It Doesn’t
- The Contract Between You and the Agent
- How Long Does It Take to Write a Spec
- The Shortest Spec You Can Write
- Before Moving On
Chapter 4: The 7 Phases of AI Development
- Phase 1: Idea
- Phase 2: Research
- Phase 3: Prototype
- Phase 4: PRD
- Phase 5: Kanban
- Phase 6: Execution Loop
- Phase 7: QA
- When to Skip Phases
- The Complete Flow
Chapter 6: From PRD to Issues — Vertical Slices and Tracer Bullets
- What a Vertical Slice Is
- Tracer Bullets: The Uncertain Comes First
- Blocking Relationships
- What an Executable Issue Needs
- A Poorly Written Issue and a Well-Written One
- Login → httpOnly Cookie
- How to Create the Issues
- Before the Next Chapter
Chapter 7: The Execution Loop
- The Contract with the Agent
- Ralph Loop
- When to Intervene
- The Human Always Reads the Code
- GSD: Context Management Between Sessions
- Session State — [date]
- QA as an Issue, Not an Afterthought
- The Complete Loop in One View
Chapter 8: GitHub SpecKit — SDD with Formal Structure
- What SpecKit Actually Is
- Installation and Directory Structure
- The Constitution
- Technology Standards
- Security Requirements
- Performance & Scalability
- Coding Standards
- Compliance & Governance
- The 5 Commands of the Main Flow
- The 3 Quality Commands
- Branch Strategy: The Spec Travels with the Code
- When to Use SpecKit
Chapter 9: openSpec — Lightweight Specs for Existing Projects
- What openSpec Is
- The Problem It Solves
- How It Works
[Feature or component name]
- What it does
- What it doesn’t do
- Acceptance Criteria
- Assumptions
- The Brownfield Case
- A Real Example
Email Notifications — Task Deadlines
- What it does
- What it doesn’t do
- Acceptance Criteria
- Assumptions
- The Difference from “Writing a Good Prompt”
- When to Migrate to SpecKit
- The Golden Rule
Chapter 10: Tool-Agnostic Flows
- Ralph Loop
- GSD
- BMAD
- Living-Spec Platforms
- How to Choose
- What Comes in Part IV
Chapter 11: Greenfield vs Brownfield
- Greenfield: The Ideal Scenario
- The Greenfield Trap
- Brownfield: The Reality for Most Projects
- Gradual Adoption
- Retrofitting SpecKit
- Brownfield Without SpecKit
- What Brownfield Teaches Us About Greenfield
- One Rule for Each Context
Chapter 12: The 5 Anti-Patterns That Destroy a Spec
- Anti-Pattern 1: The Endless PRD
- Anti-Pattern 2: Prescribing Implementation
- Anti-Pattern 3: Empty Out of Scope
- Anti-Pattern 4: Empty or Missing Assumptions
- Anti-Pattern 5: Vague Acceptance Criteria
- The Quick Check
Chapter 13: SDD in Teams
- The Spec as a Shared Language
- Who Writes the PRD
- Spec Review, Not Code Review
- The Shared Constitution
- Async SDD
- The Risk of Spec Theater
- What SDD Doesn’t Replace
- The Book Ends Here
Appendix A: Complete PRD Template
PRD: [Feature Name]
- Problem Statement
- Solution
- User Stories
- Constraints
- Acceptance Criteria
- Out of Scope
- Assumptions ⚠️
- Implementation Notes
- Quick Checklist Before Approving
- Usage Notes
Appendix B: Constitution — The 5 Sections with a Real Example
- The Template
Constitution — [Project Name]
- Technology Standards
- Security Requirements
- Performance & Scalability
- Coding Standards
- Compliance & Governance
- Real Example: Modern Web Project
Constitution — AI Spec Builder
- Technology Standards
- Security Requirements
- Performance & Scalability
- Coding Standards
- Compliance & Governance
- How to Write the Constitution for an Existing Project
- What Does NOT Go in the Constitution
Appendix C: Quality Checklist Before Executing
- PRD Checklist
- Issues Checklist
- Constitution Checklist
- Pre-QA Checklist
- Post-QA Checklist
- The Most Important Question
Appendix D: SDD Glossary
Example: Completed PRD — Migrate Auth to httpOnly Cookies
PRD: Migrate Authentication to httpOnly Cookies
- Problem Statement
- Solution
- User Stories
- Constraints
- Acceptance Criteria
- Out of Scope
- Assumptions
- Implementation Notes
Spec-Driven Development
Why This Book
Chapter 1: Vibe Coding: It Works Until It Doesn’t
- The Project That Goes Well Until It Doesn’t
- The Three Symptoms
- Why This Happens
- The Mistake Almost Everyone Makes
- This Isn’t an AI Problem
- What Comes Next
Chapter 2: What SDD Is (and What It Isn’t)
- What It Isn’t
- How We Got Here
- Why Now
- The Table That Sums It Up
- What SDD Doesn’t Solve
- A Definition Worth Keeping
Chapter 3: The Spec as Primary Artifact
- Why Traditional Specs Fail
- The Living Spec
- Behavior, Not Architecture
- What a Spec Has and What It Doesn’t
- The Contract Between You and the Agent
- How Long Does It Take to Write a Spec
- The Shortest Spec You Can Write
- Before Moving On
Chapter 4: The 7 Phases of AI Development
- Phase 1: Idea
- Phase 2: Research
- Phase 3: Prototype
- Phase 4: PRD
- Phase 5: Kanban
- Phase 6: Execution Loop
- Phase 7: QA
- When to Skip Phases
- The Complete Flow
Chapter 5: The PRD — How to Write a Spec AI Won’t Misinterpret
- Before Writing: The Grilling
- The Eight Parts of the PRD
- A Complete PRD
PRD: Migrate Authentication to httpOnly Cookies
- Problem Statement
- Solution
- User Stories
- Constraints
- Acceptance Criteria
- Out of Scope
- Assumptions
- Implementation Notes
- Where the PRD Lives
- The Right Length
Chapter 6: From PRD to Issues — Vertical Slices and Tracer Bullets
- What a Vertical Slice Is
- Tracer Bullets: The Uncertain Comes First
- Blocking Relationships
- What an Executable Issue Needs
- A Poorly Written Issue and a Well-Written One
- Login → httpOnly Cookie
- How to Create the Issues
- Before the Next Chapter
Chapter 7: The Execution Loop
- The Contract with the Agent
- Ralph Loop
- When to Intervene
- The Human Always Reads the Code
- GSD: Context Management Between Sessions
- Session State — [date]
- QA as an Issue, Not an Afterthought
- The Complete Loop in One View
Chapter 8: GitHub SpecKit — SDD with Formal Structure
- What SpecKit Actually Is
- Installation and Directory Structure
- The Constitution
- Technology Standards
- Security Requirements
- Performance & Scalability
- Coding Standards
- Compliance & Governance
- The 5 Commands of the Main Flow
- The 3 Quality Commands
- Branch Strategy: The Spec Travels with the Code
- When to Use SpecKit
Chapter 9: openSpec — Lightweight Specs for Existing Projects
- What openSpec Is
- The Problem It Solves
- How It Works
[Feature or component name]
- What it does
- What it doesn’t do
- Acceptance Criteria
- Assumptions
- The Brownfield Case
- A Real Example
Email Notifications — Task Deadlines
- What it does
- What it doesn’t do
- Acceptance Criteria
- Assumptions
- The Difference from “Writing a Good Prompt”
- When to Migrate to SpecKit
- The Golden Rule
Chapter 10: Tool-Agnostic Flows
- Ralph Loop
- GSD
- BMAD
- Living-Spec Platforms
- How to Choose
- What Comes in Part IV
Chapter 11: Greenfield vs Brownfield
- Greenfield: The Ideal Scenario
- The Greenfield Trap
- Brownfield: The Reality for Most Projects
- Gradual Adoption
- Retrofitting SpecKit
- Brownfield Without SpecKit
- What Brownfield Teaches Us About Greenfield
- One Rule for Each Context
Chapter 12: The 5 Anti-Patterns That Destroy a Spec
- Anti-Pattern 1: The Endless PRD
- Anti-Pattern 2: Prescribing Implementation
- Anti-Pattern 3: Empty Out of Scope
- Anti-Pattern 4: Empty or Missing Assumptions
- Anti-Pattern 5: Vague Acceptance Criteria
- The Quick Check
Chapter 13: SDD in Teams
- The Spec as a Shared Language
- Who Writes the PRD
- Spec Review, Not Code Review
- The Shared Constitution
- Async SDD
- The Risk of Spec Theater
- What SDD Doesn’t Replace
- The Book Ends Here
Appendix A: Complete PRD Template
PRD: [Feature Name]
- Problem Statement
- Solution
- User Stories
- Constraints
- Acceptance Criteria
- Out of Scope
- Assumptions ⚠️
- Implementation Notes
- Quick Checklist Before Approving
- Usage Notes
Appendix B: Constitution — The 5 Sections with a Real Example
- The Template
Constitution — [Project Name]
- Technology Standards
- Security Requirements
- Performance & Scalability
- Coding Standards
- Compliance & Governance
- Real Example: Modern Web Project
Constitution — AI Spec Builder
- Technology Standards
- Security Requirements
- Performance & Scalability
- Coding Standards
- Compliance & Governance
- How to Write the Constitution for an Existing Project
- What Does NOT Go in the Constitution
Appendix C: Quality Checklist Before Executing
- PRD Checklist
- Issues Checklist
- Constitution Checklist
- Pre-QA Checklist
- Post-QA Checklist
- The Most Important Question
Appendix D: SDD Glossary
Example: Completed PRD — Migrate Auth to httpOnly Cookies
PRD: Migrate Authentication to httpOnly Cookies
- Problem Statement
- Solution
- User Stories
- Constraints
- Acceptance Criteria
- Out of Scope
- Assumptions
- Implementation Notes