Generate a lean, problem-first PRD and hand off to /plan for implementation planning.
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-ecc-c7f907109c54 ,按照其中的说明把「plan-prd」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Produces a Product Requirements Document — the requirements-phase artifact of the SDLC. Captures what must be true for success and why, and stops before how. Implementation decomposition is delegated to /plan.
Input: $ARGUMENTS
| This command does | This command does NOT do |
|---|---|
| Frame the problem and users | Design the architecture |
| Capture success criteria and scope | Pick files or write patterns |
| List open questions and risks | Enumerate implementation tasks |
Write .claude/prds/{name}.prd.md | Produce an implementation plan — that's /plan |
If you find yourself writing implementation detail, stop and cut it. It belongs in /plan.
Anti-fluff rule: When information is missing, write TBD — needs validation via {method}. Never invent plausible-sounding requirements.
Four phases. Each phase is a single gate — ask the questions, wait for the user, then move on. No nested loops, no parallel research ceremony.
If $ARGUMENTS is empty, ask:
What do you want to build? One or two sentences.
If provided, restate in one sentence and ask:
I understand: {restated}. Correct, or should I adjust?
Then ask the framing questions in a single set:
- Who has this problem? (specific role or segment)
- What is the observable pain? (describe behavior, not assumed needs)
- Why can't they solve it with what exists today?
- Why now? — what changed that makes this worth doing?
Wait for the user. Do not proceed without answers (or explicit "skip").
Ask for evidence. This is the shortest phase and the most load-bearing:
What evidence do you have that this problem is real and worth solving? (user quotes, support tickets, metrics, observed behavior, failed workarounds — anything concrete)
If the user has none, record the PRD's Evidence section as Assumption — needs validation via {user research | analytics | prototype}. This keeps the PRD honest.
Scope and hypothesis in a single set:
- Hypothesis — Complete: We believe {capability} will {solve problem} for {users}. We'll know we're right when {measurable outcome}.
- MVP — The minimum needed to test the hypothesis?
- Out of scope — What are you explicitly not building (even if users ask)?
- Open questions — Uncertainties that could change the approach?
Wait for responses.
Create the directory if needed, write the PRD, and report.
mkdir -p .claude/prds
Output path: .claude/prds/{kebab-case-name}.prd.md
# {Product / Feature Name}
## Problem
{2–3 sentences: who has what problem, and what's the cost of leaving it unsolved?}
## Evidence
- {User quote, data point, or observation}
- {OR: "Assumption — needs validation via {method}"}
## Users
- **Primary**: {role, context, what triggers the need}
- **Not for**: {who this explicitly excludes}
## Hypothesis
We believe **{capability}** will **{solve problem}** for **{users}**.
We'll know we're right when **{measurable outcome}**.
## Success Metrics
| Metric | Target | How measured |
|---|---|---|
| {primary} | {number} | {method} |
## Scope
**MVP** — {the minimum to test the hypothesis}
**Out of scope**
- {item} — {why deferred}
## Delivery Milestones
<!-- Business outcomes, not engineering tasks. /plan turns each into a plan. -->
<!-- Status: pending | in-progress | complete -->
| # | Milestone | Outcome | Status | Plan |
|---|---|---|---|---|
| 1 | {name} | {user-visible change} | pending | — |
| 2 | {name} | {user-visible change} | pending | — |
## Open Questions
- [ ] {question that could change scope or approach}
## Risks
| Risk | Likelihood | Impact | Mitigation |
|---|---|---|---|
---
*Status: DRAFT — requirements only. Implementation planning pending via /plan.*
PRD created: .claude/prds/{name}.prd.md
Problem: {one line}
Hypothesis: {one line}
MVP: {one line}
Validation status:
Problem {validated | assumption}
Users {concrete | generic — refine}
Metrics {defined | TBD}
Open questions: {count}
Next step: /plan .claude/prds/{name}.prd.md
→ /plan will pick the next pending milestone and produce an implementation plan.
/plan <prd-path> — consume the PRD and produce an implementation plan for the next pending milestone.tdd-workflow skill — implement the plan test-first./pr — open a PR that references the PRD and plan./plan step.Background on the staged markdown flow: docs/PLAN-PRD-PATTERN.md.