关于 create-prd
create-prd 是一项将功能请求整理为详细产品需求文档的规划技能。它先通过提问明确范围,再生成并保存文档,强调编号要求和可验证的验收标准。
主要功能
- 01交互式澄清功能需求
- 02提供 3–5 个字母选项问题
- 03按结构生成 PRD
- 04保存至 `prds/[feature-name].md`
- 05要求编号且验收标准可验证
适用场景
- 01澄清含糊的功能请求
- 02在开发前拟定需求
- 03保存 PRD 以便交接开发
安装
复制下面的命令,在终端中运行。
$
npx skills add https:/ / github.com/ richtabor/ agent-skills --skill create-prd安装后在 Claude Code 中输入/create-prd确认已加载。
详细介绍
创建 PRD
通过交互式规划生成产品需求文档。
流程
1. 了解功能
阅读用户的功能请求。如果不清楚,请询问简要描述。
2. 提出澄清问题
提出 3-5 个澄清问题,以了解范围和需求。
使用字母选项格式:
1. Who is the primary user?
A) Logged-in users only
B) All visitors
C) Admin users
2. Should this persist across sessions?
A) Yes, save to database
B) No, session only
用户可以用组合形式回复,例如“1A,2B”。
3. 生成 PRD
收到回答后,创建包含以下部分的详细 PRD:
# PRD: [Feature Name]
## Introduction
Brief overview of the feature and why it's needed.
## Goals
- Primary goal
- Secondary goals
## User Stories
### [Story Title]
**Description:** As a [user], I want [action] so that [benefit].
**Acceptance Criteria:**
- [ ] Specific, verifiable criterion
- [ ] Another criterion
- [ ] Typecheck passes
- [ ] (UI changes) Verify in browser
## Functional Requirements
1. Requirement one
2. Requirement two
## Non-Goals
What this feature explicitly won't do.
## Design Considerations
UI/UX notes, mockup descriptions.
## Technical Considerations
Architecture notes, dependencies, potential challenges.
## Success Metrics
How to measure if this feature is successful.
## Open Questions
Any unresolved decisions.
4. 保存 PRD
保存到 prds/[feature-name].md(如有需要,创建 prds/ 目录)。
PRD saved to prds/[feature-name].md
Next: Run /create-prd-json to convert to executable format.
指南
- 明确、无歧义地表达
- 面向初级开发者和 AI Agent 编写
- 避免使用行话
- 为需求编号,方便引用
- 验收标准必须可验证,不得含糊
- 好:“按钮显示‘保存’文本”
- 不好:“按钮看起来不错”
评论
支持 Markdown