planning
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePRD Construction
PRD构建
Purpose
目的
The is the single source of truth for remaining work. It is a frozen dependency graph created in PLAN phase before any execution. It captures every possible item — steps, substeps, edge cases, corner cases, dependencies, transitive dependencies, unknowns, assumptions to validate, decisions, trade-offs, factors, variables, acceptance criteria, scenarios, failure paths, recovery paths, integration points, state transitions, race conditions, concurrency concerns, input variations, output validations, error conditions, boundary conditions, configuration variants, environment differences, platform concerns, backwards compatibility, data migration, rollback paths, monitoring checkpoints, verification steps.
.prdLonger is better. Missing items means missing work. Err towards every possible item.
.prd越详细越好。遗漏事项意味着遗漏工作。尽量涵盖所有可能的事项。
File Rules
文件规则
Path: exactly in current working directory. No variants (.prd-rename, .prd-temp, .prd-backup), no subdirectories, no path transformations, no extensions. Valid JSON.
./.prd路径:当前工作目录下必须为。不允许变体(如.prd-rename、.prd-temp、.prd-backup),不允许子目录,不允许路径转换,不允许扩展名。必须是有效的JSON格式。
./.prdItem Schema
事项 Schema
json
{
"id": "descriptive-kebab-id",
"subject": "Imperative verb describing outcome",
"status": "pending",
"description": "What must be true when this is done",
"blocking": ["ids-this-prevents"],
"blockedBy": ["ids-that-must-finish-first"],
"effort": "small|medium|large",
"category": "feature|bug|refactor|docs|infra",
"acceptance": ["measurable criteria"],
"edge_cases": ["known complications"]
}Subject: imperative form — "Fix auth bug", "Add webhook support", "Consolidate templates". Never "Bug: auth" or "New feature".
Blocking/blockedBy: bidirectional. If A blocks B, then B blockedBy A. Every dependency explicit.
Status: → → . No other values.
pendingin_progresscompletedEffort: (one attempt, <15min), (2 rounds, <45min), (multiple rounds, 1h+).
smallmediumlargejson
{
"id": "descriptive-kebab-id",
"subject": "Imperative verb describing outcome",
"status": "pending",
"description": "What must be true when this is done",
"blocking": ["ids-this-prevents"],
"blockedBy": ["ids-that-must-finish-first"],
"effort": "small|medium|large",
"category": "feature|bug|refactor|docs|infra",
"acceptance": ["measurable criteria"],
"edge_cases": ["known complications"]
}Subject:祈使句式——例如“修复认证漏洞”、“添加Webhook支持”、“整合模板”。禁止使用“Bug: 认证”或“新功能”这类表述。
Blocking/blockedBy:双向关联。如果A阻塞B,那么B的blockedBy字段必须包含A。所有依赖关系必须明确声明。
Status:仅允许 → → 这几种值,无其他选项。
pendingin_progresscompletedEffort:(一次尝试,耗时<15分钟)、(两轮操作,耗时<45分钟)、(多轮操作,耗时1小时以上)。
smallmediumlargeConstruction
构建流程
- Enumerate every possible unknown as a work item.
- Map every possible dependency (blocking/blockedBy).
- Group independent items into parallel waves (max 3 per wave).
- Capture every possible edge case as either a separate item or an edge_case field.
- Write to disk.
./.prd - FREEZE — no additions or reorganizations after creation. Only mutation: removing finished items.
- 将所有可能的未知项列为工作项。
- 梳理所有可能的依赖关系(blocking/blockedBy)。
- 将独立事项分组为并行批次(每批最多3个)。
- 将所有可能的边缘情况作为单独事项或填入edge_case字段。
- 将文件写入磁盘。
.prd - 冻结——创建后不允许添加或重组内容。仅允许修改:移除已完成的事项。
Execution
执行流程
- Find all items with empty
pending.blockedBy - Launch ≤3 parallel subagents () per wave.
subagent_type: gm:gm - Each subagent completes one item, verifies via witnessed execution.
- On completion: remove item from , write updated file.
.prd - Check for newly unblocked items. Launch next wave.
- Continue until is empty.
.prd
Never execute independent items sequentially. Never launch more than 3 at once.
- 找出所有状态且
pending为空的事项。blockedBy - 每批启动最多3个并行子代理()。
subagent_type: gm:gm - 每个子代理完成一个事项,并通过可观测的执行过程进行验证。
- 完成后:从中移除该事项,写入更新后的文件。
.prd - 检查是否有新的未阻塞事项。启动下一批次。
- 持续执行直到文件为空。
.prd
禁止按顺序执行独立事项。禁止同时启动超过3个事项。
Completion
完成标准
.prd.prd当处于COMPLETE状态时,文件必须为空——无pending或in_progress状态的事项。当仍有剩余事项时,停止钩子会阻止会话结束。空的文件意味着所有工作已完成。
.prd.prdDo Not Use
禁用场景
Skip this skill if the task is trivially single-step (under 5 minutes, no dependencies, no unknowns).
如果任务是极其简单的单步骤操作(耗时5分钟以内,无依赖关系,无未知项),则跳过此技能。