Your AI Doesn't Know What You Want

Spec-Driven Development with OpenSpec

Agenda

My Painful Story

Where Does It All Go Wrong?

Context Windows Limitation

context.png

What Is Spec-Driven Development (SDD)?

Create the specification artifact first — everything else is derived from it

The spec is the shared understanding between you and the AI

BDD, TDD, OpenAPI contract-first, ... share the same concept

The SDD Workflow

Stage What Happens
Spec Define .md artifacts such as prd.md, research.md, design.md, tasks.md, ...
Implement AI read Spec artifacts and implement within the Spec context
Validation Verify implementation against the spec
Archive Archive after implementation done

sdd.png

Vibe Coding vs Spec-Driven

Vibe Coding Spec-Driven
Prompt → hope Spec → high quality generated code
AI guesses scope AI works inside defined scope
Session decays Resume anywhere from the spec
Review code Review intent
One long chaotic session Small, scoped, well-defined changes

The Intent Compiler

A compiler catches errors before your code runs. Spec catches misunderstandings before your AI codes.

  • Spec stage → cheap to steer
  • Implementation stage → expensive to steer
  • Production → impossible to steer

intent.png

Review the Spec

Always review the spec to ensure a shared understanding between you and your AI

SDD with OpenSpec

spec-kit GSD OpenSpec
Artifact volume High Very high Low
Human review checkpoints Medium Low High
Noise level High Very high Low

Closing

Your AI knows what you want (and also you) if there is enough context

Thank You

If you have any questions, feel free to reach out on GitHub or scan the QR below.

GitHub Website
GitHub QR Website QR
GitHub icon Website icon
🇻🇳 Tiếng Việt