resolve_todo_parallel

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Arguments

参数

[optional: specific todo ID or pattern]
Resolve all TODO comments using parallel processing.
[可选:特定待办事项ID或模式]
使用并行处理解决所有TODO注释。

Workflow

工作流程

1. Analyze

1. 分析

Get all unresolved TODOs from the /todos/*.md directory
If any todo recommends deleting, removing, or gitignoring files in
docs/plans/
or
docs/solutions/
, skip it and mark it as
wont_fix
. These are compound-engineering pipeline artifacts that are intentional and permanent.
从/todos/*.md目录获取所有未解决的TODO事项
如果任何待办事项建议删除、移除或通过gitignore忽略
docs/plans/
docs/solutions/
中的文件,则跳过该事项并标记为
wont_fix
。这些是复合工程流水线的产物,是有意保留且永久存在的。

2. Plan

2. 规划

Create a TodoWrite list of all unresolved items grouped by type.Make sure to look at dependencies that might occur and prioritize the ones needed by others. For example, if you need to change a name, you must wait to do the others. Output a mermaid flow diagram showing how we can do this. Can we do everything in parallel? Do we need to do one first that leads to others in parallel? I'll put the to-dos in the mermaid diagram flow‑wise so the agent knows how to proceed in order.
创建一个按类型分组的所有未解决事项的TodoWrite列表。务必留意可能存在的依赖关系,并优先处理其他事项所需的前置任务。例如,如果需要修改名称,必须先完成该操作再处理其他事项。输出一个Mermaid流程图,展示我们的执行方式。我们可以并行处理所有事项吗?是否需要先完成某一项,再并行处理其他相关事项?我会将待办事项按流程顺序放入Mermaid流程图中,以便Agent知晓执行顺序。

3. Implement (PARALLEL)

3. 实施(并行)

Spawn a pr-comment-resolver agent for each unresolved item in parallel.
So if there are 3 comments, it will spawn 3 pr-comment-resolver agents in parallel. liek this
  1. Task pr-comment-resolver(comment1)
  2. Task pr-comment-resolver(comment2)
  3. Task pr-comment-resolver(comment3)
Always run all in parallel subagents/Tasks for each Todo item.
为每个未解决的事项并行启动一个pr-comment-resolver Agent。
例如,如果有3条注释,将并行启动3个pr-comment-resolver Agent,如下所示:
  1. 任务 pr-comment-resolver(comment1)
  2. 任务 pr-comment-resolver(comment2)
  3. 任务 pr-comment-resolver(comment3)
始终为每个待办事项并行运行所有子Agent/任务。

4. Commit & Resolve

4. 提交与解决

  • Commit changes
  • Remove the TODO from the file, and mark it as resolved.
  • Push to remote
  • 提交更改
  • 从文件中移除TODO标记,并将其标记为已解决
  • 推送到远程仓库