create-prd
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCreate a PRD
创建 PRD
Turn the available idea, ticket, research, or pain point into a Product Requirements Document that defines what the product should do and why it matters. Keep implementation design for the downstream TDD.
Treat the PRD as a living spec: after each resolved decision, rework the affected prose and visuals so the document describes the current product coherently. It must never read like interview notes, a decision log, or a transcript.
将现有的构想、工单、研究资料或痛点转化为一份产品需求文档(PRD),明确产品应该做什么以及为什么重要。实现设计留待后续 TDD 阶段处理。
将 PRD 视为一份持续演进的规范(living spec):每当一个决策确定后,重写受影响的文字和视觉内容,使文档连贯地描述当前产品。它绝不能读起来像访谈笔记、决策日志或访谈逐字记录。
Interview protocol
访谈协议
These rules govern the foundation and solution interviews:
- Ask exactly one product question per interview message. A choice among two or three options is one question; multiple independent decisions are not.
- Ask the highest-leverage unresolved question, explain the options and tradeoffs, give a recommendation, then wait. Make it a concrete decision, never a vague request for feedback.
- Keep one decision open until it is resolved. If the user pushes back, thinks aloud, or asks a clarifying question, answer within that decision and leave the PRD unchanged.
- Flush a decision only after it is settled. Rewrite every affected section in one pass; reorder or remove stale material instead of appending an answer.
- Keep questions in product space: user experience, functionality, behavior, and success. Put implementation choices such as schemas, storage, or architecture under Deferred to TDD.
- Use takeaway headings that state the conclusion, short paragraphs, and visuals beside the claims they explain.
The interview protocol is satisfied only when each interview response contains one decision and one question, and each document edit represents a resolved decision consistently everywhere it applies. The final handoff is not an interview message and follows its referenced template instead.
以下规则适用于基础访谈和方案访谈:
- 每条访谈消息只提出一个产品问题。在两个或三个选项中选择一个也算一个问题;不能把多个彼此独立的决策混在同一个问题中。
- 每次访谈只提出当前最具杠杆效应的未决问题,解释各选项及其权衡,给出推荐,然后等待回复。问题必须具体到可以作出决策,绝不能泛泛地请求反馈。
- 在当前决策确定之前,不要提出其他决策。如果用户提出异议、进行推演或提出澄清问题,应围绕当前决策作答,并保持 PRD 不变。
- 只有在决策确定后才将其固化。一次性重写所有受影响的章节;应重新排序或删除过时内容,而不是在文末追加答案。
- 问题应保持在产品层面:用户体验、功能、行为和成功标准。架构、存储等实现选择应归入 Deferred to TDD。
- 使用表达结论的 takeaway 标题和简短段落,并将视觉内容放在其所解释的论点旁。
只有在每轮访谈回复都包含一个决策和一个问题,并且每次文档编辑都体现已确定的决策、且在所有相关位置保持一致时,才算满足该访谈协议。最终交付不是访谈消息,应改为遵循其引用的模板。
1. Ground the work
1. 夯实工作基础
Resolve the task directory from the invocation and inspect it with ; the entry may be a symlink. If the invocation contains only a problem statement, derive a stable two-to-five-word kebab-case task slug from its central product problem and use . Reuse that exact directory when it exists; otherwise create it. If a safe, meaningful slug cannot be derived, ask for the task name and stop before writing. Read every relevant file in the resolved directory in full, except research-question documents. There is no required upstream artifact: work from a detailed ticket, a research document, or the user's prompt—whatever exists.
ls -La .agent-work/tasks/<task>.agent-work/tasks/<slug>/Before drafting, read in full. It is the field and section contract for the completed PRD.
references/prd_template.mdGround claims in the available inputs and cite those inputs naturally (for example, “Per the ticket…”). Refer to upstream material instead of copying it into the PRD. Turn missing product context into interview questions rather than invented requirements.
When a product decision depends on current code, established product patterns, a design system, a library, or external facts, read and complete its evidence branch before presenting options.
references/research-and-visuals.mdThis step is complete when the exact task directory is resolved, every relevant non-research-question input has been read fully, the template has been read, known facts are traceable to their sources, and every material unknown is queued as a product question rather than filled by assumption.
根据调用信息确定任务目录,并使用 检查该目录;入口可能是符号链接(symlink)。如果调用中只包含问题陈述,请根据核心产品问题推导出一个稳定的、两到五个单词的 kebab-case 任务 slug,并使用 。如果该目录已存在,请原样复用;否则创建它。如果无法推导出安全且有意义的 slug,请询问任务名称,并在写入前停止。完整读取已确定目录中的每个相关文件,但研究问题文档除外。并不强制要求存在上游产物:可根据详细工单、研究文档或用户提示开展工作——以实际存在的材料为准。
ls -La .agent-work/tasks/<task>.agent-work/tasks/<slug>/起草前,完整阅读 。它是最终 PRD 的字段与章节约定。
references/prd_template.md所有论断都应以现有输入为依据,并自然地引用这些输入(例如,“根据工单……”)。引用上游材料,而不是将其复制到 PRD 中。对于缺失的产品背景,应转化为访谈问题,而不是凭空编写需求。
当某项产品决策取决于当前代码、既有产品模式、设计系统、库或外部事实时,阅读 ,并在给出选项前完成相应的证据分支。
references/research-and-visuals.md此步骤完成的标准是:已确定准确的任务目录;已完整阅读每个相关的非研究问题输入;已阅读模板;已知事实均可追溯到其来源;每个实质性未知项都已列为产品问题,而非通过假设填补。
2. Create the minimal skeleton
2. 创建最小骨架
Create , where is the next zero-padded index in the task directory and is a two-to-four-word kebab-case slug.
.agent-work/tasks/<task>/NN-prd-DESCRIPTION.mdNNDESCRIPTIONWrite only:
- the template frontmatter with and real task, repository, branch, and HEAD SHA values;
type: design-prd - the title;
- Problem to Solve, containing a concise first draft grounded in the inputs;
- blank placeholders for the template's success-measure, proposed-solution, and solution-details sections, preserving their exact template headings.
Do not add a preamble, setup narrative, summary, alternatives, or speculative detail yet. Immediately tell the user the exact saved artifact path, then open the foundation interview with at most one orienting sentence and one question asking whether Problem to Solve is right. Quote the section's actual text so the user reviews the document, not a paraphrase.
When markdown must demonstrate a fenced block, use a four-backtick outer fence around the three-backtick example.
This step is complete when the file has the next valid index, every frontmatter value is concrete, the skeleton contains only the allowed initial sections, and the response quotes the exact problem statement and ends with one question about it.
创建 ,其中 是任务目录中下一个补零后的索引, 是两到四个单词的 kebab-case slug。
.agent-work/tasks/<task>/NN-prd-DESCRIPTION.mdNNDESCRIPTION仅写入:
- 模板 frontmatter,其中包含 以及真实的任务、仓库、分支和 HEAD SHA 值;
type: design-prd - 标题;
- Problem to Solve,其中包含基于输入形成的简洁初稿;
- 为模板的成功衡量、建议方案和方案详情章节保留空白占位符,并保持其准确的模板标题。
此时不要添加前言、设置过程叙述、摘要、备选方案或推测性细节。立即告知用户保存产物的准确路径,然后开启基础访谈:至多使用一句引导说明,并提出一个问题,询问 Problem to Solve 是否正确。引用该章节的原文,让用户审阅的是文档,而不是改写后的概述。
当 Markdown 需要展示围栏代码块时,使用四个反引号作为外层围栏,包裹三个反引号的示例。
此步骤完成的标准是:文件使用下一个有效索引;每个 frontmatter 值均具体明确;骨架仅包含允许的初始章节;回复引用准确的问题陈述,并以一个关于该问题的提问结束。
3. Settle the foundation
3. 确定基础部分
Resolve the foundation in order, waiting for the user at each gate.
- Problem to Solve. Iterate on the problem statement until the user confirms it. Then rewrite the section around the agreed problem.
- What success looks like. Propose one recommended success lever or a small set of meaningfully different options. Fit it to the work: it may be a product metric, adoption signal, benchmark, reliability or latency target, or qualitative read. Include experiments or feature flags when relevant. If a very small change has no honest measure, explain that and record “no meaningful measure” only with the user's agreement.
Treat the success lever as part of the product definition of done. Open the solution interview only after the user has settled both foundation sections.
This step is complete when the user has explicitly accepted the problem statement and the success section, both sections have been rewritten into cohesive document prose, and no foundation question remains unresolved.
按顺序确定基础部分,并在每个关卡等待用户。
- Problem to Solve. 迭代优化问题陈述,直到用户确认。随后围绕双方认可的问题重写该章节。
- What success looks like. 提出一个推荐的成功衡量杠杆(success lever),或少量存在实质差异的选项。根据工作内容进行调整:可以是产品指标、采用信号、基准、可靠性或延迟目标,也可以是定性判断。适当时纳入实验或 feature flags。对于非常小的改动,如果没有诚实且合理的衡量方式,应如实说明,并且只有在用户同意后才记录“no meaningful measure”。
将成功衡量杠杆视为产品完成定义的一部分。只有用户确定两个基础章节后,才开启方案访谈。
此步骤完成的标准是:用户已明确认可问题陈述和成功衡量章节;两个章节均已重写为连贯的文档文字;且不存在尚未解决的基础问题。
4. Walk the solution tree
4. 遍历解决方案决策树
Interview one product decision at a time. For each decision:
- Present the decision, two or three genuinely distinct options when useful, their tradeoffs, and your recommendation.
- Continue the same decision loop through clarification and pushback without editing the PRD.
- Once resolved, rework Solution Details and every other affected section so the living spec absorbs the choice.
- Let that resolution determine the next highest-leverage decision.
Maintain the completed template as the solution emerges:
- Keep Proposed Solution as the high-level chosen approach.
- Put credible rejected approaches and their rationale in Alternative Solutions Considered.
- Describe the chosen experience and behavior in Solution Details using takeaway headings.
- Put explicit product exclusions in Out of Scope.
- Put implementation-only choices in Deferred to TDD.
When a decision is visual, or a visual would communicate it more precisely than prose, follow the mockup branch in . Pause the question flow while the user requests mockup changes; resume only after the mockup is approved. Keep every embedded winning mockup synchronized with the prose.
references/research-and-visuals.mdThis step is complete when every material product decision exposed by the inputs and interview is resolved, explicitly out of scope, or deferred to TDD; the chosen flow and its meaningful states are described; all affected sections agree; and every retained visual shows the current approved behavior.
每次访谈一个产品决策。对于每项决策:
- 说明该决策;在确有帮助时,给出两个或三个真正不同的选项、各项权衡以及推荐。
- 在澄清和异议过程中继续沿用同一决策循环,不编辑 PRD。
- 决策确定后,重写 Solution Details 及所有其他受影响章节,让 living spec 吸收该选择。
- 由本次决策的解决结果确定下一个最具杠杆效应的决策。
随着方案逐步明确,持续维护完整的模板:
- 将 Proposed Solution 保持为高层级的已选方案。
- 将可信的未采用方案及其理由放入 Alternative Solutions Considered。
- 使用 takeaway 标题,在 Solution Details 中描述所选体验和行为。
- 在 Out of Scope 中明确列出产品排除项。
- 将仅涉及实现的选择放入 Deferred to TDD。
如果某项决策属于视觉决策,或者视觉内容比文字能更准确地传达该决策,请遵循 中的 mockup 分支。当用户要求修改 mockup 时,暂停问题流程;仅在 mockup 获批后恢复。让每个内嵌的最终 mockup 与正文保持同步。
references/research-and-visuals.md此步骤完成的标准是:输入和访谈所暴露的每项实质性产品决策均已解决、明确排除或延期至 TDD;已描述选定流程及其重要状态;所有受影响章节彼此一致;所有保留的视觉内容都反映当前已批准的行为。
5. Run the whole-solution gate
5. 执行整体方案关卡
Tell the user the solution is complete enough for a whole-document review and ask exactly one question: have them read Solution Details from top to bottom and confirm that it hangs together. Wait for explicit approval. Treat requested changes as reopened decisions, incorporate them through the same interview protocol, and repeat the gate when they materially change the solution.
This step is complete when the user has explicitly approved the complete Solution Details after its latest material revision and no product issue raised during review remains open.
告知用户,方案已足够完整,可以进行整篇文档审阅,并只提出一个问题:请用户从头到尾阅读 Solution Details,确认其逻辑连贯。等待明确批准。将所请求的更改视为重新开启的决策,按照同一访谈协议纳入,并在更改对方案有实质影响时重复此关卡。
此步骤完成的标准是:在最新一次实质性修订后,用户已明确批准完整的 Solution Details,且审阅中提出的每项产品问题均已解决。
6. Audit and hand off
6. 审计并交付
Read the finished PRD in full and audit it against :
references/prd_template.md- frontmatter values are concrete and correct;
- the problem, success measure, chosen solution, alternatives, details, and scope agree;
- headings communicate takeaways and the body reads as a spec rather than a conversation;
- upstream evidence is referenced without needless duplication;
- implementation detail appears only where product behavior requires it or under Deferred to TDD;
- mockups and diagrams are current, adjacent to the behavior they explain, and use valid artifact paths.
Repair every failed check, repeating the whole-solution gate if a repair changes product meaning. Then read and follow it exactly. Include an artifact permalink when one is available.
references/prd_final_answer_resolved.mdThis workflow is complete only when every audit item passes, the approved PRD is saved at the promised path, and the final response uses the handoff template to point to both the artifact and the TDD phase.
完整阅读最终 PRD,并依据 对其进行审计:
references/prd_template.md- frontmatter 值具体且正确;
- 问题、成功衡量方式、选定方案、备选方案、详情和范围彼此一致;
- 标题能表达结论,正文读起来像规范而不是对话;
- 引用上游证据,但不进行不必要的重复;
- 仅在产品行为确有需要时,或在 Deferred to TDD 下包含实现细节;
- mockup 和图示保持最新、紧邻其解释的行为,并使用有效的产物路径。
修复每一项未通过的检查;如果修复改变了产品含义,则重复整体方案关卡。随后阅读 并严格遵循。获得可用链接时,包含产物永久链接(artifact permalink)。
references/prd_final_answer_resolved.md只有在每项审计检查均通过、获批的 PRD 已保存在承诺的路径中,且最终回复使用交付模板同时指向产物和 TDD 阶段时,才能认为该工作流完成。