The PRD section most teams skip: non-functional requirements
Most PRDs I review describe what the app does. Very few describe how well it has to do it. The features are all there — the screens, the buttons, the flows — and then the build starts, and someone asks: how fast should this page load? Who can see this data? What happens when the payment gateway is down?
If those answers are not in the PRD, the AI coding agent answers them for you. And its answers will be whatever is easiest to code, not what your users need.
Non-functional requirements are the section most teams skip because they feel like boilerplate. They are not boilerplate. They are the difference between an app that works in a demo and an app that survives real users.
1. Performance, with numbers
"Fast" is not a requirement. Numbers are.
For every screen that matters, write the budget down:
- Dashboard first paint: under 1.5 seconds on a 4G connection
- API list responses: p95 under 300ms for up to 1,000 rows
- Search results: under 500ms for 10,000 indexed records
When the number is in the PRD, the agent makes different choices: it paginates instead of loading everything, it adds an index instead of a full table scan, it caches instead of refetching. When the number is missing, it loads all 10,000 rows and calls it done.
2. Security and who can see what
This is the one that costs real money when it is wrong. For every table, state the access rule in plain language first, then as a policy.
Plain language: "A user can only read and write rows in workspaces they belong to. Workspace owners can invite and remove members. No one can read another workspace's data, ever."
Then the rule that enforces it:
CREATE POLICY "Tenant Workspace Isolation" ON public.sprints
FOR ALL USING (
workspace_id IN (
SELECT workspace_id FROM public.workspace_members
WHERE user_id = auth.uid()
)
);
If the PRD does not name the rule per table, the agent will either leave the table open or bolt it shut so tightly that even the owner cannot get in. Both are bugs you discover in production, and the first one is a data breach.
3. Accessibility is a requirement, not a polish step
"Accessible" is another word that means nothing without a standard. Mine is simple: WCAG 2.1 AA, keyboard navigable, every interactive element reachable by Tab, every action announced to screen readers.
Write it per screen, in the UI spec:
- All buttons and inputs reachable and operable by keyboard alone
- Colour contrast at least 4.5:1 for body text
- Focus state visible on every interactive element
- Error messages announced, not shown by colour alone
An agent handed this will add focus rings, aria labels, and real buttons instead of clickable divs. An agent handed nothing will ship a beautiful app a keyboard user cannot use.
4. Reliability: what happens when something fails
Every PRD I write has a failure line per integration. The payment gateway times out — what does the user see? The email service is down — is the signup blocked, or queued and retried?
- Payment confirmation: if the gateway does not respond in 10s,
show "payment processing" and poll status; never charge twice.
- Failed email delivery: retry 3 times, then log and surface
a "resend" action in the dashboard.
- Offline: queue writes locally and sync on reconnect.
The agent cannot invent your failure policy, because it does not know your business. If you do not write it, you get the default: a spinner that never stops, or a silent failure nobody notices until a customer complains.
5. Data rules: retention, deletion, and export
Users ask to delete their account. Regulators ask where data lives. A founder asks for an export. All three are easy if the PRD says so on day one, and painful refactors if it does not.
- Account deletion removes personal data within 30 days;
anonymised usage stats may be retained.
- Users can export all their data as Markdown + CSV from settings.
- Backups retained for 30 days, encrypted at rest.
Three sentences. They decide the shape of the delete endpoint, the export feature, and the backup policy before a single table exists.
6. How I write this section
I keep it short — one short block per topic, with a number wherever a number exists. No paragraphs of prose. The whole section fits on one screen, and I put it right after the feature list, before the technical architecture, so the schema and the API contracts are written to satisfy it.
In my own specs the four files carry it together: PRODUCT_REQUIREMENTS.md states the numbers and the rules, UI_UX_SPECIFICATION.md states the accessibility behaviour per screen, TECHNICAL_ARCHITECTURE.md turns the security rules into RLS policies and the performance numbers into indexes and pagination, and AI_AGENT_IMPLEMENTATION.md tells the agent to verify each one before calling the feature done.
The test
Read your PRD and ask: if the agent built exactly what is written and nothing more, would the app be fast enough, safe enough, and usable enough for a real user on a bad connection with a keyboard?
If the answer is "I don't know", the non-functional section is missing. Write it before the build starts — it takes twenty minutes, and it is the cheapest insurance in the whole project.
If you want the same starting point, the generator builds all four files from one idea in under 60 seconds — 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.
Features say what the app does. Non-functional requirements say whether it is worth using. Write both.
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 (1)
The failure line per integration is the section I would steal first — for an offline-first app, "what happens when this fails" is most of the product: no network, no account, a lost phone. Your test at the end is the sharpest part: if the agent built exactly what is written and nothing more, would the app survive real users? Most PRDs fail that test on the security row alone — the per-table rule in plain language is what stops the agent from leaving a table open. One question: of the five sections, which one do teams push back on most when you ask them to write numbers for it — performance, or the data deletion rules?