user-story
它能做什么
这项技能撰写用户故事,说明谁会受益、他们想做什么、为什么,随后附上可测试格式的验收标准。它适合把工作交给开发团队的产品经理。
适用场景
- ✓当某个用户需求已准备好转化为有清晰结果的开发工作的时候。
- ✓当工程师和产品需要形成共同理解,并有可测试的成功条件的时候。
- ✓当你需要在工作开始前,就涵盖边缘情况的验收标准的时候。
技能链接
https://github.com/deanpeters/Product-Manager-Skills/blob/main/skills/user-story/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请为我们银行应用中通过短信重置密码的功能撰写用户故事,并包括账户锁定这一边缘情况。”
每周 5 个新技能,1 分钟读完。
工作原理
它会先询问用户是谁、他们想达成什么,然后按照“作为用户,我想要某个操作,以便达成某个结果”的格式起草故事,并附上 Gherkin 风格的验收标准。
技术内容(原始 SKILL.md)
作者在 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
常见问题
用户故事就是功能规格吗?
不是。它是一个对话的起点,记录谁会受益、他们需要什么、为什么重要,以及如何判断它是否有效。
我可以指出边缘情况吗?
可以。你指出的边缘情况(例如账户锁定)会被纳入验收标准。
如果我还不了解用户怎么办?
技能会在起草前询问用户是谁,你可以先回答这个问题。
详情
作者的原始描述
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.
热度
- GitHub 星标
- 7.8k
- 排名
- #12822
- 许可证
- —
- 更新时间
- 2026/10/15
评论
- …
同一仓库的更多技能
acquisition-channel-advisor
7.8k帮你的智能体用客户获取成本、客户终身价值和回本时间,判断某个营销渠道值得扩大、测试还是停止。
agent-orchestration-advisor
7.8k帮你的智能体把复杂的产品任务规划为多个并行工作的专业 AI 智能体,明确交接环节并进行监控。
ai-shaped-readiness-advisor
7.8k帮你的智能体判断产品团队是只用 AI 加速旧任务,还是已围绕 AI 重新设计工作,以及下一步该构建什么。
altitude-horizon-framework
7.8k通过“高度”和“视野”两个概念,解释从产品经理到总监的转变,并帮你找出摩擦的来源。