AI Prompt for Acceptance Criteria That Are Testable
Paste a requirement or user story and get acceptance criteria a tester can pass or fail: the normal path, edge cases, error handling, and the questions only the business can answer.
Act as a senior business analyst who writes acceptance criteria that testers can run without asking what was meant.
Requirement or user story: [paste the requirement or story]
Who uses it and why: [user role and the outcome they need]
Business rules and limits: [rules, thresholds, permissions, regulations]
Systems or data involved: [systems, integrations, data sources]
Preferred format: [Given/When/Then or checklist]
Produce:
1. A one-sentence restatement of the requirement, so I can confirm you understood it.
2. Acceptance criteria for the normal path, numbered, in my preferred format. Each criterion must describe one observable result that a tester can mark pass or fail.
3. Edge cases and error conditions: empty or invalid input, boundary values, permission failures, duplicates, and interruptions. Write a criterion for each one that applies.
4. Non-functional criteria that apply, such as response time, accessibility, or audit logging, each with a measurable threshold.
5. Out of scope: behavior a reader might assume is included but is not.
6. Open questions for the product owner.
Do not use words such as fast, easy, or user-friendly without a number or an observable behavior. Do not invent business rules or thresholds. Where a rule is missing, write "TBD" in the criterion and add it to the open questions.Why this prompt is useful
Most disputes about whether work is done come from criteria that describe intent and not an observable result. This prompt forces one pass or fail result per criterion, walks a fixed list of edge cases that people skip under time pressure, and sends missing business rules to the product owner as questions instead of letting the AI guess them.
Use it when: you have a requirement or user story that is about to be built and nobody has written down how it will be checked.
How this prompt works
Acceptance criteria are the contract between the person who asks for something and the person who builds it. When they are vague, quality becomes a matter of opinion, and the opinion that wins is usually the one held by whoever is most senior in the review. The prompt is built to remove opinion from the result.
Step 2 asks for one observable result per criterion. This is the rule testers care about most. A criterion that says "the user can search and filter and export" can be half passed, and a half pass is where arguments start. One result per line means each line is either met or not.
Step 3 names the edge cases directly: empty input, boundary values, permissions, duplicates, interruptions. Teams under schedule pressure write the normal path and stop. The defects that reach users tend to live in the cases nobody wrote down, so the prompt lists them and asks the AI to cover each one that applies.
Step 4 separates non-functional criteria and demands a threshold. "The page loads quickly" cannot be tested. "The results page loads within 2 seconds for 500 records" can.
The final rule matters most. The AI does not know your refund limit or your approval thresholds. Telling it to write "TBD" stops a plausible invented number from slipping into a criterion and then into the build.
How to adapt it
- Non-software deliverables: replace the story with the deliverable, such as a training course or a report, and ask for a checklist. The same logic applies: one checkable result per line.
- A batch of stories: paste several and add "Keep the criteria for each story separate and flag any criteria that conflict across stories."
- Existing criteria: paste what you have and ask "Which of these cannot be tested as written, and what cases are missing?"
What to do with the output
Take the open questions to the product owner before the work starts. Answer every "TBD" with a real value. Check that the AI has not quietly widened the scope by adding criteria for features nobody asked for. For more on why this step prevents rework, read acceptance criteria that prevent "done doesn't mean done".
Frequently Asked Questions
Can AI write acceptance criteria?
It can draft well-structured criteria and is good at listing edge cases you might skip. It does not know your business rules, so every threshold and limit needs to come from you or the product owner. Review each criterion before the team commits to it.
Should I use Given/When/Then or a checklist?
Use Given/When/Then when behavior depends on a starting state and an action, which is common in software. Use a checklist for documents, designs, and physical deliverables, where you are confirming that properties are present. Either works if each line can be passed or failed.
How many acceptance criteria should a user story have?
There is no fixed number, but if a story needs more than about ten, it is probably more than one story. Split it so each part can be built, tested, and accepted on its own.
