User Stories and Use Cases
Express requirements from the user's perspective using user stories, epics, and detailed use cases, and know when to use each.
Introduction
“The system shall…” statements are precise but can lose the human context. User stories and use cases keep the user’s goal in view. They complement, rather than replace, formal requirements.
A user story is a short statement of value that prompts a conversation. A use case describes a complete interaction between an actor and the system, including alternative and exception flows. Many projects need both.
Learning Objectives
- Write well-formed user stories using the INVEST criteria.
- Decompose epics into stories that deliver value.
- Write a structured use case with main, alternative, and exception flows.
- Decide when to use stories, use cases, or formal statements.
- Use AI to draft and critique stories and flows.
1. The User Story
Common format:
1
As a [role], I want [capability], so that [benefit].
Example:
As a product manager, I want to see every feedback item linked to a theme, so that I can judge how strong the evidence is.
The benefit clause is essential. It captures the need and lets the team consider alternative solutions. A story without a benefit often hides a solution.
Be specific about the role. “As a user” tells you almost nothing; “as a support lead preparing a monthly summary” tells you much.
2. INVEST Criteria
| Letter | Quality | Check |
|---|---|---|
| I | Independent | Can it be built and delivered without another story? |
| N | Negotiable | Is the detail open to conversation? |
| V | Valuable | Does the user or business gain something? |
| E | Estimable | Is it understood well enough to estimate? |
| S | Small | Can it be completed within one iteration? |
| T | Testable | Can acceptance be demonstrated? |
If a story fails, split it, clarify it, or drop it.
3. Epics and Splitting
An epic is a large goal that must be split. Split by user value, not by technical layer.
Epic: As a product manager, I want to produce an evidence-backed summary for a decision.
Possible vertical splits:
- Create a summary from a single theme with its linked items.
- Add counts of items and sources to the summary.
- Include representative anonymized quotes.
- Export the summary as a shareable document.
- Record the decision and link it to the summary.
Avoid horizontal splits such as “build database”, “build API”, “build UI”. These deliver no user value until all are complete.
Other splitting patterns: by workflow step, by business rule, by data variation, by happy path versus exceptions, by role.
4. The Use Case
Use cases are valuable for complex interactions, multiple actors, regulation-heavy flows, or where exceptions matter.
Template:
| Field | Content |
|---|---|
| ID / Name | UC-03 Import feedback from CSV |
| Primary actor | Product manager |
| Goal | Add new feedback items from an exported file |
| Preconditions | User is logged in and has Editor role |
| Trigger | User selects “Import CSV” |
| Success guarantee | Valid rows are stored as feedback items |
| Related requirements | FR-IMP-001, FR-IMP-002, NFR-PER-004 |
Main success flow
- User selects a CSV file.
- System validates file size and format.
- System previews mapped columns.
- User confirms the mapping.
- System creates feedback items for each valid row.
- System displays the number imported, skipped, and flagged as duplicates.
Alternative flows
- 3a. User changes the column mapping, then returns to step 3.
Exception flows
- 2a. File is too large: system rejects it and displays the limit.
- 5a. Some rows are invalid: system imports valid rows and provides a downloadable error report.
- 5b. Connection fails during import: system rolls back the partial import and informs the user.
Alternative and exception flows are where use cases earn their keep. Each often reveals new requirements.
5. Choosing the Right Form
| Situation | Better fit |
|---|---|
| Backlog for an agile team, value-driven conversation | User stories |
| Complex interaction, many exceptions, multiple actors | Use case |
| Specific rule, limit, or constraint | “Shall” requirement |
| Contractual or safety-critical context | Formal requirements, with stories or use cases as context |
A practical combination: use cases or stories describe the goal and flow; formal requirements capture the precise rules; acceptance criteria prove them. Link them with IDs.
6. Use AI to Draft and Critique
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Act as an agile business analyst.
Here are the confirmed needs and requirements:
[Paste needs with IDs.]
Tasks:
1. Write user stories in the form "As a [specific role], I want
[capability], so that [benefit]". Each must reference the need ID.
2. Check each story against INVEST and list failures.
3. Suggest how to split any story that is too large, using vertical
slices.
4. List missing roles or flows to ask stakeholders about.
Do not add stories that do not trace to a provided need.
For use cases:
1
2
3
4
5
6
7
For the following goal, draft a use case with preconditions, main
flow, alternative flows, and exception flows. List every assumption
you made. Do not invent business rules; mark any rule you assume as
"to confirm".
Goal: [goal]
Known requirements: [list]
Review the exceptions carefully. AI often produces plausible exceptions that do not apply, and misses domain-specific ones that do.
7. Practical Exercise
For SignalDesk:
- Write at least 15 user stories across at least three roles, each linked to a need or requirement ID.
- Take one epic and split it into at least five vertical stories.
- Write full use cases for at least three key goals, including at least two alternative and two exception flows each.
- Add any new requirements discovered during flow analysis to the requirements register, with sources.
Verification
You are ready to continue when:
- Every story has a specific role, capability, and benefit, and passes INVEST or has a recorded reason.
- At least one epic is split vertically.
- Use cases include alternative and exception flows.
- Newly discovered requirements are added to the register with sources.
- Stories and use cases link to requirement IDs.
Key Takeaways
- Stories keep user value visible; use cases capture detailed interactions.
- The benefit clause prevents solution-first thinking.
- Split by value, not by technical layer.
- Exception flows reveal requirements you would otherwise miss.
What’s Next?
A story or requirement is only useful if you can tell when it is done. Next, we write acceptance criteria that turn intent into testable conditions.