Spec-Driven Development: Write a PRD Claude Code Can Build
Spec-driven development puts a written spec before the prompt. What to put in a PRD for Claude Code or Codex, a template, and where evidence comes from.
On this page · 7 sections
The short answer#
Spec-driven development means writing a short specification before asking an AI agent to code, then checking the result against it. A good spec for Claude Code names the user, the problem, the MVP screens, the data and what is out of scope, backed by evidence. ShotMatic writes that spec from niche research.
Why is spec-driven development trending?#
Agents got good enough to build whole features, and people noticed the bottleneck moved to saying what you want. In 2025 GitHub released Spec Kit, an open-source toolkit that puts a written spec at the centre of AI coding, and AWS introduced Kiro, a spec-first coding tool. The idea is simple: spec first, then prompt, then check the result against the spec.
What goes into a spec an agent can build from?#
| Section | What to write | Where the evidence comes from |
|---|---|---|
| One line | "Offline habit tracker for adults with ADHD" | Keyword people search |
| User | Who, in what situation | Audience words in keywords, self-identifying reviews |
| Problem | The one pain you fix | Top 1–2★ complaint of current apps |
| Why switch | What competitors lack | Feature gap of the top 5 |
| Money | Price and model | What the niche already pays |
| MVP | 3–5 screens max | Only what the problem needs |
| Data | Entities and fields | — |
| Out of scope | What you will not build | Keeps the agent from drifting |
| Done when | Testable checks | — |
A copyable template#
# <App name> — <one line>
## For whom
<role, situation>
## Problem (evidence)
<top complaint, with 2 quoted reviews>
## Why they'll switch
<feature the top 5 lack>
## MVP screens
1. ...
2. ...
## Data
- Habit: id, name, schedule, ...
## Out of scope
- Accounts, sync, social
## Done when
- Works fully offline
- ...
Why does evidence matter in a spec?#
Without evidence, a spec is just a longer guess. The agent will build it faithfully — and faithfully build the wrong thing. A spec grounded in what users search for and complain about gives every later decision a tiebreaker.
How does ShotMatic write the spec?#
Research a niche (keywords, competitors on both stores, complaints, feature gap, trends), collect what matters into a
Project, and let the AI Agent draft brief.md (what, for whom, why switch, how it charges) and spec.md (MVP,
screens, data). It runs on the AI you already use — Claude Code, Codex or Gemini CLI. Drop the files into your repo and
start your agent from there.
Generate a spec from real data — free plan includes the first AI Agent steps.
Related: What app should I build with Claude Code? · How to find the target audience for your app
Frequently asked questions
What is the difference between a PRD and a spec?
A PRD explains why and for whom; a spec explains what to build: screens, data and rules. For a solo developer, one short file covering both is enough.
How long should a spec for Claude Code be?
One to two pages. Long enough to remove guesswork, short enough that you will keep it up to date.
Do I need Spec Kit or Kiro?
No. A Markdown file in your repo works with any agent. Those tools add structure if you want it.