parallel-execution
Skill107 starsChanged 9 months agoMITView on GitHub
Use when facing 2+ tasks that share no state and have no sequential dependencies - enables concurrent investigation or implementation by dispatching one agent per isolated problem domain
4 other projects use a version of this.
Adopted by
Most recently taken up by
- andreymudri/fleetmatestheir own version, first seen Oct 5, 2026
- kimasplund/integrated-reasoningtheir own version, first seen Aug 18, 2026
- beeltec/skillstheir own version, first seen Jul 28, 2026
- CloudAI-X/claude-workflow-v2their own version, first seen Jan 1, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 4
- CloudAI-X/claude-workflow-v2★ 1.4ksame name
- andreymudri/fleetmates★ 2same name
- beeltec/skills★ 2same name
- kimasplund/integrated-reasoning★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository35 other files it gives its agents.
- activationSkill
- agent-messagingSkill
- codebase-researchSkill
- completion-gateSkill
- comprehension-checkSkill
- delegated-executionSkill
- deployment-advisorSkill
- design-integrationSkill
- design-researchSkill
- environment-awarenessSkill
- error-recoverySkill
- fault-diagnosisSkill
- github-searchSkill
- intent-discoverySkill
- knowledge-captureSkill
- merge-protocolSkill
- pattern-matchingSkill
- performance-tuningSkill
- project-bootstrapSkill
- protocol-authoringSkill
- quality-enforcementSkill
- quality-gateSkill
- rationaleSkill
- reference-engineSkill
- review-responseSkill
- security-protocolSkill
- specification-firstSkill
- system-designSkill
- task-planningSkill
- task-runnerSkill
- team-orchestrationSkill
- test-firstSkill
- ui-engineeringSkill
- ux-patternsSkill
- workspace-isolationSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 8 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
8
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
When multiple distinct failures appear across separate subsystems, tackling them one after another wastes time.
- Distinctive: line 18
No exceptions. No workarounds.
- Distinctive: line 44
No shared mutable state between the work items
- Distinctive: line 67
Boundaries: Do not modify code outside your scope
- Distinctive: line 170
Reconciliation: All fixes touched separate files, zero conflicts, full suite green
- Distinctive: line 205
Check for conflicts between agent outputs
- Distinctive: line 211
Use team orchestration when agents have partial dependencies
- Distinctive: line 219
If they need to communicate, they are not isolated enough for parallel dispatch
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Parallel Execution
Overview
When multiple distinct failures appear across separate subsystems, tackling them one after another wastes time. Each investigation is self-contained and can run simultaneously.
Core principle: Assign one agent per isolated problem domain. Let them operate concurrently.
Prime Directive
NO CONCURRENT DISPATCH WITHOUT CONFIRMING ISOLATION
No exceptions. No workarounds. No shortcuts.
When to Use
digraph dispatch_decision {
"Multiple problems?" [shape=diamond];
"Are they isolated?" [shape=diamond];
"Single agent handles all" [shape=box];
"One agent per domain" [shape=box];
"Can they run concurrently?" [shape=diamond];
"Sequential agents" [shape=box];
"Parallel dispatch" [shape=box];
"Multiple problems?" -> "Are they isolated?" [label="yes"];
"Are they isolated?" -> "Single agent handles all" [label="no - coupled"];
"Are they isolated?" -> "Can they run concurrently?" [label="yes"];
"Can they run concurrently?" -> "Parallel dispatch" [label="yes"];
"Can they run concurrently?" -> "Sequential agents" [label="no - shared state"];
}Appropriate when:
- Three or more test files failing for distinct reasons
- Multiple subsystems broken independently
- Each issue can be understood without knowledge of the others
- No shared mutable state between the work items
Not appropriate when:
- Failures are connected (resolving one may resolve others)
- Understanding requires a holistic system view
- Agents would interfere with each other's work
The Approach
1. Map Independent Domains
Classify failures by root cause area:
- Module X tests: Permission validation flow
- Module Y tests: Queue drain behavior
- Module Z tests: Cancellation handling
Each domain is self-contained — fixing permissions has no bearing on cancellation tests.
2. Craft Focused Agent Briefs
Each agent receives:
- Defined scope: One test file or subsystem
- Concrete objective: Get these tests green
- Boundaries: Do not modify code outside your scope
- Deliverable: Summary of root cause and changes made
3. Launch Concurrently
// Dispatch parallel agents using the Agent tool in Claude Code
Agent("Fix permission-validation.test.ts failures")
Agent("Fix queue-drain-behavior.test.ts failures")
Agent("Fix cancellation-handling.test.ts failures")
// All three execute at the same time4. Reconcile and Verify
When agents complete:
- Study each summary
- Confirm changes do not overlap
- Execute the full test suite
- Integrate all results
Agent Brief Structure
Effective agent briefs share these qualities:
- Narrow — One clear problem area
- Self-sufficient — Everything needed to understand the issue is included
- Output-specified — The agent knows exactly what to report
Resolve the 3 failing tests in src/workers/queue-drain.test.ts:
1. "should drain remaining items on shutdown" - expects empty queue, finds 2 items
2. "should handle mixed priorities during drain" - high-priority item processed last
3. "should report drain metrics accurately" - expects 3 metrics but receives 0
These stem from async drain ordering. Your assignment:
1. Read the test file and understand the intended behavior
2. Determine root cause - ordering bug or stale test assumptions?
3. Fix by:
- Implementing deterministic drain ordering
- Correcting production bugs if found
- Updating test expectations if behavior legitimately changed
Do NOT just add delays or increase timeouts - identify the underlying issue.
Return: Root cause analysis and description of changes made.Pitfalls
Too broad: "Fix all the tests" — the agent loses focus Focused: "Fix queue-drain.test.ts" — narrow scope
No context: "Fix the ordering bug" — the agent has no starting point Contextual: Paste error messages and failing test names
No boundaries: Agent may restructure unrelated code Bounded: "Do NOT modify production code outside src/workers/"
Vague output request: "Fix it" — you have no idea what changed Specific output request: "Return root cause summary and list of modified files"
Cognitive Traps
| Rationalization | Truth |
| "They're probably isolated enough" | Confirm isolation explicitly or agents will collide. |
| "We'll reconcile conflicts later" | Merge conflicts from concurrent agents are harder than sequential work. |
| "More agents = faster delivery" | Agents editing shared files = wasted effort and broken merges. |
| "The scope is self-evident" | Vague briefs yield vague outcomes. Specify scope, boundaries, and output. |
| "One agent can handle everything" | An agent with too wide a scope gets lost. Divide by domain. |
When NOT to Use
Coupled failures: Resolving one may cascade fixes to others — investigate holistically first Holistic understanding required: Comprehension demands seeing the full system Exploratory debugging: The problem space is unknown Shared resources: Agents would conflict (same files, same databases, same services)
Worked Example
Situation: 8 test failures across 3 files after a major refactor
Failures:
- permission-validation.test.ts: 3 failures (auth token issues)
- queue-drain-behavior.test.ts: 3 failures (ordering bugs)
- cancellation-handling.test.ts: 2 failures (incomplete cleanup)
Judgment: Isolated domains — auth validation, queue drain, and cancellation logic are unrelated
Dispatch:
Agent 1 -> Fix permission-validation.test.ts
Agent 2 -> Fix queue-drain-behavior.test.ts
Agent 3 -> Fix cancellation-handling.test.tsOutcomes:
- Agent 1: Replaced hardcoded tokens with dynamic fixtures
- Agent 2: Fixed drain ordering to respect priority field
- Agent 3: Added cleanup hooks for partial cancellation state
Reconciliation: All fixes touched separate files, zero conflicts, full suite green
Value: Three problems solved concurrently instead of sequentially
Advantages
- Concurrency — Multiple investigations proceed at once
- Concentration — Each agent manages a small context
- Non-interference — Agents stay out of each other's way
- Throughput — N problems solved in the time of one
Post-Dispatch Checks
After agents return:
- Study each summary — Understand what changed and why
- Detect overlaps — Did any agents touch the same code?
- Run the full suite — Confirm all fixes coexist
- Spot-check — Agents can introduce systematic errors
- Finalize — REQUIRED SUB-SKILL: Use
godmode:merge-protocolto land the work
Guardrails
Prohibited:
- Dispatching concurrent agents without verifying task isolation
- Allowing agents to modify the same files simultaneously
- Integrating without reviewing agent summaries
- Using parallel dispatch for exploratory diagnosis
- Dispatching without defined scope, boundaries, and deliverables
Mandatory:
- Confirm isolation before dispatching
- Give each agent a narrow, explicit scope
- Include error messages and test names in agent briefs
- Review all agent summaries before integration
- Execute full test suite after integrating all changes
- Check for conflicts between agent outputs
Integration
godmode:team-orchestration:
- Parallel execution is a foundational pattern for team-based work
- Use team orchestration when agents have partial dependencies
godmode:delegated-execution:
- Launch parallel agents for independent tasks within a development plan
- Each agent owns one task from the plan
godmode:agent-messaging:
- Agents dispatched in parallel should not need inter-agent communication
- If they need to communicate, they are not isolated enough for parallel dispatch
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

