Write user stories in Mike Cohn format with Gherkin acceptance criteria. Use when turning a user need into a slice's title/so_that and acceptance_criteria, or whenever asked to write a user story.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of User Story?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/restierecon-user-story)
---
name: user-story
description: Write user stories in Mike Cohn format with Gherkin acceptance criteria. Use when turning a user need into a slice's title/so_that and acceptance_criteria, or whenever asked to write a user story.
---
# User Story
Format:
```
As a [specific persona, not "user"]
I want to [action]
so that [outcome — the motivation, not a restatement of the action]
```
Acceptance criteria, Gherkin:
```
Scenario: [one sentence]
Given [precondition]
and Given [more preconditions as needed]
When [the one triggering event — matches "I want to"]
Then [the one expected outcome — matches "so that"]
```
## Rules
- Persona specific ("trial user", "org admin"), never generic "user."
- "So that" states motivation, not the action again. `"I want to click save, so that I save"` is not a story.
- Exactly one When, one Then per scenario. Multiple Whens/Thens = multiple stories — split it.
- Then must be verifiable (`"loads in under 2s"`, not `"is faster"`).
- Not a story: no user-facing outcome ("as a developer, refactor the DB") → that's an engineering task, skip this skill.
## Helpers
- `template.md` — blank fill-in stub.
- `examples/sample.md` — good, bad, and split-needed stories.
- `~/.tbv/skills/user-story/scripts/user-story-template.py` — prints a filled
Markdown stub from `--persona/--action/--outcome` (`python` on Windows), e.g.
`python3 ~/.tbv/skills/user-story/scripts/user-story-template.py --persona "trial user" --action "log in with Google" --outcome "access the app without a new password"`
## In this workflow
This produces exactly the fields slice-planning needs: title ("Actor can...") and
`so_that` come straight from the story's persona, action and outcome; Gherkin scenarios become
`acceptance_criteria` entries (one bullet per Given/When/Then group). Write the
story before calling slice-planning, not after — a slice whose `so_that` you can't
state as real user motivation isn't a slice yet.
## Example
```
As a trial user visiting for the first time
I want to log in with my Google account
so that I can access the app without creating a new password
Scenario: First-time trial user logs in via Google OAuth
Given I am on the login page
and Given I have a Google account
When I authorize the app on Google's consent screen
Then I land on onboarding, signed in
```