Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

multi-agent-composition

FreeNo executable scriptsNot checked

Decision frameworks and patterns for choosing and composing Claude Code components — skills, sub-agents, hooks, MCP servers, and slash commands — into…

basher83by basher83★ 24 GitHub stars20 installs in other catalogs

About this skill

Multi-Agent Composition

Master Claude Code's components, patterns, and principles to build effective agentic systems.

When to Use This Knowledge

Use this knowledge when:

  • Learning Claude Code - Understanding what each component does
  • Making architectural decisions - Choosing Skills vs Sub-Agents vs MCP vs Slash Commands
  • Building custom solutions - Creating specialized agents or orchestration systems
  • Scaling agentic workflows - Moving from single agents to multi-agent orchestration
  • Debugging issues - Understanding why components behave certain ways
  • Adding observability - Implementing hooks for monitoring and control

Quick Reference

The Core 4 Framework

Every agent is built on these four elements:

  1. Context - What information does the agent have?
  2. Model - What capabilities does the model provide?
  3. Prompt - What instruction are you giving?
  4. Tools - What actions can the agent take?

"Everything comes down to just four pieces. If you understand these, you will win."

Component Overview

Component Trigger Use When Best For
Skills Agent-invoked Repeat problems needing management Domain-specific workflows
Sub-Agents Tool-invoked Parallelization & context isolation Scale & batch operations
MCP Servers As needed External data/services Integration with external systems
Slash Commands Manual/tool One-off tasks Simple repeatable prompts
Hooks Lifecycle events Observability & control Monitoring & blocking

Composition Hierarchy

Skills (Top Layer)
  ├─→ Can use: Sub-Agents, Slash Commands, MCP Servers, Other Skills
  └─→ Purpose: Orchestrate primitives for repeatable workflows

Sub-Agents (Execution Layer)
  ├─→ Can use: Slash Commands, Skills
  └─→ Cannot nest other Sub-Agents

Slash Commands (Primitive Layer)
  └─→ The fundamental building block

MCP Servers (Integration Layer)
  └─→ Connect external systems

Golden Rules

  1. Always start with prompts - Master the primitive first
  2. "Parallel" = Sub-Agents - Nothing else supports parallel execution
  3. External = MCP, Internal = Skills - Clear separation of concerns
  4. One-off = Slash Command - Don't over-engineer
  5. Repeat + Management = Skill - Only scale when needed
  6. Don't convert all slash commands to skills - Huge mistake
  7. Context, Model, Prompt, Tools - Never forget the foundation

Documentation Structure

This skill uses progressive disclosure. Start here, then navigate to specific topics as needed.

Reference Documentation

Architecture fundamentals - What each component is and how they work

Implementation Patterns

How to use components effectively - Decision-making and implementation

Anti-Patterns

Common mistakes to avoid

  • common-mistakes.md - Converting all slash commands to skills, using skills for one-offs, context explosion, and more

Examples

Real-world case studies and progression paths

  • progression-example.md - Evolution from prompt → sub-agent → skill (work tree manager example)
  • case-studies.md - Scout-builder patterns, orchestration workflows, multi-agent systems

Workflows

Visual guides and decision trees

  • decision-tree.md - Decision trees, mindmaps, and visual guides for choosing components

Getting Started

If you're new to Claude Code

  1. Start with reference/architecture.md to understand components
  2. Read reference/core-4-framework.md to grasp the foundation
  3. Use patterns/decision-framework.md to make your first architectural choice
  4. Check anti-patterns/common-mistakes.md to avoid pitfalls

If you're making an architectural decision

  1. Open patterns/decision-framework.md
  2. Follow the decision tree to identify the right component
  3. Review
Full SKILL.md on GitHub

Install multi-agent-composition in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

anti-patterns/common-mistakes.mdexamples/case-studies.mdexamples/progression-example.mdpatterns/context-in-composition.mdpatterns/context-management.mdpatterns/decision-framework.mdpatterns/hooks-in-composition.mdpatterns/orchestrator-pattern.mdreference/architecture.mdreference/core-4-framework.mdworkflows/decision-tree.md

FAQ

What does the multi-agent-composition skill do?

Decision frameworks and patterns for choosing and composing Claude Code components — skills, sub-agents, hooks, MCP servers, and slash commands — into effective multi-component agentic systems with proper orchestration and context management.

How do I install the multi-agent-composition skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the multi-agent-composition skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare multi-agent-composition with