Write Acceptance Criteria
Purpose
Define, in terms the business and testers both accept, exactly what must be true for a story or requirement to be done, so that nothing is left to interpretation at review time.
When to use
- A story or requirement is ready for refinement and lacks criteria.
- Existing criteria are vague ("works correctly", "fast", "user-friendly").
- Testers or automation need scenarios traceable to a story.
When not to use
- The story itself is unclear or has no specific persona and outcome. Use
user-story first.
- Executable feature files for an automation framework are needed. Use
bdd-feature-file.
- A full test design with data combinations is needed. Use
test-scenarios-from-requirements.
Inputs
Required:
- The user story or requirement statement.
Optional, improves quality:
- Business rules, data definitions, screen or API behavior, permissions, known edge cases, the team's preferred criteria format.
If the story is missing, ask for it. If a rule that decides the outcome is unknown (a limit, a status, a role), ask for it in one short batch; otherwise mark it [TBD] in the criterion.
Process
- Restate the story's outcome in one line and list the business rules it depends on. Label any rule you infer
[ASSUMPTION].
- Choose the format: Given/When/Then for behavior with state and sequence; rule form ("A swap cannot be approved after the shift has started") for simple constraints. Use one format consistently per story.
- Write the happy-path scenario first.
- Add one scenario per rule variation, validation failure, permission boundary and error or timeout case relevant to the story.
- Enforce one When and one Then per scenario. Several triggers or outcomes means several scenarios; "And" in Then is allowed only for facets of the same outcome.
- Make every Then observable and measurable: state, message, record, notification or number. Replace vague words with concrete values, or
[TBD] if unknown.
- Use concrete example data in Given (a named status, an amount, a date relation) instead of abstract phrasing; mask any personal data.
- Keep criteria implementation-free: no UI controls, table names or endpoints unless they are part of the agreed contract.
- Check coverage against the story: every rule and every "so that" outcome has at least one scenario; flag scope creep that belongs to another story.
- List open questions and assumptions with owners.
- If the goal continues, suggest
edge-case-elicitation for deeper boundary cases, invest-check for story quality, or bdd-feature-file for automation.
Output format
# Acceptance Criteria: <story ID and title>
Rules referenced: <BR-xx, ...>
### AC-1 <scenario name> (happy path)
Given <context with concrete data>
When <single trigger>
Then <single observable outcome>
### AC-2 <scenario name>
...
### Rule-form criteria (if used)
- R-1 <constraint>
## Out of scope for this story
- ...
## Assumptions and Open Questions
- [ASSUMPTION] ...
1. <question> — <owner>
Quality checklist
Common pitfalls
| Pitfall |
Fix |
| "Then the system works correctly" |
Name the exact state, message or record that proves it. |
| Two Whens in one scenario |
Split into two scenarios; each tests one trigger. |
| Only the happy path |
Add rejection, invalid input, no-permission and timeout scenarios. |
| Criteria that restate the story |
Criteria must add conditions the story does not state. |
Example
Input: "As a store manager, I want to approve or reject a pending shift swap from my phone."
Weak: "Manager can approve and reject swaps and everything is updated."
Strong:
AC-1 Approve a pending swap
Given a swap request between two employees with status "Pending"
When the store manager approves it
Then both employees' schedules show the swapped shifts and the request status is "Approved"
AC-2 Swap for a started shift
Given a swap request whose shift started 10 minutes ago
When the store manager tries to approve it
Then the approval is refused with the message that the shift has already started
Open question: Does rejection require a reason? [TBD] — Operations
1---2name: acceptance-criteria3description: "Writes testable acceptance criteria for a user story or requirement, in Given/When/Then scenarios or rule form, covering the happy path, business rule variations, validation, permissions and failure cases, with one trigger and one outcome per scenario. Use when a story needs its conditions of done, when criteria are vague or untestable, or when asked for 'AC', 'Gherkin' or 'Given/When/Then'."4license: MIT5metadata:6 source: https://skillmd.com/skills/muratdincer/acceptance-criteria7 version: "1.0.0"8 language: en9 category: 01-business-analysis10 role: business-analyst11 area: documentation12 title: "Write acceptance criteria"13 related: "user-story, invest-check, edge-case-elicitation, bdd-feature-file, test-scenarios-from-requirements"14 prompt: "Write acceptance criteria for: As a store manager, I want to approve or reject a pending shift swap from my phone."15---1617# Write Acceptance Criteria1819## Purpose20Define, in terms the business and testers both accept, exactly what must be true for a story or requirement to be done, so that nothing is left to interpretation at review time.2122## When to use23- A story or requirement is ready for refinement and lacks criteria.24- Existing criteria are vague ("works correctly", "fast", "user-friendly").25- Testers or automation need scenarios traceable to a story.2627## When not to use28- The story itself is unclear or has no specific persona and outcome. Use `user-story` first.29- Executable feature files for an automation framework are needed. Use `bdd-feature-file`.30- A full test design with data combinations is needed. Use `test-scenarios-from-requirements`.3132## Inputs33Required:34- The user story or requirement statement.3536Optional, improves quality:37- Business rules, data definitions, screen or API behavior, permissions, known edge cases, the team's preferred criteria format.3839If the story is missing, ask for it. If a rule that decides the outcome is unknown (a limit, a status, a role), ask for it in one short batch; otherwise mark it `[TBD]` in the criterion.4041## Process421. Restate the story's outcome in one line and list the business rules it depends on. Label any rule you infer `[ASSUMPTION]`.432. Choose the format: Given/When/Then for behavior with state and sequence; rule form ("A swap cannot be approved after the shift has started") for simple constraints. Use one format consistently per story.443. Write the happy-path scenario first.454. Add one scenario per rule variation, validation failure, permission boundary and error or timeout case relevant to the story.465. Enforce one When and one Then per scenario. Several triggers or outcomes means several scenarios; "And" in Then is allowed only for facets of the same outcome.476. Make every Then observable and measurable: state, message, record, notification or number. Replace vague words with concrete values, or `[TBD]` if unknown.487. Use concrete example data in Given (a named status, an amount, a date relation) instead of abstract phrasing; mask any personal data.498. Keep criteria implementation-free: no UI controls, table names or endpoints unless they are part of the agreed contract.509. Check coverage against the story: every rule and every "so that" outcome has at least one scenario; flag scope creep that belongs to another story.5110. List open questions and assumptions with owners.5211. If the goal continues, suggest `edge-case-elicitation` for deeper boundary cases, `invest-check` for story quality, or `bdd-feature-file` for automation.5354## Output format55```markdown56# Acceptance Criteria: <story ID and title>57Rules referenced: <BR-xx, ...>5859### AC-1 <scenario name> (happy path)60Given <context with concrete data>61When <single trigger>62Then <single observable outcome>6364### AC-2 <scenario name>65...6667### Rule-form criteria (if used)68- R-1 <constraint>6970## Out of scope for this story71- ...72## Assumptions and Open Questions73- [ASSUMPTION] ...741. <question> — <owner>75```7677## Quality checklist78- [ ] Every scenario has exactly one When and one Then outcome.79- [ ] Every Then is observable and contains no vague terms.80- [ ] Happy path, rule variations, validation, permission and failure cases are covered where relevant.81- [ ] Criteria describe behavior, not UI controls or implementation.82- [ ] Every rule and the story outcome trace to at least one criterion.83- [ ] Unknown values are `[TBD]`, inferred rules are `[ASSUMPTION]`; nothing is invented.84- [ ] All checks pass; if any fails, revise the output and re-run this checklist before answering.8586## Common pitfalls87| Pitfall | Fix |88|---|---|89| "Then the system works correctly" | Name the exact state, message or record that proves it. |90| Two Whens in one scenario | Split into two scenarios; each tests one trigger. |91| Only the happy path | Add rejection, invalid input, no-permission and timeout scenarios. |92| Criteria that restate the story | Criteria must add conditions the story does not state. |9394## Example95Input: "As a store manager, I want to approve or reject a pending shift swap from my phone."9697Weak: "Manager can approve and reject swaps and everything is updated."9899Strong:100### AC-1 Approve a pending swap101Given a swap request between two employees with status "Pending"102When the store manager approves it103Then both employees' schedules show the swapped shifts and the request status is "Approved"104105### AC-2 Swap for a started shift106Given a swap request whose shift started 10 minutes ago107When the store manager tries to approve it108Then the approval is refused with the message that the shift has already started109110Open question: Does rejection require a reason? `[TBD]` — Operations