Loading...
Loading...
Compare original and translation side by side
git rev-parse HEADgit rev-parse HEADpr-syncundefinedundefined
**Step 2: Create TodoWrite**
Create TodoWrite with ALL tasks:
**Step 3: Gather scene-setting context**
- Current branch status (`git status`)
- Capture BASE_SHA: `git rev-parse HEAD`
- Relevant existing code patterns
- Project conventions from CLAUDE.md
- Dependencies and setup requirements
This context gets passed to EVERY subagent.
**Gate**: All tasks extracted with full text. BASE_SHA captured. Scene-setting context gathered. Proceed only when gate passes.
**步骤2:创建TodoWrite**
创建包含所有任务的TodoWrite:
**步骤3:收集场景上下文**
- 当前分支状态(`git status`)
- 捕获BASE_SHA:执行`git rev-parse HEAD`命令
- 相关现有代码模式
- 来自CLAUDE.md的项目约定
- 依赖项与设置要求
该上下文将传递给**所有**子代理。
**关卡要求**:所有任务的完整文本已提取,BASE_SHA已捕获,场景上下文已收集。仅当满足要求时方可进入下一阶段。./implementer-prompt.md./adr-reviewer-prompt.md"ADR compliance failing after 3 attempts. Issues: [list]. Need human decision."
./code-quality-reviewer-prompt.md"Quality review failing after 3 attempts. Issues: [list]. Need human decision."
Task [N]: [Title] -- COMPLETE
ADR compliance: PASS
Code quality: PASS./implementer-prompt.md./adr-reviewer-prompt.md"ADR合规性审核3次未通过。问题:[列表]。需人工决策。"
./code-quality-reviewer-prompt.md"质量审核3次未通过。问题:[列表]。需人工决策。"
任务[N]:[标题] -- 已完成
ADR合规性:通过
代码质量:通过/pr-sync/pr-sync| Rationalization | Why It's Wrong | Required Action |
|---|---|---|
| "This task is simple, skip ADR review" | Simple tasks still miss requirements | Run both review stages |
| "Subagent can read the plan itself" | File reading wastes tokens, context pollution | Provide full task text in dispatch |
| "Reviews passed, skip final integration check" | Per-task reviews miss cross-task issues | Run final integration review |
| "I'll fix this small issue myself instead of dispatching" | Controller context pollution breaks orchestration | Dispatch fix subagent |
| "Tasks 2 and 3 are related, combine them" | Combined tasks break isolation and review clarity | One task per subagent, always |
| 合理化借口 | 问题所在 | 要求操作 |
|---|---|---|
| “这个任务很简单,跳过ADR审核” | 简单任务仍可能遗漏需求 | 运行两阶段审核 |
| “子代理可以自行读取计划” | 文件读取浪费Token,导致上下文污染 | 在调度时提供完整任务文本 |
| “审核已通过,跳过最终集成检查” | 单任务审核无法发现跨任务问题 | 运行最终集成审核 |
| “我自己修复这个小问题,不调度子代理” | 控制器上下文污染破坏编排逻辑 | 调度修复子代理 |
| “任务2和3相关,合并它们” | 合并任务破坏隔离性与审核清晰度 | 始终为每个任务分配独立子代理 |
implementer-prompt.mdadr-reviewer-prompt.mdcode-quality-reviewer-prompt.mdimplementer-prompt.mdadr-reviewer-prompt.mdcode-quality-reviewer-prompt.md