Parallel Execution Optimizer

affaan-m/ECC/pi/core/skills/parallel-execution-optimizer

作者 affaan-mef648e01899ba3e8dc6371642deaaf64b4477775MIT275K 个星标收录于 2026年10月9日更新于 2026年10月9日仓库4天前更新

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 correctness.

AI 生成的概览

把任务拆成并行通道的依赖图,隔离写入面,并以验证表收尾。

功能
该技能提供一套加速工作的方法:先明确目标与完成信号,再把工作拆分为标记为并行、串行或受门控的通道。它让代理构建通道矩阵,涵盖写入面、风险与验证方式,批量执行相互独立的读取与检查,并按文件、工作树、分支、服务或数据集隔离写入。最后输出结构化的并行执行结果与验证表,而不是笼统的速度声明。
适用场景
当速度来自同时进行相互独立的工作时使用,例如仓库检查、文件读取、API 或浏览器检查、构建与测试通道、部署回读,或多工作树实现。也适用于涉及并发代理、批量工具调用或多个独立验证通道的请求。
运行要求
仅为指令,不附带脚本。所述流程假定代理具备 Read、Write、Edit、Bash、Grep、Glob 等工具,并可能涉及工作树、分支、服务或远程部署。

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:

text
Lane | Can run in parallel? | Write surface | Risk | VerificationRepo scan | yes | none | low | rg/git status outputsBackend patch | maybe | src/api | medium | unit testsFrontend patch | maybe | app/components | medium | browser screenshotDeploy 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:

text
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.

来源与署名

来源:affaan-m/ECC位于pi/core/skills/parallel-execution-optimizer提交ef648e0

许可证: MIT

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架