Agent skill · writing content · aiskillstore
parallel-execution
Patterns for parallel subagent execution using Task tool with run_in_background. Use when coordinating multiple independent tasks, spawning dynamic subagents, or implementing features that can be parallelized.
Why this skill is useful
Provides specific patterns and protocols for executing multiple tasks in parallel, which the AI wouldn't reliably generate on its own.
What it needs
About 3k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.
What this skill does
Parallel Execution Patterns Core Concept Parallel execution spawns multiple subagents simultaneously using the Task tool with runinbackground: true. This enables N tasks to run concurrently, dramatically reducing total execution time. Critical Rule: ALL Task calls MUST be in a SINGLE assistant message for true parallelism. If Task calls are in separate messages, they run sequentially. Execution Protocol Step 1: Identify Parallelizable Tasks Before spawning, verify tasks are independent: No task depends on another's output Tasks target different files or concerns Can run simultaneously without conflicts Step 2: Prepare Dynamic Subagent Prompts Each subagent receives a custom prompt defining its role: Step 3: Launch All Tasks in ONE Message CRITICAL: Make ALL Task calls in the SAME assistant message: Step 4: Retrieve Results with TaskOutput After launching, retrieve each result: Step 5: Synthesize Results Combine all subagent outputs into unified result: Merge related findings Resolve conflicts between recommendations Prioritize by severity/importance Create actionable summary Dynamic Subagent Patterns Pattern 1: Task-Based Parallelization When you have N tasks to implement, spawn N subagents: Pattern 2: Directory-Based Parallelization Analyze multiple directories simultaneously: Pattern 3: Perspective-Based Parallelization Review from multiple angles simultaneously: TodoWrite Integration When using parallel execution, TodoWrite behavior differs: Sequential execution: Only ONE task inprogress at a time Parallel execution: MULTIPLE tasks can be inprogress simultaneously When to Use Parallel Execution Good candidates: Multiple independent analyses (code review, security, tests) Multi-file processing where files are independent Exploratory tasks with different perspectives Verification tasks with different checks Feature implementation with independent components Avoid parallelization when: Tasks have dependencies (Task B needs Task A's output) Sequential workflows are r …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills aiskillstore/parallel-execution