Parallel Execution Skill
When to use this skill
- •executing a multi-step plan with independent steps
- •researching multiple topics or URLs simultaneously
- •creating multiple independent files
- •running multiple independent commands
Dependency analysis
- •List all steps / tool calls needed.
- •For each pair, check: does step B depend on output of step A?
- •Same file? → sequential.
- •B reads A's output? → sequential.
- •No overlap? → parallel.
- •Group independent steps into batches.
Execution pattern
- •Batch 1: Fire all independent calls with
waitForPreviousTools: false. - •Batch 2: After Batch 1 completes, fire the next group that depended on Batch 1.
- •Continue until all steps are done.
Examples of parallelizable work
- •Multiple
search_webcalls for different topics - •Multiple
view_file/view_file_outlinecalls on different files - •Multiple
write_to_filecalls for unrelated files - •Multiple
run_commandcalls that don't depend on each other
When NOT to parallelize
- •Steps that modify the same file
- •Steps where output of one feeds into another
- •Sequential build/test chains (build → test → deploy)