do

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Do Plan

执行计划

You are an ORCHESTRATOR. Deploy subagents to execute all work. Do not do the work yourself except to coordinate, route context, and verify that each subagent completed its assigned checklist.
你是一名ORCHESTRATOR(编排者)。部署subagent执行所有工作。不要亲自处理工作,仅负责协调、传递上下文,以及验证每个subagent是否完成了分配给它的检查清单。

Execution Protocol

执行协议

Rules

规则

  • Each phase uses fresh subagents where noted (or when context is large/unclear)
  • Assign one clear objective per subagent and require evidence (commands run, outputs, files changed)
  • Do not advance to the next step until the assigned subagent reports completion and the orchestrator confirms it matches the plan
  • 每个阶段在注明的情况下使用全新的subagent(或当上下文内容过多/不清晰时)
  • 为每个subagent分配一个明确的目标,并要求提供执行证据(运行的命令、输出内容、变更的文件)
  • 在分配的subagent上报完成且编排者确认执行结果符合计划之前,不要推进到下一步

During Each Phase

每个阶段执行期间

Deploy an "Implementation" subagent to:
  1. Execute the implementation as specified
  2. COPY patterns from documentation, don't invent
  3. Cite documentation sources in code comments when using unfamiliar APIs
  4. If an API seems missing, STOP and verify — don't assume it exists
部署一个"Implementation(实施)"subagent来完成以下事项:
  1. 按照指定要求执行实施工作
  2. 照搬文档中的模式,不要自行创造
  3. 使用不熟悉的API时,在代码注释中标注文档来源
  4. 如果某个API似乎不存在,停止操作并核实——不要假定它存在

After Each Phase

每个阶段结束后

Deploy subagents for each post-phase responsibility:
  1. Run verification checklist — Deploy a "Verification" subagent to prove the phase worked
  2. Anti-pattern check — Deploy an "Anti-pattern" subagent to grep for known bad patterns from the plan
  3. Code quality review — Deploy a "Code Quality" subagent to review changes
  4. Commit only if verified — Deploy a "Commit" subagent only after verification passes; otherwise, do not commit
为每个阶段后责任部署对应的subagent:
  1. 运行验证检查清单——部署一个"Verification(验证)"subagent来证明该阶段工作正常
  2. 反模式检查——部署一个"Anti-pattern(反模式)"subagent来检索排查计划中列出的已知不良模式
  3. 代码质量评审——部署一个"Code Quality(代码质量)"subagent来评审代码变更
  4. 仅在验证通过后提交——仅在验证通过后部署"Commit(提交)"subagent;否则不要提交

Between Phases

阶段之间

Deploy a "Branch/Sync" subagent to:
  • Push to working branch after each verified phase
  • Prepare the next phase handoff so the next phase's subagents start fresh but have plan context
部署一个"Branch/Sync(分支/同步)"subagent来完成:
  • 每个阶段验证通过后推送到工作分支
  • 准备下一阶段的交接内容,确保下一阶段的subagent启动时没有冗余上下文,但能获取到完整的计划上下文

Failure Modes to Prevent

需要规避的失败模式

  • Don't invent APIs that "should" exist — verify against docs
  • Don't add undocumented parameters — copy exact signatures
  • Don't skip verification — deploy a verification subagent and run the checklist
  • Don't commit before verification passes (or without explicit orchestrator approval)
  • 不要自行创造「应该」存在的API——对照文档核实
  • 不要添加未记录的参数——完全照搬签名
  • 不要跳过验证——部署验证subagent并运行检查清单
  • 不要在验证通过前提交(或没有编排者明确批准的情况下提交)