parallel-execution

Solid

CRITICAL skill for executing multiple Task tool calls in a SINGLE message for true parallelism. Essential for efficient multi-task workflows, subagent coordination, and maximizing throughput.

AI & Automation 205 stars 19 forks Updated 4 months ago MIT

Install

View on GitHub

Quality Score: 74/100

Stars 20%
77
Recency 20%
50
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
0

Skill Content

# Parallel Execution **CRITICAL**: This skill teaches how to execute multiple tasks simultaneously for maximum efficiency. ## The Fundamental Rule > **ALL Task calls MUST be in a SINGLE assistant message for true parallelism.** If Task calls are in separate messages, they run SEQUENTIALLY, not in parallel. --- ## Why Parallel Execution Matters ### Sequential (SLOW - AVOID) ``` Message 1: Start Task A ↓ wait for completion Message 2: Start Task B ↓ wait for completion Message 3: Start Task C ↓ wait for completion Total time = A + B + C = 90 seconds (if each takes 30s) ``` ### Parallel (FAST - USE THIS) ``` Message 1: Start Task A ─┐ Start Task B ─┼─ All run simultaneously Start Task C ─┘ Total time ≈ max(A, B, C) = 30 seconds ``` **Speedup: 3x faster with 3 parallel tasks** --- ## How to Execute in Parallel ### Step 1: Identify Independent Tasks Tasks are independent when: - They don't depend on each other's output - They don't modify the same files - They can run in any order ### Step 2: Launch ALL Tasks in ONE Message ```xml <!-- CORRECT: All tasks in single message = PARALLEL --> <task> <description>Analyze authentication module</description> <prompt>Review src/auth for security patterns...</prompt> </task> <task> <description>Analyze API layer</description> <prompt>Review src/api for REST best practices...</prompt> </task> <task> <description>Analyze database layer</description> <prompt...

Details

Author
CloudAI-X
Repository
CloudAI-X/opencode-workflow
Created
4 months ago
Last Updated
4 months ago
Language
TypeScript
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

Code & Development Featured

parallel-investigation

Coordinates parallel investigation threads to simultaneously explore multiple hypotheses or root causes across different system areas. Use when debugging production incidents, slow API performance, multi-system integration failures, or complex bugs where the root cause is unclear and multiple plausible theories exist; when serial troubleshooting is too slow; or when multiple investigators can divide root-cause analysis work. Provides structured phases for problem decomposition, thread assignment, sync points with Continue/Pivot/Converge decisions, and final report synthesis.

745 Updated 1 months ago
rohitg00
Code & Development Solid

review-loop

Runs multi-pass automated code review with per-issue fix subagents. Triggers when preparing a branch for PR, reviewing code changes, or when thorough automated code quality review is needed.

24 Updated 3 weeks ago
onsails
AI & Automation Featured

parallel-debugging

Debug complex issues using competing hypotheses with parallel investigation, evidence collection, and root cause arbitration. Use this skill when debugging bugs with multiple potential causes, performing root cause analysis, or organizing parallel investigation workflows.

35,935 Updated today
wshobson
AI & Automation Solid

agent-orchestration

Proactively orchestrate running AI agents — scan statuses, assess progress, send next instructions, and coordinate multi-agent workflows. Use when users ask to manage agents, orchestrate work across agents, or check on agent progress.

1,213 Updated today
codeaholicguy
AI & Automation Solid

smith-matrix

This skill should be used when the user asks to "create a multi-agent system", "spawn agents for parallel tasks", "decompose task recursively", "set up agent matrix", or wants to execute complex tasks using multiple coordinated agents with conflict-free parallel processing.

18 Updated 3 weeks ago
cyijun