iterate-prd
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseIterate PRD
迭代 PRD
Refine an existing Product Requirements Document without losing its decision history, requirement identity, or relationship to evidence.
Run a decision loop: establish the facts, resolve one product decision, repaint the affected parts of the PRD, validate the result, and return control to the user. A question, objection, or thought-in-progress continues the discussion; it becomes an edit only when the decision is settled.
Keep the work in product space: user experience, observable behavior, scope, and success. Record implementation-only questions under unless they expose a product decision.
Deferred to TDD在完善现有产品需求文档(PRD)的同时,不丢失其决策历史、需求标识或与证据的关联。
运行一个决策循环:确定事实、解决一个产品决策、重写 PRD 中受影响的部分、验证结果,然后将控制权交回用户。提问、异议或尚未成形的想法会延续讨论;只有在决策确定后,才会转化为编辑。
将工作限定在产品领域:用户体验、可观察行为、范围和成功标准。除非某个仅涉及实现的问题暴露出产品决策,否则将其记录在 下。
Deferred to TDD1. Establish the working set
1. 确定工作集
Resolve the task directory and PRD path from the invocation or conversation. If either is genuinely ambiguous, ask one precise question and wait.
For an directory, use a symlink-following directory listing such as ; inventorying it with a non-following glob can silently miss its contents. Read every file in the task directory completely, including the PRD, ticket or task, research, design discussion, diagrams, mockups, and later notes. Read every additional path named by the user. Preserve the PRD's path, frontmatter, and established structure.
.agent-work/tasks/<task>ls -LaApply this authority order when artifacts disagree:
active user decision > PRD > design discussion > research > ticketAn unresolved comment is feedback to evaluate, not an authority that silently overrides the PRD.
Completion criterion: the exact PRD, every task-directory file, every user-named source, and the newest applicable decisions are accounted for.
从调用方式或对话中确定任务目录和 PRD 路径。如果两者确实存在歧义,提出一个准确的问题并等待。
对于 目录,使用可跟随符号链接的目录列表命令,例如 ;使用不跟随链接的 glob 清点目录时,可能会悄无声息地遗漏内容。完整读取任务目录中的每个文件,包括 PRD、ticket 或 task、研究资料、设计讨论、图示、模型稿和后续笔记。读取用户指定的每个其他路径。保留 PRD 的路径、frontmatter 和既有结构。
.agent-work/tasks/<task>ls -La当各项材料相互冲突时,适用以下权威顺序:
active user decision > PRD > design discussion > research > ticket未解决的评论是需要评估的反馈,不能作为权威来源悄无声息地覆盖 PRD。
完成标准:准确涵盖目标 PRD、任务目录中的所有文件、用户指定的所有来源,以及最新适用的决策。
2. Inventory every input
2. 盘点所有输入
Build a private resolution ledger for every requested change, supplied comment, fetched artifact comment, contradiction, and open product question. Before processing comments or deciding whether feedback requires research, read Feedback, evidence, and resolution.
If the user supplied neither feedback nor a direction, ask exactly one question offering these branches:
- apply specific feedback;
- continue resolving the solution one decision at a time; or
- surface gaps in the PRD.
Then wait. If the user supplied clear instructions, continue without asking them to repeat those instructions.
Completion criterion: every input has one ledger entry with its source, target, classification, evidence need, and current disposition; no supplied or discoverable comment is omitted.
为每项请求的变更、用户提供的评论、获取到的产物评论、矛盾和未解决的产品问题建立一个内部专用的解决台账。在处理评论或判断反馈是否需要研究之前,阅读 反馈、证据与解决方式。
如果用户既未提供反馈,也未给出方向,则恰好提出一个问题,并提供以下选项:
- 应用具体反馈;
- 继续逐项解决产品决策;或
- 找出 PRD 中的缺口。
然后等待。如果用户给出了明确指示,无需让其重复这些指示,直接继续。
完成标准:每项输入在台账中都有且仅有一个条目,注明来源、目标、分类、证据需求和当前处置;不得遗漏任何已提供或可发现的评论。
3. Ground claims in evidence
3. 以证据为基础
Treat statements of desired behavior as product decisions. Verify claims about current behavior, existing patterns, file paths, constraints, or feasibility against the named sources and codebase.
Use focused code research when a decision depends on existing functionality. Independent questions may be delegated concurrently to the available locator, analyzer, or pattern-research agents; ask each for concrete file-and-line evidence. Straightforward copy, wording, or preference feedback needs no code search.
When evidence is insufficient, keep the ledger item open and ask one blocking question or report the exact evidence gap. Completion criterion: every factual premise used to accept, reject, or reshape feedback is either directly evidenced or explicitly identified as an assumption for the user to decide.
将有关期望行为的陈述视为产品决策。根据指定来源和代码库,验证有关当前行为、既有模式、文件路径、约束或可行性的主张。
当某项决策依赖现有功能时,进行有针对性的代码研究。彼此独立的问题可以并发委派给可用的 locator、analyzer 或 pattern-research Agent;要求每个 Agent 提供具体的文件及行号证据。对于直接明了的文案、措辞或偏好反馈,无需搜索代码。
证据不足时,保持台账项为开放状态,并提出一个阻塞性问题或报告确切的证据缺口。完成标准:用于接受、拒绝或调整反馈的每一项事实前提,要么有直接证据支持,要么被明确标记为需由用户决定的假设。
4. Resolve one product decision
4. 解决一个产品决策
Choose the highest-leverage unresolved ledger item. If it is already unambiguous and authorized, mark it resolved. Otherwise:
- state one decision;
- offer two or three materially distinct options with tradeoffs;
- recommend one option from the user and product evidence; and
- end with exactly one question, then wait.
Clarifying questions and pushback remain in this loop. Update the PRD only after the user has chosen, confirmed, or supplied an unambiguous instruction. A request to apply a clearly specified set of changes resolves that set as one authorized batch; ambiguous items still return to the one-decision loop.
For a visual decision, read Visual iteration before presenting options or editing mockups.
Completion criterion: the selected item or authorized batch has an explicit disposition and rationale; every unresolved ambiguity remains visible in the ledger rather than being guessed into the PRD.
选择影响力最大的未解决台账项。如果它已经明确且获得授权,则标记为已解决。否则:
- 陈述一个决策;
- 提供两到三个实质不同且带有权衡的选项;
- 根据用户和产品证据推荐一个选项;以及
- 以恰好一个问题结束,然后等待。
澄清问题和异议反馈始终保留在此循环中。只有在用户选择、确认或给出明确无歧义的指示后,才能更新 PRD。要求应用一组明确指定的变更时,该组变更作为一个已授权批次解决;有歧义的项仍需回到一次一个决策的循环。
对于视觉决策,在呈现选项或编辑模型稿之前,阅读 可视化迭代。
完成标准:所选项或已授权批次具有明确的处置和理由;每个未解决的歧义都清晰保留在台账中,而不是通过猜测写入 PRD。
5. Repaint the PRD
5. 重写 PRD
Edit the document at its original path. Rework the affected sections in place so the result reads as a coherent current specification, never as a Q&A transcript, comment log, or revision appendix.
Before editing requirements, acceptance criteria, scope, success measures, or dependencies, read PRD integrity. Apply every coupled update identified there. Keep implementation design in .
Deferred to TDDUse takeaway headings that state the section's conclusion. Keep paragraphs short and place each diagram or mockup beside the behavior it explains. Update visual artifacts and their document links when the resolved behavior changes what users see.
Completion criterion: every resolved ledger item is represented in the appropriate PRD sections; all affected requirements, acceptance criteria, scope boundaries, success measures, dependencies, rollout constraints, and visuals agree with one another.
在原路径编辑文档。就地重构受影响章节,使最终内容读起来是一份连贯的当前规范,而不能是问答记录、评论日志或修订附录。
在编辑需求、验收标准、范围、成功指标或依赖项之前,阅读 PRD 完整性。应用其中识别出的每一项关联更新。将实现设计保留在 中。
Deferred to TDD使用能够表达章节结论的结论式标题。段落应保持简短,并将每张图示或模型稿放在其所说明行为旁边。当已解决的行为改变用户所见内容时,更新视觉产物及其文档链接。
完成标准:每个已解决的台账项都出现在 PRD 的相应章节;所有受影响的需求、验收标准、范围边界、成功指标、依赖项、发布约束和视觉内容彼此一致。
6. Validate the revision
6. 验证修订
Run the exhaustive checklist in PRD integrity. Re-read the complete edited PRD and compare it with the resolution ledger and affected artifacts. Repair each failure before reporting completion.
For artifact comments, reply to or change comment status only within the user's explicit authorization, and only after the corresponding document change or evidence response is complete.
Completion criterion: every ledger item has a final or explicitly open disposition; every incorporated change is visible and internally consistent; every factual claim is supported; every changed acceptance statement is observable; every affected mockup and link resolves; and authorized comment actions match their outcomes.
运行 PRD 完整性 中的详尽检查清单。重新通读编辑后的完整 PRD,并将其与解决台账和受影响的产物进行对照。在报告完成前修复每一处问题。
对于产物评论,只有在用户明确授权的情况下,才能回复评论或更改评论状态,并且必须先完成相应的文档修改或证据回复。
完成标准:每个台账项都有最终或明确开放的处置;每项纳入的变更均清晰可见且内部一致;每项事实主张都有依据;每项更改后的验收陈述都可观察;每份受影响的模型稿和链接均可正常解析;获授权的评论操作与其结果一致。
7. Return control or hand off
7. 交回控制权或移交
After one resolved decision or authorized batch, report what changed and ask exactly one question: If a specific unresolved decision is the natural next step, present that single decision with options and a recommendation instead. Wait for the user's answer.
What would you like to work on next?When the user says the PRD is done, or exhaustive validation shows that no material product decision remains, read PRD handoff. Select the permalink or local-path branch, substitute only the indicated value, and return that template without an added summary.
Completion criterion: an in-progress run ends at one clear user decision point; a completed run ends with exactly one applicable handoff template.
在解决一个决策或一个已授权批次后,报告所做的更改,并恰好提出一个问题: 如果某个特定的未解决决策是自然的下一步,则改为呈现该项单一决策、相关选项和推荐方案。等待用户回答。
What would you like to work on next?当用户表示 PRD 已完成,或详尽验证表明不再存在实质性的产品决策时,阅读 PRD 移交。选择 permalink 或 local-path 分支,仅替换指定的变量,然后原样返回该模板,不添加额外摘要。
完成标准:进行中的运行结束于一个清晰的用户决策节点;已完成的运行则以恰好一个适用的移交模板结束。