Paste your idea into a chatbot, ask for a PRD, and you get a beautiful document. Executive summary. User personas. A feature list that reads like a product that already exists. It looks done.
Then you hand it to Cursor or Claude Code, and the build comes back looking right and behaving wrong. Buttons that do nothing on the second click. A checkout that accepts the same payment twice. An empty dashboard that shows a spinner forever. The PRD was not wrong about what the product has. It was silent about what the product does — and the agent filled every silence with a guess.
That is the failure mode of most AI-generated PRDs: they describe features, not behaviour. Here is what that looks like, and what to write instead.
1. Features are nouns; behaviour is verbs and state changes
"User authentication." "Shopping cart." "Payment processing." These are nouns. They tell the agent what exists, not what happens.
Behaviour is what happens between states:
GIVEN a cart with 3 items totalling ৳1,200
WHEN the user taps "Pay with bKash" and the payment succeeds
THEN the order is created with status "paid", the cart is emptied,
and the user lands on /orders with the new order at the top
GIVEN the same cart
WHEN the payment fails or the user cancels it
THEN the order is NOT created, the cart keeps all 3 items,
and the user sees "Payment failed — try again" on the same screen
The first PRD said "payment processing". The second one says what changes, what stays the same, and what the user sees in each case. An agent given the first version will invent the failure handling. An agent given the second version has nothing left to invent — and the bug where a failed payment still creates an order never gets written.
Rule: for every feature, write the states it moves between and the event that moves it. If your PRD has no state changes in it, it is a brochure, not a spec.
2. The missing states are where the bugs live
Every screen has more states than the happy path. Loading. Empty. Error. Partial data. Expired session. The feature-list PRD mentions none of them, so the agent improvises them — differently on every screen, and usually badly.
- Empty: a new user with no orders sees "You have no orders yet"
with a "Browse products" button — not a blank page.
- Loading: the order list shows skeleton rows for at most 3 seconds;
after that it shows an error and a retry button.
- Expired session: if the token expires mid-checkout, the cart is
saved, the user is asked to log in again, and checkout resumes
where it stopped — the cart is never silently emptied.
Write each state down before the build starts. It takes two minutes per screen, and it is the difference between an app that feels finished and an app that feels like a demo that breaks the moment a real user touches it.
3. A PRD that only describes is a PRD that never decides
"The app supports payments via bKash." That sentence describes. It decides nothing: which amounts are allowed, how many retries, what happens on a timeout, whether a duplicate payment is possible, what the receipt shows.
An AI agent cannot build from descriptions. It needs decisions:
- Amounts: ৳1 to ৳100,000 per transaction, positive integers only.
- Retries: 3 attempts, then the payment is marked failed and the
user must start a new one.
- Duplicates: the "Pay" button is disabled while a request is in
flight; a second click can never create a second charge.
- Timeout: if no response in 30 seconds, show "Payment status
unknown — check your bKash app before retrying" and do not
auto-retry.
Every undecided detail becomes a guess, and guesses cluster exactly where money moves. If your PRD reads like a product page, rewrite the load-bearing sentences as decisions with numbers in them.
4. No data rules means the agent invents your database
"Users have profiles." What fields? Which are required? What is unique — email, phone, both? What happens when two users register with the same phone number?
Without data rules, the agent picks types and constraints at random, and two features built from the same PRD will disagree about what a user even is. One screen stores phone as text, another expects a number; one table allows duplicate emails, another assumes they are unique. The build works until the first real user, and then it works in two different ways at once.
Write the rules with the feature:
- users.phone: TEXT, unique, 11 digits starting with 01.
Duplicate registration with the same phone is rejected with
"This number is already registered."
- orders.total: NUMERIC(10,2), always >= 0, computed from
line items — never stored independently of them.
- Every tenant-owned table has an owner_id that is never null,
and every query is scoped to it.
This is the part most AI-generated PRDs skip entirely, because it looks like engineering detail. It is the part the build is made of. A PRD without data rules is a story about a database, not a specification for one.
5. "Done" needs a definition, or the agent defines it
Hand an agent a feature list with no checks, and "done" means "it compiles and the button renders". That is how you get a login form that accepts any password as long as the field is not empty.
Define done per feature, in observable terms — the subject of yesterday's article on acceptance criteria, and the habit that makes all of this stick:
- GIVEN a valid email and password WHEN the user submits the login
form THEN a session is created and the user lands on /dashboard
- GIVEN a wrong password WHEN the user submits the form THEN no
session is created and the form shows "Incorrect email or
password"
If a feature has no check attached, the agent will call it done at the first moment it looks done. Attach the check, and the agent has to keep working until the behaviour is right, not just present.
Where this lives in my specs
This is why the generator I built outputs a suite instead of a single document. PRODUCT_REQUIREMENTS.md carries the behaviour — states, transitions, decisions with numbers, and GIVEN / WHEN / THEN checks. UI_UX_SPECIFICATION.md carries every screen state: loading, empty, error, and partial. TECHNICAL_ARCHITECTURE.md carries the data rules — PostgreSQL DDL, column types, uniqueness, Supabase Row Level Security, and the typed API contracts with Zod validation. AI_AGENT_IMPLEMENTATION.md pins the agent to all three: use these exact names, these exact payloads, never bypass RLS, and do not call a feature done until its checks pass.
No single file does the job. The feature list tells you what the product has. The behaviour, the states, the decisions, and the data rules tell you what it does — and that is the part the agent actually builds from.
The test
Take any AI-generated PRD and ask three questions: does it name the states each feature moves between? Does it decide the numbers — limits, retries, timeouts — instead of describing them? Does it say what the data looks like and what happens when it is wrong? If the answer is no to any of them, the PRD is a feature list in a suit. Rewrite the load-bearing parts as behaviour before you hand it to an agent, or budget a weekend for the bugs the guesses will leave behind.
If you want the same starting point, the generator writes behaviour — states, decisions, data rules, and checks — into every suite it produces. You can try it free with 50 credits at webdevmehedi.com/ai-prd-generator — and the free template behind the format is in the ai-prd-template repo.
A PRD that only lists features is a promise the build cannot keep. Write what the product does, and the agent will build what you actually asked for.
Web Dev Mehedi turns an app idea into a build-ready PRD, UI/UX spec, database schema, API contracts, and Cursor/Claude Code rules in under 60 seconds. Free signup includes 50 credits; paid plans start at ৳99/month.
Top comments (0)