/utopia-product:user-storyfrom utopia-product
Writes development-ready user stories in Mike Cohn format (As a, I want to, so that) with Gherkin acceptance criteria, singly or as a backlog set for a feature, plus situation-first job stories. Use when the user asks to write a user story, break a feature into backlog items, convert a PRD requirement into stories, or define acceptance criteria. Not for splitting an oversized story or epic (use user-story-splitting).
Ships in utopia-product. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
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.
A user story combines:
Use Case (Mike Cohn format):
Acceptance Criteria (Gherkin format):
user-story-splitting)Before writing a story, ensure you have:
proto-persona)problem-statement)If missing context: Use the facts already supplied and label assumptions or open questions. Ask only for missing information that blocks a useful story; do not require a new discovery cycle to draft one.
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\"
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:
Common mistakes:
Fill in the template:
#### Acceptance Criteria:
- **Scenario:** [Brief, human-readable scenario describing value]
- **Given:** [Initial context or precondition]
- **and Given:** [Additional context or preconditions]
- **and Given:** [Additional context as needed]
- **and Given:** [UI-focused context ensuring 'When' can happen]
- **and Given:** [Outcomes-focused context ensuring 'Then' is delivered]
- **When:** [Event that triggers the action—aligns with 'I want to']
- **Then:** [Expected outcome—aligns with 'so that']
Quality checks:
Then plus And for consequences of the same action. Split only independently valuable behaviors, not every assertion.Red flags:
user-story-splitting). Multiple assertions alone do not require splitting.Write a short, memorable summary that captures the story's value:
- **Summary:** [Brief, human-readable title]
Examples:
user-story-splittingUse this when the user hands you a whole feature (plus optional design link and assumptions) and wants the backlog items, not one polished story.
Story-set format:
**Title:** [Feature slice name]
**Description:** As a [user role], I want to [action], so that [benefit].
**Design:** [Link to design files]
**Acceptance Criteria:**
1. [Clear, testable criterion]
2. [Observable behavior]
3. [System validates correctly]
4. [Edge case handling]
5. [Performance or accessibility consideration]
6. [Integration point]
Example: Recently Viewed Section. As an online shopper, I want to see a "Recently viewed" section on the product page so I can easily revisit items I considered. Criteria: shown at the bottom of the product page for anyone who has viewed at least one product; hidden on the first product page of a session; the current product is excluded; cards show image, title and price; each card says when it was viewed ("Viewed 5 minutes ago"); clicking a card opens that product page.
Plain numbered criteria are fine in this mode; convert to Gherkin (Step 3) when the team needs QA-ready scenarios.
Use for job stories, JTBD-style backlog items, or the requested When / I want to / so I can format. Preserve the triggering situation rather than replacing it with a persona. The former job-stories method and example are preserved in references/job-stories.md.
Example: Offline inspection submission. When coverage drops while I submit an inspection, I want my report retained and submitted once connectivity returns, so I can finish the visit without losing work or creating duplicates. Criteria: retain the report on device; show pending status; retry after reconnection; do not create duplicate reports.
Role-first requests still use Mode A; full feature backlog requests use Mode B. Splitting an oversized story and planning release slices remain separate skills.
See examples/sample.md for full examples (good, bad, and split-needed stories).
Mini example excerpt:
### User Story 042:
- **Summary:** Enable Google login for trial users to reduce signup friction
#### Use Case:
- **As a** trial user visiting the app for the first time
- **I want to** log in using my Google account
- **so that** I can access the app without creating and remembering a new password
#### Acceptance Criteria:
- **Scenario:** First-time trial user logs in via Google OAuth
- **Given:** I am on the login page
- **and Given:** I have a login account
- **When:** I click the "Sign in with Google" button and authorize the app
- **Then:** I am logged into the app and redirected to the onboarding flow
Symptom: "As a developer, I want to refactor the API, so that the code is cleaner"
Consequence: This is an engineering task, not a user story. No user value is delivered.
Fix: If there's no user outcome, it's not a user story—use an engineering task or tech debt ticket instead.
Symptom: Every story starts with "As a user"
Consequence: No persona clarity. Different users have different needs.
Fix: Use specific personas: "As a trial user," "As a paid subscriber," "As an admin," etc. (reference proto-persona)
Symptom: "I want to click the save button, so that I can save my work"
Consequence: No insight into why the user cares. Just restating the action.
Fix: Dig into the motivation: "so that I don't lose my progress if the page crashes" (real outcome).
Symptom: One scenario combines separate user goals or independent workflows.
Consequence: Scope and verification become difficult to understand.
Fix: Split independently valuable behaviors using user-story-splitting. Keep related assertions for one action together; multiple scenarios or Then/And checks do not by themselves make a story too large.
Symptom: "Then the user has a better experience" or "Then it's faster"
Consequence: QA can't verify success. Ambiguous definition of "done."
Fix: Make it measurable: "Then the page loads in under 2 seconds" or "Then the user sees a success confirmation message."
user-story-splitting — How to break large stories into smaller onesproto-persona — Defines the "As a [persona]" sectionproblem-statement — Stories should address validated problemsscripts/user-story-template.py — Deterministic Markdown stub generator (no network access)What SKILL.md sets; muted values are Claude Code's defaults
134 skills in this plugin
/ab-test-analysisAnalyzes A/B and split test results: conversion rates, lift, p-value, confidence interval, sample size, sample ratio mismatch and a ship / extend / stop call. Use when the user pastes control and variant numbers, asks if a test is significant, whether the lift is real, or whether to ship the variant. Not for designing what to test (use probe-matrix)./agent-concierge-probeRunbook for having an AI agent run a real, mapped task end to end on several cases, producing cost per outcome priced to the cent and a frontier map of steps it does unaided vs needs a human. Use when the user wants to know what one outcome costs, whether a service can be automated, or what the agent cannot do alone. Not for the founder delivering by hand to test willingness to pay (use concierge-probe).Other plugins' skills for the same job
/agent-designnpx claudepluginhub the-utopia-studio/skills --plugin utopia-product