When you need Claude to do multiple things at once, this shows you how to spawn subagents that actually run in parallel instead of one after another. The key trick is putting all your Task tool calls in a single message with run_in_background set to true. Works great for stuff like analyzing different directories simultaneously, implementing independent features, or running multiple types of reviews at once. The guide includes the TodoWrite integration pattern where multiple tasks can be in_progress at the same time, plus it's honest about when not to parallelize, like when tasks depend on each other or touch the same files. Cuts execution time from N times 30 seconds to just 30 seconds for N independent tasks.

skills.sh installs
215
GitHub stars
1.4K
last updated
Jun 9, 2026

Install

$ npx -y skills add cloudai-x/claude-workflow-v2 --skill parallel-execution --agent claude-code

Installs into .claude/skills of the current project.

Files

Parallel Execution Patterns

When to Load

  • Trigger: Multi-agent tasks, concurrent operations, spawning subagents, parallelizing independent work
  • Skip: Single-step tasks or sequential workflows with no parallelization opportunity

Core Concept

Parallel execution spawns multiple subagents simultaneously using the Agent tool (named Task before Claude Code 2.1.63; Task still works as an alias). Subagents run in the background by default, so N tasks run concurrently, dramatically reducing total execution time.

Critical Rule: ALL Agent calls MUST be in a SINGLE assistant message for true parallelism. If the calls are in separate messages, they launch one after another.

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:

You are a [ROLE] specialist for this specific task.

Task: [CLEAR DESCRIPTION]

Context:
[RELEVANT CONTEXT ABOUT THE CODEBASE/PROJECT]

Sponsors

Details

Repository
github.com/cloudai-x/claude-workflow-v2
Categories
AI & Agent Building, Automation & Workflows
License
MIT
First seen
Jun 11, 2026

More from cloudai-x/claude-workflow-v2

All 14
1langfuse avatarlangfuse-observabilitylangfuse/skillsInstrument LLM applications with Langfuse tracing. Use when setting up Langfuse, adding observability to LLM calls, or auditing existing instrumentation.213skills.sh installs
2rohitg00 avatarpro-workflowrohitg00/pro-workflowComplete AI coding workflow system. Orchestration patterns, 18 hook events, 5 agents, cross-agent support, reference guides, and searchable learnings. Works wit213skills.sh installs
3sanky369 avatarproduct-videosanky369/vibe-building-skillsPlan an animated product video end-to-end: pick the video type, define the animation style and pacing, write a beat-by-beat shot list, and produce ready-to-run 213skills.sh installs
4kroegha avatarkali-docker-pentestingkroegha/kali-docker-pentestingComprehensive pentesting toolkit using Kali Linux Docker container. Provides direct access to 200+ security tools without MCP overhead. Use when conducting secu209skills.sh installs
5feiskyer avatarskill-creatorfeiskyer/claude-code-settingsCreate, refine, and benchmark agent skills. Use when building a new skill, updating an existing one, running evals, checking trigger quality, or improving a ski208skills.sh installs
6liuyunlong2021-wq avatarsvg-animation-engineerliuyunlong2021-wq/svg-skillsGenerates pure SVG code animations using flat design and CSS keyframes. Use when user asks for SVG code, Lottie alternatives, vector illustrations, or web-based208skills.sh installs