PRD Before Code
Write a short product brief with clear, checkable results before you ask an AI to build the first version.
Content date: October 15, 2026.
Plain English
A product requirements document (PRD) is a written note of what you are making, your limits, and how it should behave. For a small first version it fits on one page. Its job is to remove guesswork and make "done" easy to check. It is not a place to collect every diagram or future feature.
Use this when
Write it after you know the problem and the audience, and before the first build or any big change in direction.
If you are just starting
Write down the person, the problem, the first task, what you won't build, your assumptions, how sensitive the information is, and a few things you can check to know it works. Add your budget limit, such as "nothing paid." Keep what the product must do separate from ideas about how to build it. Ask questions only when a missing decision would block a useful or safe next step.
When your project grows
As the project grows, add who is allowed to do what, what happens when something goes wrong and how you recover, which devices and browsers it must work on, who keeps it running, and what must be true before launch. Link to detailed decisions instead of copying them. Keep a change log when new evidence changes the plan, and update your checks before treating extra behavior as part of the job.
Worked example
A garden club's practice inquiry form must reject blank fields, point out an invalid email without clearing the message, work by keyboard alone, and say that no message was sent. Email delivery, accounts, and saving messages are on the won't-build list. When the AI offers a full backend, the brief answers it: that adds code but passes none of these checks.
Practice
Write a brief that can reject the wrong solution
- Choose one task, and write what the person gets from it and what you won't build.
- Write your assumptions, how sensitive the data is, and your budget limit.
- Write checks for a normal case, an invalid entry, and recovery after a mistake, each describing what a person sees.
- Compare what the AI proposes with your brief, and spot one tempting extra feature or missing behavior.
- Build or review the result, and mark each check pass, fail, or not tested, with a note on how you tried it.
Deliverable: A one-page brief with a table of checks and results, plus a list of scope decisions.
Common mistakes to watch for
- Listing technologies without describing what people will do, so you can't tell if the AI's choices fit.
- "Checks" that only restate how it was built, like "has a validation function."
- Leaving assumptions about private data unspoken, so the AI stores emails you never planned to keep.
- Writing such a long document that it delays a small experiment.
- The AI quietly adding features while claiming to follow the brief.
Prompting
A weak prompt
Write a comprehensive PRD for the entire company, then start building.
A better prompt
Write a one-page brief for this first task: [describe it]. Include the user and problem, what the product must do and won't do, assumptions, how sensitive the data is, my budget limit, and three to five checks I can see. Keep "how to build it" ideas separate from requirements. Ask only questions that block progress. Then build just that task and show which check each part satisfies. Tell me before adding anything beyond the brief.
It gives the AI and you the same small, visible definition of success, so you can tell a correct build from one that only looks finished.
Check before you move on
- Your brief says what a person can do when it works.
- Your list of things you won't build is written down.
- Your assumptions about private data are written down.
- Each check describes something you can see, not how it was built.
- You have written what should happen on a blank or invalid entry.
- Each check has a result: pass, fail, or not tested.
You are done when
- A reviewer could tell a correct build from one that only looks right, using your checks.
- What you built and what is still open both match the scope in your brief.
Questions to think about
Which is a stronger check: "add a validation function" or "show an error when the name is empty"?
The error message. A function can exist and still show nothing. Describing what a person sees lets you test the result.
The AI adds paid email delivery to a demo that was supposed to stay on your computer. Is that a bonus?
No. It breaks your own limits on scope and cost. Accept it only if you decide, on purpose, to change the brief.
A customer interview changes what the first task should be. Should you leave the PRD alone?
No. Update the brief and its checks, and note why, so you and the AI work from the current plan.