multi-agent-coordination
БесплатноБез исполняемых скриптовНе проверенCoordinate multiple agents in parallel or sequential workflows. Use when running agents simultaneously, delegating to sub-agents, switching between…
от MadAppGang★ 290 звёзд на GitHubОб этом скилле
Multi-Agent Coordination
Version: 1.0.0 Purpose: Patterns for coordinating multiple agents in complex workflows Status: Production Ready
Overview
Multi-agent coordination is the foundation of sophisticated Claude Code workflows. This skill provides battle-tested patterns for orchestrating multiple specialized agents to accomplish complex tasks that are beyond the capabilities of a single agent.
The key challenge in multi-agent systems is dependencies. Some tasks must execute sequentially (one agent's output feeds into another), while others can run in parallel (independent validations from different perspectives). Getting this right is the difference between a 5-minute workflow and a 15-minute one.
This skill teaches you:
- When to run agents in parallel vs sequential
- How to select the right agent for each task
- How to delegate to sub-agents without polluting context
- How to manage context windows across multiple agent calls
Core Patterns
Pattern 1: Sequential vs Parallel Execution
When to Use Sequential:
Use sequential execution when there are dependencies between agents:
- Agent B needs Agent A's output as input
- Workflow phases must complete in order (plan → implement → test → review)
- Each agent modifies shared state (same files)
Example: Multi-Phase Implementation
Phase 1: Architecture Planning
Task: api-architect
Output: ai-docs/architecture-plan.md
Wait for completion ✓
Phase 2: Implementation (depends on Phase 1)
Task: backend-developer
Input: Read ai-docs/architecture-plan.md
Output: src/auth.ts, src/routes.ts
Wait for completion ✓
Phase 3: Testing (depends on Phase 2)
Task: test-architect
Input: Read src/auth.ts, src/routes.ts
Output: tests/auth.test.ts
When to Use Parallel:
Use parallel execution when agents are independent:
- Multiple validation perspectives (designer + tester + reviewer)
- Multiple AI models reviewing same code (Grok + Gemini + Claude)
- Multiple feature implementations in separate files
Example: Multi-Perspective Validation
Single Message with Multiple Task Calls:
Task: designer
Prompt: Validate UI against Figma design
Output: ai-docs/design-review.md
---
Task: ui-manual-tester
Prompt: Test UI in browser for usability
Output: ai-docs/testing-report.md
---
Task: senior-code-reviewer
Prompt: Review code quality and patterns
Output: ai-docs/code-review.md
All three execute simultaneously (3x speedup!)
Wait for all to complete, then consolidate results.
The 4-Message Pattern for True Parallel Execution:
This is CRITICAL for achieving true parallelism:
Message 1: Preparation (Bash Only)
- Create workspace directories
- Validate inputs
- Write context files
- NO Task calls, NO Tasks
Message 2: Parallel Execution (Task Only)
- Launch ALL agents in SINGLE message
- ONLY Task tool calls
- Each Task is independent
- All execute simultaneously
Message 3: Consolidation (Task Only)
- Launch consolidation agent
- Automatically triggered when N agents complete
Message 4: Present Results
- Show user final consolidated results
- Include links to detailed reports
Anti-Pattern: Mixing Tool Types Breaks Parallelism
❌ WRONG - Executes Sequentially:
await TaskCreate({...}); // Tool 1
await Task({...}); // Tool 2 - waits for Tasks
await Bash({...}); // Tool 3 - waits for Task
await Task({...}); // Tool 4 - waits for Bash
✅ CORRECT - Executes in Parallel:
await Task({...}); // Task 1
await Task({...}); // Task 2
await Task({...}); // Task 3
// All execute simultaneously
Why Mixing Fails:
Claude Code sees different tool types and assumes there are dependencies between them, forcing sequential execution. Using a single tool type (all Task calls) signals that operations are independent and can run in parallel.
Pattern 2: Agent Selection by Task Type
Task Detection Logic:
Intelligent workflows automatically detect task type and select appropriate agents:
Task Type Detection:
IF request mentions "API", "endpoint", "backend", "database":
→ API-focused workflow
→ Use: api-architect, backend-developer, test-architect
→ Skip: designer, ui-developer (not relevant)
ELSE IF request mentions "UI", "component", "design", "Figma":
→ UI-focused workflow
→ Use: designer, ui-developer, ui-manual-tester
→ Optional: ui-developer-codex (external validation)
ELSE IF request mentions both API and UI:
→ Mixed workflow
→ Use all relevant agents from both categories
→ Coordinate between backend and frontend agents
ELSE IF request mentions "test", "coverage", "bug":
→ Testing-focused workflow
→ Use: test-architect, ui-manual-tester
→ Optional: codebase-detective (for bug investigation)
ELSE IF request mentions "review", "validate", "feedback":
→ Review-focused workflow
→ Use: senior-code-reviewer, designer, ui-deve
Установить multi-agent-coordination в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл multi-agent-coordination?
Coordinate multiple agents in parallel or sequential workflows. Use when running agents simultaneously, delegating to sub-agents, switching between specialized agents, or managing agent selection. Trigger keywords - "parallel agents", "sequential workflow", "delegate", "multi-agent", "sub-agent", "agent switching", "task decomposition".
Как установить скилл multi-agent-coordination?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл multi-agent-coordination запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic