Spec-Driven Development for Scrum Teams: Free Spec and Constitution Templates
- Vibe coding fills a Sprint with AI-generated code nobody can explain. A short written spec gives the agent the what and the why, and gives reviewers something to check against.
- Scrum teams already have most of what a spec needs: refined Product Backlog items, acceptance criteria and a Definition of Done.
- Below: a constitution template, a feature spec template, a worked example and a readiness check. Copy or download them free.
AI coding agents made writing code cheap. They did not make knowing what to build, or checking that it was built right, any cheaper. Spec-driven development puts those two jobs first: the team writes a short spec for each Product Backlog item, the agent builds from it, and people review the result against it.
Vibe Coding vs Spec-Driven Development
Vibe coding means prompting an agent in a chat until something works. It is fine for a throwaway prototype. For a product that customers use, it creates four problems: the intent behind the code disappears into chat history, reviewers have to reverse-engineer what the code was meant to do, Definition of Done checks get skipped, and the agent builds what was typed rather than what the Product Owner meant.
| Vibe coding | Spec-driven development | |
|---|---|---|
| Starts with | A prompt in a chat window | A short spec in the repository |
| Intent lives in | One developer's chat history | A versioned file next to the code |
| Review checks | "Does this look right?" | "Does this meet the spec's acceptance criteria?" |
| Definition of Done | Applied if someone remembers | Written into the constitution the agent reads first |
| Best for | Prototypes you will throw away | Products customers rely on |
The Four Artefacts and Where They Fit in Scrum
Most spec-driven tools, including the open-source GitHub Spec Kit, use four layers. Each one maps to something a Scrum Team already does.
| Artefact | What it holds | Where it fits in Scrum | Owned by |
|---|---|---|---|
| Constitution | Rules for every change: stack, standards, security, what the agent must never do | Definition of Done and working agreements | Developers |
| Spec | One feature: who, why, acceptance criteria, out of scope | A Product Backlog item after refinement | Product Owner (what and why), with Developers |
| Plan | How it will be built: design, data, interfaces, risks | The "how" part of Sprint Planning | Developers |
| Tasks | Small, checkable steps for the agent | The Sprint Backlog's plan for the item | Developers |
None of this changes accountability. An AI agent is capacity, not a member of the Scrum Team. The Developers remain accountable for the quality of the Increment, and a person reviews every change before it meets the Definition of Done.
Constitution Template
The constitution is the one file every agent reads before it changes anything. Keep it short: the handful of rules that would cause real damage if broken. Save it in your repository, for example as constitution.md, and update it after Sprint Retrospectives.
constitution.md
# Constitution: [Product name] ## Purpose [One or two sentences: what this product is for and who it serves.] ## Stack and architecture - Languages and frameworks: [...] - Approved services and libraries: [...] - Patterns to follow: [...] ## Every change must - Include unit tests and at least one integration or API test. - Pass the security scan and accessibility checks in CI. - Meet our Definition of Done: [link] ## Data and security - [How personal data is handled, masked in logs and stored] - Secrets live in [vault/service], never in code. ## Never - Change [critical area] without a named human reviewer. - Add a new third-party library without a note in the plan. - [Anything else the agent must not do] ## Human review - A Developer reviews every change against its spec before it meets the Definition of Done. - Accountability for the Increment stays with the Developers.
Feature Spec Template
Write one spec per Product Backlog item, during refinement and just before the team builds it. One or two pages is enough. If it runs longer, it probably describes more than one item. If your item still starts as a request like "we need a dashboard", reframe it first with the problem statement examples and builder, and keep the user-facing wording consistent with your user story templates.
spec.md
# Spec [number]: [Short name] ## Why [The problem and the outcome. How will the Product Owner know this was worth building?] ## Who [The specific users or customers this is for.] ## What done looks like 1. [Checkable acceptance criterion] 2. [Checkable acceptance criterion] 3. [What happens when something fails: errors and edge cases] 4. [Speed, accessibility or security needs, where they matter] ## Out of scope - [What this item will not change] ## Constraints - [Constitution rules that matter most here, or extra limits] ## Open questions - [Anything not yet known. Resolve before the agent starts.] ## Links - Product Backlog item: [link] - Related specs: [links]
How to fill each section
- Why: the outcome the Product Owner will use to judge whether this was worth building. It also stops the team gold-plating.
- What done looks like: acceptance criteria that someone can check. "Shows the expected credit window" can be tested. "A great refund experience" cannot.
- Out of scope: the line most teams skip. Agents are eager and will "improve" nearby code unless told not to.
- Open questions: be honest about what you do not know yet, and resolve it before the Sprint, not halfway through it.
Worked Example: Refund Status
Here is a filled-in spec for a typical Indian e-commerce backlog item: "As a customer, I want to know where my refund is." Pasted into an agent as a prompt, that sentence could produce almost anything. As a spec, it produces something the team can review in minutes.
spec-014-refund-status.md
# Spec 014: Refund status for customers ## Why Refund queries are the top reason customers contact support. Goal: cut refund-status calls by half within two months of release. ## Who Customers who returned an order paid by UPI or card. ## What done looks like 1. On the order page, the customer sees the refund stage: Requested, Approved, Sent to bank, Credited. 2. Each stage shows the date it was reached. 3. When the refund is sent to the bank, the customer sees the expected credit window and the bank reference number. 4. When the status changes, the customer gets one push notification. 5. If status cannot be loaded, the page says "We can't load your refund status right now" with a retry option. No internal error codes. 6. The status loads within 2 seconds for 95% of requests. ## Out of scope - Cash-on-delivery refunds (Spec 015). - Changing the refund amount or method. - Any change to how refunds are processed. ## Open questions - Does the gateway return the bank reference for card refunds?
When the agent drafted the plan for this spec, a Developer spotted that the status cache had to expire whenever the refund stage changed, or criterion 4 would fail. Ten minutes of review before any code existed. That is where people add the most value.
Write Specs Your AI Agents Can Actually Use
Learn how Product Owners work with AI across refinement, acceptance criteria and value decisions, while accountability stays human.
Explore AI for Product Owners TrainingIs This Spec Ready for an Agent?
Run this check in Product Backlog refinement before an item goes into Sprint Planning. Nothing you tick is stored or sent anywhere.
Spec readiness check
One Sprint with Specs
- Product Backlog refinement: the Product Owner brings the why; the Developers ask questions and draft acceptance criteria. An agent can produce a first draft and list open questions, which the team then edits.
- Sprint Planning: the Scrum Team agrees the Sprint Goal, then the Developers turn each spec into a plan and tasks. Design problems surface here, before code exists.
- During the Sprint: the agent works through tasks and Developers review each change against the spec and the constitution. If the spec turns out to be wrong, update it and tell the Product Owner rather than quietly changing the code.
- Daily Scrum: make blocked specs and waiting reviews visible. Review queues are where AI-assisted teams slow down.
- Sprint Review: inspect the Increment against "What done looks like" and check the "Why" with stakeholders.
- Sprint Retrospective: for each agent mistake, ask which line in the constitution or spec template would have prevented it, and add it.
Using Specs on an Existing Codebase
You do not need a new project. Ask the agent to read the existing code, READMEs and build files and draft a constitution from what it finds, then have the Developers correct it. That often writes down rules that lived only in one senior developer's head. After that, spec only the changes: every new Product Backlog item gets a spec, and the parts of the system you change most become the parts you understand best.
Five Mistakes to Avoid
- Writing specs like waterfall documents: ten pages means several items. Split it.
- Putting the how in the spec: the spec says what and why; the plan says how. Mixing them stops Developers finding a better design.
- Skipping review because the spec was good: a good spec makes review faster, not optional.
- Letting the spec drift: change code and spec together, or within two Sprints the spec is fiction.
- Treating the constitution as finished: it should change after most Retrospectives.
Frequently Asked Questions
What is spec-driven development?
Spec-driven development is a way of working with AI coding agents where the team first writes down what to build and why in a short, structured document called a spec. The agent works out how to build it from the spec, and people check the result against the spec before it is accepted.
What is the difference between vibe coding and spec-driven development?
Vibe coding means prompting an AI agent in a chat until something works, without recording intent or acceptance criteria. Spec-driven development records the intent, the acceptance criteria and the limits first, keeps them in the repository with the code, and uses them to review what the agent produced. Vibe coding suits throwaway prototypes; specs suit products customers use.
Is spec-driven development the same as waterfall?
No. A waterfall specification describes a whole system months in advance. A spec in this approach describes one Product Backlog item, just before the team builds it, and is usually one or two pages long. It records the outcome of refinement rather than replacing the conversation.
Who writes the spec in a Scrum Team?
The Product Owner is accountable for the why and the what, so they lead on the outcome and acceptance. The Developers usually help write the spec during Product Backlog refinement because they ask the questions an agent will need answered. The Developers own the constitution, the plan, the tasks and the quality of everything the agent produces.
Which tools support spec-driven development?
GitHub Spec Kit is an open-source toolkit with steps for a constitution, a spec, a plan and tasks. Amazon Kiro is an editor built around requirements, design and task files. Many teams simply keep markdown templates like the ones on this page in their repository and use them with Claude Code, Cursor or GitHub Copilot.
Looking for more frameworks? Browse the full collection of Product Management Templates, or practise for interviews with the AI product interview questions.