跳到正文
Skillpedia
自动化280k · #219

parallel-execution-optimizer

它能做什么

这个工具通过把工作拆分成多个可以同时进行的小块,帮你加快任务速度。它会把这些小块整理成计划,确保需要一起完成的工作并行运行,而可能产生冲突的工作则单独运行。

适用场景

  • ✓需要快速检查大量文件时。
  • ✓需要同时测试系统的多个部分时。
  • ✓需要检查部署在不同地区是否都成功时。

技能链接

https://github.com/affaan-m/ECC/blob/main/pi/core/skills/parallel-execution-optimizer/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/affaan-m/ECC/blob/main/pi/core/skills/parallel-execution-optimizer/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“加快检查代码库中的所有文件,并并行运行单元测试。”

每周 5 个新技能,1 分钟读完。

工作原理

工具会先绘制一张工作“地图”,标出哪些任务可以同时进行(并行),哪些必须依次进行。对于会修改同一内容的任务,它会谨慎地分开处理,并且只有在确认一切正确后才合并结果。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Parallel Execution Optimizer

Use this skill when speed comes from doing independent work at the same time: repo inspection, file reads, API checks, browser checks, build/test lanes, deploy readbacks, or multi-worktree implementation passes.

Core Pattern

Turn urgency into a dependency graph before acting.

  1. Define the objective and done signal.
  2. Split work into lanes.
  3. Mark each lane as parallel, sequential, or gated.
  4. Run independent reads/checks together.
  5. Keep writes isolated by file, worktree, branch, service, or dataset.
  6. Merge only after evidence shows the lanes are compatible.
  7. End with a verification table, not a vague speed claim.

Lane Matrix

Before a large push, write a compact matrix:

Lane | Can run in parallel? | Write surface | Risk | Verification
Repo scan | yes | none | low | rg/git status outputs
Backend patch | maybe | src/api | medium | unit tests
Frontend patch | maybe | app/components | medium | browser screenshot
Deploy readback | after build | remote service | high | live URL + logs

Only run lanes in parallel when their write surfaces do not collide.

Execution Rules

  • Batch file reads, searches, status checks, and metadata queries.
  • Use isolated worktrees for large unrelated implementation lanes.
  • Start long-running tests, builds, backfills, and deploys in separate sessions, then poll them deliberately.
  • If a lane discovers a blocker that changes the plan, pause dependent lanes and update the matrix.
  • Never let a background process outlive the turn unless the user explicitly asked for a continuing service.
  • Do not parallelize destructive commands, migrations, writes to the same table, or live customer-impacting deploys without an explicit gate.

Output Shape

Use this when reporting:

Parallel execution result:
- Lanes run: 5
- Lanes completed: 4
- Blocked lane: deploy readback, waiting on DNS propagation
- Fast path found: batched repo scan + focused tests
- Verification: lint pass, unit pass, live smoke pass

Failure Modes

  • More concurrency that creates conflicting edits.
  • Benchmarking the tool instead of the task.
  • Treating "fast" as done before correctness is proven.
  • Forgetting to poll running sessions.
  • Hiding skipped checks behind a success summary.
常见问题

什么是“车道”(lanes)?

“车道”就像高速公路上的车道,每条代表一项待完成的工作。有些车道可以同时行驶(并行),有些则需要等待。

为什么要隔离写入操作?

为了防止不同的工作同时修改同一份信息而引发错误。每条会修改内容的“车道”都在自己独立的空间中进行操作。

我如何知道最终结果是正确的?

工具会在最后生成一张“验证表”,列出已完成的任务、被阻塞的任务,以及重要检查的结果,确保一切都经过验证后才算完成。

详情

作者的原始描述

Speed up a task by turning it into a dependency graph of parallel lanes with a lane matrix, batched reads and checks, write surfaces isolated by file, worktree, branch, or service, and a final verification table. Use when the user wants a task done much faster through parallel work, concurrent agents, batched tool calls, isolated worktrees, or many independent verification lanes without losing cor

repo: affaan-m/ECC

热度

GitHub 星标
280k
排名
#219
许可证
MIT
更新时间
2026/10/15

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能