Home
cd ../playbooks
Product ManagementBeginner

User Story (Mike Cohn + Gherkin)

Translate user needs into testable, outcome-focused user stories combining Mike Cohn's "As a / I want / so that" with Gherkin Given/When/Then acceptance criteria.

15-30 minutes
By communitySource
#user-story#mike-cohn#gherkin#acceptance-criteria#invest

Your sprint board has 30 "As a user, I want to click the save button so that I can save my work" tickets — and engineering still ships features QA can't verify. "As a user" is a tell that you skipped the persona; restated actions in "so that" are a tell that you skipped the why. The fix is specific personas, real motivations, and Given/When/Then criteria a tester can actually execute.

Who it's for: PMs writing backlog items, BAs translating requirements, engineering teams adopting INVEST, QA building test cases from stories

Example

"Write a story for Google login" → "As a trial user / I want to log in with Google / so that I can access the app without creating a new password" → Given login page, Given Google account → When I click Sign in with Google and authorize → Then I'm redirected to onboarding

CLAUDE.md Template

New here? 3-minute setup guide → | Already set up? Copy the template below.

Or install from your terminal:
npx ccplaybooks add user-story
# User Story (Mike Cohn + Gherkin)

Create user stories combining Mike Cohn's "As a / I want / so that" with Gherkin "Given/When/Then" acceptance criteria. Translate user needs into actionable, testable, outcome-focused work.

Not a feature spec — a conversation starter capturing *who* benefits, *what* they want, *why*, and *how* you know it works.

## The Format

**Use Case (Mike Cohn):**
- **As a** [persona/role]
- **I want to** [action]
- **so that** [outcome]

Get new playbooks like this one

One email a week with new Claude Code workflows. Free, like everything here.

No spam. Unsubscribe anytime.

README.md

What This Does

Generates Mike Cohn-format user stories paired with Gherkin Given/When/Then acceptance criteria, then validates against INVEST and "When/Then aligns with want/so-that" rules. Includes optional Python helper to scaffold a stub from CLI inputs.

Pairs with user-story-splitting, proto-persona, problem-statement, and epic-hypothesis.


Quick Start

mkdir -p ~/Documents/UserStories
mv ~/Downloads/CLAUDE.md ~/Documents/UserStories/
cd ~/Documents/UserStories
claude

Provide persona, action, and outcome (plus context). Claude writes a full story with Given/When/Then and flags whether it should be split.


The Format

Section Fields
Use Case As a / I want to / so that
Acceptance Criteria Scenario / Given(s) / When / Then
Summary Memorable, value-focused title

Tips & Best Practices

  • Specific personas. "Trial user" beats "user."
  • "I want to" = action. Not the feature you're building.
  • "So that" = real motivation. Not a restated action.
  • One When + one Then. Multiple = the story should be split.
  • Testable Then. "Page loads in under 2s" beats "feels faster."

Common Pitfalls

  • Engineering tasks pretending to be user stories
  • "As a user" applied to every persona
  • "So that I can save" right after "I want to save"
  • 3+ When/Then pairs jammed into one story
  • Acceptance criteria nobody can test ("better UX")

$Related Playbooks

Product Management

VP/CPO Readiness Advisor

Adaptive coaching for the Director-to-VP and VP-to-CPO transition — Three Ps diagnostic, Empowerment Myth, paradigm shift, alliance building, and 4 branches (preparing, interviewing, newly landed, recalibrating).

20-30 minutes
Advanced
Product Management

Workshop Facilitation Protocol

Canonical multi-turn facilitation pattern for interactive PM workshops and advisors — one question per turn, progress labels, entry modes, and decision-point recommendations.

varies by workshop
Intermediate
Product Management

Product Metrics Reviewer

Product metrics review with trend analysis, anomaly detection, and scorecard generation

10 minutes
Intermediate
Product Management

Product Spec Writer

Write feature specifications and PRDs from problem statements with user stories and acceptance criteria

10 minutes
Intermediate
Product Management

Proto-Persona

Create a lightweight, hypothesis-driven persona in hours from existing research, market signals, and team knowledge — a working customer profile before deeper validation.

60 minutes
Beginner
Product Management

Opportunity Solution Tree (OST)

Teresa Torres' discovery framework: desired outcome → 3 opportunities → 3 solutions each → POC selection with feasibility/impact/market fit scoring and experiment design.

20 minutes
Intermediate
Product Management

Compounding PM Operating System

A persistent PM profile that learns your frameworks, vocabulary, and decision patterns across product cycles — comparing predictions to actuals so each cycle gets sharper than the last.

20 minutes
Advanced
Product Management

Acquisition Channel Advisor

Evaluate acquisition channels using unit economics, customer quality, and scalability. Decide whether to scale, test, or kill each channel with finance-backed reasoning.

10 minutes
Intermediate
Product Management

AI-Shaped Readiness Advisor

Diagnose whether your product work is 'AI-first' (efficiency) or 'AI-shaped' (strategic transformation). Score 5 competencies, identify gaps, and get a priority action plan.

15 minutes
Advanced
Product Management

SaaS Business Health Diagnostic

Diagnose SaaS business health across growth, retention, unit economics, and capital efficiency. Identify red flags by urgency and get a prioritized action plan with stage-specific benchmarks.

15 minutes
Advanced
Product Management

Context Engineering Advisor

Diagnose whether you're doing context stuffing (volume without intent) or context engineering (structure for attention). Build memory architecture, define context boundaries, and implement the Research → Plan → Reset → Implement cycle.

15 minutes
Advanced
Product Management

Altitude & Horizon Framework (PM → Director)

Understand the PM-to-Director transition through altitude (scope) and horizon (time). Diagnose which of four transition zones is creating friction and apply the Cascading Context Map when direction from above is vague.

10 minutes
Intermediate

Browse all Product Management playbooks →