.claude/skills/multi-agent-architecture-reference/SKILL.md
Decision matrix for selecting multi-agent topologies (Supervisor, Swarm, Hierarchical, Conductor) with token economics, failure modes, and escalation paths
npx skillsauth add oimiragieo/agent-studio multi-agent-architecture-referenceInstall 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.
Answer these four questions before selecting a topology:
| Topology | Token Cost | Best For | Failure Modes | Existing Skill |
| -------------------- | ---------- | -------------------------------------------------------------------- | -------------------------------------------------------------------------- | ------------------------ |
| Conductor | ~6x | Sequential phases, ordered agent steps, default agent-studio pattern | Orchestrator overload (SE-M01) | master-orchestrator.md |
| Supervisor | ~5x | Known task types, specialist agents, deterministic routing | Single point of failure; router miscalibration (SE-M01) | Built into Router |
| Fan-out/Fan-in | ~8x | Parallel review/analysis, map-reduce, search | Result aggregation complexity | wave-executor |
| Swarm | ~8x | Independent tasks, load balancing, fault-tolerant processing | Coordination overhead; consensus deadlock; orphaned tasks (SE-M02, SE-M05) | swarm-coordination |
| Consensus Voting | ~12x | High-stakes decisions requiring multi-reviewer agreement | Deadlock on split votes (SE-M02) | consensus-voting |
| Hierarchical | ~15x | EPIC complexity, multiple distinct phases with sub-orchestration | Cascade failures; token runaway at depth >3 (SE-M03, SE-M04) | Custom per project |
Token costs are relative to single-agent baseline (as of 2026). Use as order-of-magnitude guidance.
Before finalizing topology, verify mitigation for relevant failure modes:
SE-M01: Coordinator Overload
wave-executor for fan-outSE-M02: Swarm Deadlock
SE-M03: Cascade Failure
SE-M04: Token Runaway
SE-M05: Orphaned Tasks
Use the complexity escalation ladder when initial topology is insufficient:
TRIVIAL → Single agent (no multi-agent needed)
↓ (task types > 1, > 3 files)
LOW → Supervisor (router delegates to 2-3 specialists)
↓ (parallel processing needed)
MEDIUM → Conductor + Fan-out (master-orchestrator + wave-executor)
↓ (multi-phase with sub-orchestration)
HIGH → Hierarchical (orchestrators at multiple tiers)
↓ (high-stakes decision required)
EPIC → Hierarchical + Consensus Voting (max 3 tiers + voting gate)
| Pattern | Skill/File | Use Case |
| ------------------- | ----------------------------------------------------- | --------------------------------------------------- |
| Conductor (DEFAULT) | .claude/agents/orchestrators/master-orchestrator.md | Sequential phase execution; TaskUpdate coordination |
| Fan-out/Fan-in | wave-executor skill | Parallel batch processing; EPIC-tier pipelines |
| Swarm | swarm-coordination skill | Concurrent independent task execution |
| Consensus | consensus-voting skill | High-stakes decisions; multi-reviewer agreement |
| Supervisor | Built into CLAUDE.md | Task routing to specialist agents |
When in doubt, start with Conductor. The master-orchestrator pattern drives sequential phases with explicit TaskUpdate coordination — the lowest-risk default for most MEDIUM/HIGH tasks.
</instructions> <examples>wave-executor skill — spawn 3 reviewers in parallel, aggregate resultsmaster-orchestrator with TaskUpdate coordination between phasesconsensus-voting skill — 3 architect agents vote, majority decidesswarm-coordination skill with task ID assignment per agent<best_practices>
| Anti-Pattern | Problem | Fix | | ------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | | Defaulting to Hierarchical for every complex task | Token runaway at depth >3; cascade failure risk; over-engineering most tasks | Use Conductor (sequential phases) first; only escalate to Hierarchical when sub-orchestration is mandatory | | Using Swarm for ordered, dependent tasks | Swarm agents run concurrently and cannot enforce ordering; produces race conditions | Use Conductor or Fan-out/Fan-in when task ordering matters | | Skipping TaskUpdate(in_progress) in Swarm | Tasks become orphaned (SE-M05); no ownership tracking; duplicated or dropped work | Require every swarm agent to call TaskUpdate(in_progress) as its first action | | Adding Consensus Voting speculatively | 12x token overhead kills budget for non-critical decisions; slowdown on all downstream tasks | Reserve consensus gate for genuinely high-stakes, irreversible decisions only | | Mixing topology concerns (Supervisor + Swarm + Hierarchical in one flow) | Complexity explosion; routing ambiguity; impossible to debug failures | Pick one primary topology per orchestration scope; compose only at well-defined phase boundaries |
Before starting:
Read .claude/context/memory/learnings.md to check for prior multi-agent architecture decisions.
After completing:
.claude/context/memory/decisions.md.claude/context/memory/issues.md.claude/context/memory/learnings.mdASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.
wave-executor — Fan-out/Fan-in implementationswarm-coordination — Swarm topology executionconsensus-voting — Byzantine consensus for high-stakes decisionsarchitecture-review — Validate topology choices against NFRscomplexity-assessment — Determine complexity level before topology selectiontools
Comprehensive biosignal processing toolkit for analyzing physiological data including ECG, EEG, EDA, RSP, PPG, EMG, and EOG signals. Use this skill when processing cardiovascular signals, brain activity, electrodermal responses, respiratory patterns, muscle activity, or eye movements. Applicable for heart rate variability analysis, event-related potentials, complexity measures, autonomic nervous system assessment, psychophysiology research, and multi-modal physiological signal integration.
tools
Comprehensive toolkit for creating, analyzing, and visualizing complex networks and graphs in Python. Use when working with network/graph data structures, analyzing relationships between entities, computing graph algorithms (shortest paths, centrality, clustering), detecting communities, generating synthetic networks, or visualizing network topologies. Applicable to social networks, biological networks, transportation systems, citation networks, and any domain involving pairwise relationships.
data-ai
Molecular featurization for ML (100+ featurizers). ECFP, MACCS, descriptors, pretrained models (ChemBERTa), convert SMILES to features, for QSAR and molecular ML.
development
Run Python code in the cloud with serverless containers, GPUs, and autoscaling. Use when deploying ML models, running batch processing jobs, scheduling compute-intensive tasks, or serving APIs that require GPU acceleration or dynamic scaling.