todo-resolve
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseResolve approved todos using parallel processing, document lessons learned, then clean up.
Only todos are resolved. todos are skipped — they haven't been triaged yet. If pending todos exist, list them at the end so the user knows what was left behind.
readypending通过并行处理解决已获批的待办事项,记录经验教训,然后进行清理。
仅处理状态的待办事项。状态的待办事项会被跳过——它们尚未完成分类。如果存在pending状态的待办事项,需在末尾列出,以便用户了解未处理的内容。
readypendingWorkflow
工作流
1. Analyze
1. 分析
Scan and legacy . Partition by status:
.context/compound-engineering/todos/*.mdtodos/*.md- (status field or
readyin filename): resolve these.-ready- - : skip. Report them at the end.
pending - : ignore, already done.
complete
If a specific todo ID or pattern was passed as an argument, filter to matching todos only (still must be ).
readyResidual actionable work from after its pass will already be .
ce:review mode:autofixsafe_autoreadySkip any todo that recommends deleting, removing, or gitignoring files in , , or — these are intentional pipeline artifacts.
docs/brainstorms/docs/plans/docs/solutions/扫描和旧版文件,按状态分类:
.context/compound-engineering/todos/*.mdtodos/*.md- (状态字段或文件名包含
ready):处理这些待办事项。-ready- - :跳过,在末尾报告。
pending - :忽略,已完成。
complete
如果传入了特定的待办事项ID或匹配模式,仅筛选出符合条件且状态为的待办事项。
readyce:review mode:autofixsafe_autoready跳过任何建议删除、移除或通过git忽略、或目录下文件的待办事项——这些是有意保留的流水线产物。
docs/brainstorms/docs/plans/docs/solutions/2. Plan
2. 规划
Create a task list grouped by type (e.g., in Claude Code, in Codex). Analyze dependencies -- items that others depend on run first. Output a mermaid diagram showing execution order and parallelism.
TaskCreateupdate_plan创建按类型分组的任务列表(例如Claude Code中的,Codex中的)。分析依赖关系——优先执行被其他任务依赖的项。输出显示执行顺序和并行性的Mermaid图。
TaskCreateupdate_plan3. Implement (PARALLEL)
3. 执行(并行)
Spawn a agent per item. Prefer parallel; fall back to sequential respecting dependency order.
compound-engineering:workflow:pr-comment-resolverBatching: 1-4 items: direct parallel returns. 5+ items: batches of 4, each returning only a short status summary (todo handled, files changed, tests run/skipped, blockers).
For large sets, use a scratch directory at for per-resolver artifacts. Return only completion summaries to parent.
.context/compound-engineering/todo-resolve/<run-id>/为每个任务启动一个 Agent。优先使用并行处理;若有依赖关系,则按顺序执行。
compound-engineering:workflow:pr-comment-resolver批量处理规则:1-4个任务:直接并行返回结果。5个及以上任务:每4个为一批,每批仅返回简短状态摘要(待办事项处理情况、修改的文件、运行/跳过的测试、阻塞问题)。
对于大规模任务集,在目录下创建临时目录,用于存储每个 resolver 的产物。仅向父进程返回完成摘要。
.context/compound-engineering/todo-resolve/<run-id>/4. Commit & Resolve
4. 提交与标记完成
Commit changes, mark todos resolved, push to remote.
GATE: STOP. Verify todos resolved and changes committed before proceeding.
提交修改,标记待办事项为已解决,推送到远程仓库。
检查点:停止操作。在继续前验证待办事项已解决且修改已提交。
5. Compound on Lessons Learned
5. 总结经验教训
Load the skill to document what was learned. Todo resolutions often surface patterns and architectural insights worth capturing.
ce:compoundGATE: STOP. Verify the compound skill produced a solution document in . If none (user declined or no learnings), continue.
docs/solutions/加载技能来记录所学到的内容。解决待办事项通常会发现值得记录的模式和架构见解。
ce:compound检查点:停止操作。验证compound技能是否在目录下生成了解决方案文档。如果未生成(用户拒绝或无经验可总结),则继续。
docs/solutions/6. Clean Up
6. 清理
Delete completed/resolved todo files from both paths. If a scratch directory was created at , delete it (unless user asked to inspect).
.context/compound-engineering/todo-resolve/<run-id>/Todos resolved: [count]
Pending (skipped): [count, or "none"]
Lessons documented: [path to solution doc, or "skipped"]
Todos cleaned up: [count deleted]If pending todos were skipped, list them:
Skipped pending todos (run /todo-triage to approve):
- 003-pending-p2-missing-index.md
- 005-pending-p3-rename-variable.md从两个路径中删除已完成/已解决的待办事项文件。如果创建了临时目录,则删除该目录(除非用户要求保留以便检查)。
.context/compound-engineering/todo-resolve/<run-id>/Todos resolved: [count]
Pending (skipped): [count, or "none"]
Lessons documented: [path to solution doc, or "skipped"]
Todos cleaned up: [count deleted]如果存在被跳过的pending待办事项,列出它们:
Skipped pending todos (run /todo-triage to approve):
- 003-pending-p2-missing-index.md
- 005-pending-p3-rename-variable.md