user-story
What it does
This skill writes user stories that name who benefits, what they want to do, and why, followed by acceptance criteria in a testable format. It is for product managers handing work to development teams.
When to use it
- āWhen a user need is ready to become development work with clear outcomes.
- āWhen engineers and product need a shared understanding and testable success conditions.
- āWhen you need acceptance criteria that cover edge cases before work starts.
Skill link
https://github.com/deanpeters/Product-Manager-Skills/blob/main/skills/user-story/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentās skills folder.
Example of what to ask your AI
āWrite user stories for password reset by SMS in our banking app, and include the lockout edge case.ā
5 new skills a week. 1 minute to read.
How it works
It asks who the user is and what they want to accomplish, then drafts a story in the form of as a user, I want an action, so that an outcome, with Gherkin-style acceptance criteria.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Purpose
Create clear, concise user stories that combine Mike Cohn's user story format with Gherkin-style acceptance criteria. Use this to translate user needs into actionable development work that focuses on outcomes, ensures shared understanding between product and engineering, and provides testable success criteria.
This is not a feature specāit's a conversation starter that captures who benefits, what they're trying to do, why it matters, and how you'll know it works.
Input
Works best with: The feature or user need the story captures. Also useful: The user role, the outcome they want, and edge cases the acceptance criteria must cover.
Anything supplied with the invocation itself ā text after the skill name, a pasted context dump, or an appended ARGUMENTS: line ā counts as answers already given. Use it and skip whatever it covers; don't re-ask.
Arriving empty-handed? That works too. The skill asks who the user is and what they're trying to accomplish before drafting story and Gherkin criteria.
Example invocation: Write user stories for password reset via SMS for our banking app ā include the lockout edge case.
Key Concepts
The Mike Cohn + Gherkin Format
A user story combines:
Use Case (Mike Cohn format):
- As a [user persona/role]
- I want to [action to achieve outcome]
- so that [desired outcome]
Acceptance Criteria (Gherkin format):
- Scenario: [Brief description of the scenario]
- Given: [Initial context or preconditions]
- and Given: [Additional preconditions]
- When: [Event that triggers the action]
- Then: [Expected outcome]
Why This Structure Works
- User-centric: Forces focus on who benefits and why
- Outcome-focused: "So that" emphasizes the value delivered, not just the action
- Testable: Gherkin acceptance criteria are concrete and verifiable
- Conversational: Story is the opening for discussion, not the final spec
- Shared language: Product, engineering, and QA all understand the format
Anti-Patterns (What This Is NOT)
- Not a task: "As a developer, I want to refactor the database" (this is a tech task, not user value)
- Not a feature list: "I want dashboards, reports, and analytics" (this is too bigāneeds splitting)
- Not vague: "I want a better experience" (unmeasurable, no clear outcome)
- Not a contract: Stories are placeholders for conversation, not locked-in specs
When to Use This
- Translating user needs into development work
- Backlog grooming and sprint planning
- Communicating value to engineering and design
- Ensuring testable acceptance criteria exist before development
When NOT to Use This
- For pure technical debt or refactoring (use engineering tasks instead)
- When stories are too large (split firstāsee
skills/user-story-splitting/SKILL.md) - Before understanding the user problem (write a problem statement first)
Application
Step 1: Gather Context
Before writing a story, ensure you have:
- User persona: Who is this for? (reference
skills/proto-persona/SKILL.md) - Problem understanding: What need does this address? (reference
skills/problem-statement/SKILL.md) - Desired outcome: What does success look like?
- Constraints: Technical, time, or scope limitations
If missing context: Run discovery interviews or problem validation work first.
Optional Helper Script (Template Generator)
If you want a consistent Markdown stub, you can generate one from CLI inputs. This script is deterministic and does not fetch data or write files.
python3 scripts/user-story-template.py --persona \"trial user\" --action \"log in with Google\" --outcome \"access the app without creating a new password\"
Step 2: Write the Use Case
Use template.md for the full fill-in structure.
Fill in the template:
### User Story [ID]:
- **Summary:** [Brief, memorable title focused on value to the user]
#### Use Case:
- **As a** [user name if available, otherwise persona, otherwise role]
- **I want to** [action user takes to get to outcome]
- **so that** [desired outcome]
Quality checks:
- "As a" specificity: Is this a specific persona (e.g., "trial user") or generic ("user")?
- "I want to" clarity: Is this an action the user takes, or a feature you're building?
- "So that" outcome: Does this explain the user's motivation? Or is it just restating the action?
**Common mista
FAQ
Is a user story a feature spec?
No. It is a conversation starter that captures who benefits, what they need, why it matters, and how you will know it works.
Can I name edge cases?
Yes. Edge cases you name, such as an account lockout, are covered in the acceptance criteria.
What if I do not know the user yet?
The skill asks who the user is before drafting, so you can answer that first.
Details
Original description by the author
Create user stories with Mike Cohn format and Gherkin acceptance criteria. Use when turning user needs into development-ready work with clear outcomes and testable conditions.
Popularity
- GitHub stars
- 7.8k
- Ranking position
- #12822
- License
- ā
- Updated
- 10/15/2026
Comments
- ā¦
More skills from this repository
acquisition-channel-advisor
7.8kHelps your agent judge whether a marketing channel is worth scaling, testing, or stopping, using customer acquisition cost, lifetime value, and payback time.
agent-orchestration-advisor
7.8kHelps your agent plan a complex product task as several specialized AI agents working in parallel, with clear hand-offs and monitoring.
ai-shaped-readiness-advisor
7.8kHelps your agent check whether your product team only uses AI to speed up old tasks, or has redesigned its work around AI, and what to build next.
altitude-horizon-framework
7.8kExplains the shift from product manager to director through two ideas, altitude and horizon, and helps you find where your friction comes from.
Similar skills
knowledge-capture
394kTeaches your agent to save decisions, preferences, and key facts to your Knowledge vault as short notes with source attribution.
knowledge-claim-consolidation
394kHelps your agent tidy a Knowledge vault by merging duplicate claims, moving them to the right subject pages, and retiring outdated ones.
knowledge-correct
394kLets your agent fix or withdraw a specific saved Knowledge claim or page at your request, keeping a record of what changed.