user-story — Claude Code skill: what it does, how to install
Turns product requirements into Mike Cohn user stories paired with Gherkin acceptance criteria. Fits backlog refinement and sprint planning.
npx skills add deanpeters/Product-Manager-Skills --skill user-story -a claude-codeWhat user-story does
This skill converts feature ideas and PRD snippets into Mike Cohn user stories. It maps out who benefits, what action they take, and why it matters, avoiding vague requests or premature technical specifications. If you supply zero background details, the agent queries for the target persona and objective before generating Markdown.
Acceptance criteria follow Gherkin syntax with Given, When, and Then clauses. While preconditions can stack with multiple Givens, the workflow restricts scenarios to a single When and a single Then. Multiple triggers or outcomes signal scope creep and require story splitting. A local deterministic generator is included via python3 scripts/user-story-template.py.
Do not point this skill at database refactoring or internal engineering debt, because it strictly requires direct user-facing value.
What it helps with
- translate PRD requirements into structured user stories
- write testable Gherkin acceptance criteria for QA engineers
- spot oversized stories through multiple When or Then statements
- align product managers and developers before sprint planning
Example prompts for the agent
- Write a user story for SMS password reset in our banking app, including lockout edge cases.
- Convert this PRD export requirement into a user story with Gherkin acceptance criteria.
How to install user-story
1Skills CLI (Vercel)
npx skills add deanpeters/Product-Manager-Skills --skill user-story -a claude-code2Manually: put the files in place
~/.claude/skills/user-story/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/user-story/
1Skills CLI (Vercel)
npx skills add deanpeters/Product-Manager-Skills --skill user-story -a codex2Manually: put the files in place
.agents/skills/user-story/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add deanpeters/Product-Manager-Skills --skill user-story -a cursor2Manually: put the files in place
.cursor/skills/user-story/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install deanpeters/Product-Manager-Skills user-story2Manually: put the files in place
.github/skills/user-story/SKILL.md1Skills CLI (Vercel)
npx skills add deanpeters/Product-Manager-Skills --skill user-story -a gemini-cli2Platform CLI
gemini skills install https://github.com/deanpeters/Product-Manager-Skills --path skills/user-storyManually: put the files in place
.devin/skills/user-story/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add deanpeters/Product-Manager-Skills --skill user-story -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set7
The whole set →Similar
Questions about user-story
How do I install user-story in Claude Code?
Run npx skills add deanpeters/Product-Manager-Skills --skill user-story -a claude-code or place the file directly into ~/.claude/skills/user-story/SKILL.md.
What does the user-story skill do?
It generates user stories structured as As a, I want, so that, complemented by executable Gherkin scenarios for engineering and testing teams.
Should this skill be used for technical debt?
No. Pure refactoring and architectural chores belong in developer task tickets, as this skill focuses on user personas and observable outcomes.