🛠️Spec-Driven Development
Also known as Spec-First AI Coding, Spec-Driven AI Coding
Write what to build first. The AI plans and codes from that written spec.
Think of it like
It is like drawing a plan of a house first. Then the builders follow it.
Example
GitHub's free Spec Kit runs it as steps. You give the agent the spec, then the plan, then the tasks. Last, it writes the code.
Why it matters
An agent guesses less when the goal is written down. The spec also tells you what to check at the end.
Definition
Example code
markdown
# Feature: Password reset
## Who
A user who forgot their password.
## Done when
- The user gets a reset link by email.
- The link stops working after one use.Common mistake
Key takeaways
- 1Spec first. What, for whom, and when it is done.
- 2Then plan and tasks. Small steps the AI can finish.
- 3Spec stays. Changes start from the written plan.