Introducing the New Product Spec Agent
This is a new version of the agent from Turning Product Ideas into Clear Specifications with AI, now it's organized by feature.
Read the post Turning Product Ideas into Clear Specifications with AI for more detail.
Why specs need a new shape
The previous spec template spreads one feature across many sections: user stories in one place, requirements in another, acceptance criteria and tests in a third. Readers have to piece each feature back together, and an agent that updates one copy of a fact can leaves the other copies wrong.
I wanted a new spec that a product person can read in five minutes and an agent can build from without guessing.
How a session works
You paste the prompt (link in below) into your AI tool and describe your idea in a sentence. From there, the agent works in five stages:
One spec, two readers
The spec is a single Markdown document in three layers, so each reader can stop where they need to.
| Layer | What's in it | Who reads it |
|---|---|---|
| Part A: Overview | Where things stand, summary, goals, roles and permissions, features at a glance, boundaries, glossary | Everyone. A business reader can stop here. |
| Part B: Features | One self-contained block per feature | Product, engineering, and the agents building each feature |
| Part C: System | Shared behaviors, data, interfaces, security, quality targets, architecture, operations | Engineers and agents |
From spec to code
The spec is the first half of a pipeline. A second prompt, the Spec-to-Tasks Agent, reads a finished spec and turns it into ordered tasks. Each task is a ready-to-run prompt: paste it into a fresh coding-agent session and it has everything it needs, copied word for word from the spec.
spec-check.py confirms every ID is defined, every rule has examples, and every TBD points to an open decision. It can also run in CI.Try it
The agent prompt is the only file you need. The others are there when you want them.
| File | What it is |
|---|---|
| product-spec-agent-loop.md | The Product Spec Agent prompt, with the spec template built in |
| spec-to-tasks-agent.md | The Spec-to-Tasks Agent prompt, which turns a finished spec into task prompts |
| spec-check.py | The checker. Run python3 spec-check.py your-spec.md |
| example-spec-leavedesk.md | A complete example spec for a fictional leave-request tool |
| production-specification-template.md | The empty spec template on its own |
To start, paste the prompt into your AI tool as the system prompt, as custom instructions or as your first message. Then describe your idea in a sentence.
A few things to know before you try it:
A solo dev would do
If you are the only developer, product owner, and project manager, this solo edition of a product specification is for you. Everything that exists for other people to read or sign off on is removed: