universal/collaboration/dispatching-parallel-agents/SKILL.md
Use multiple Claude agents to investigate and fix independent problems concurrently
npx skillsauth add bobmatnyc/claude-mpm-skills Dispatching Parallel AgentsInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
When multiple unrelated failures occur (different test files, different subsystems, different bugs), investigating them sequentially wastes time. Each investigation is independent and can happen in parallel.
Core principle: Dispatch one agent per independent problem domain. Let them work concurrently.
Activate this skill when facing:
Don't use when:
One agent, one problem domain, one clear outcome.
Never overlap scopes. Never share state. Always integrate consciously.
Problems must be truly independent - no shared files, no related root causes, no dependencies between fixes.
Each agent gets narrow scope: one test file, one subsystem, one clear goal. Broad tasks lead to confusion.
Every agent must return a summary: what was found, what was fixed, what changed. No silent fixes.
Don't blindly merge agent work. Review summaries, check conflicts, run full suite, verify compatibility.
Group failures by what's broken:
File A tests: Tool approval flow
File B tests: Batch completion behavior
File C tests: Abort functionality
Each domain is independent - fixing tool approval doesn't affect abort tests.
Each agent gets:
→ agent-prompts.md for prompt templates and examples
// In Claude Code / AI environment
Task("Fix agent-tool-abort.test.ts failures")
Task("Fix batch-completion-behavior.test.ts failures")
Task("Fix tool-approval-race-conditions.test.ts failures")
// All three run concurrently
→ coordination-patterns.md for dispatch strategies
When agents return:
→ troubleshooting.md for conflict resolution
Multiple failures?
└→ Are they independent?
├→ NO (related) → Single agent investigates all
└→ YES → Can they work in parallel?
├→ NO (shared state) → Sequential agents
└→ YES → Parallel dispatch ✓
When dispatching parallel agents, consider these complementary skills (available in the skill library):
STOP immediately if:
When in doubt: Start with one agent, understand the landscape, then dispatch if truly independent.
Prerequisite: Basic understanding of problem domains and test structure Complementary: PM-Workflow skill for coordinating multiple agents (see skill library) Domain-specific: Testing skills for understanding test failures (available in skill library)
From debugging session (2025-10-03):
→ examples.md for detailed case study
development
Axum (Rust) web framework patterns for production APIs: routers/extractors, state, middleware, error handling, tracing, graceful shutdown, and testing
development
Optimize web performance using Core Web Vitals, modern patterns (View Transitions, Speculation Rules), and framework-specific techniques
development
Best practices for documenting APIs and code interfaces, eliminating redundant documentation guidance per agent.
development
Comprehensive API design patterns covering REST, GraphQL, gRPC, versioning, authentication, and modern API best practices