This skill should be used when the user asks to "choose between skill and agent", "compose multi-agent system", "orchestrate agents", "manage agent context", "design component architecture", "should...
Master Claude Code's components, patterns, and principles to build effective agentic systems.
Use this knowledge when:
Every agent is built on these four elements:
"Everything comes down to just four pieces. If you understand these, you will win."
| 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 |
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
This skill uses progressive disclosure. Start here, then navigate to specific topics as needed.
Architecture fundamentals - What each component is and how they work
How to use components effectively - Decision-making and implementation
"Do not give away the prompt. The prompt is the fundamental unit of knowledge work and of programming. If you don't know how to build and manage prompts, you will lose."
Everything is prompts in the end. Master slash commands before skills. Have a strong bias toward slash commands.
"It is very clear this does not replace any existing feature or capability. It is a higher compositional level."
Skills orchestrate other components; they don't replace them. Don't convert all your slash commands to skillsβthat's a huge mistake.
"When it comes to agentic coding, observability is everything. How well you can observe, iterate, and improve your agentic system is going to be a massive differentiating factor."
If you can't measure it, you can't improve it. If you can't measure it, you can't scale it.
"200k context window is plenty. You're just stuffing a single agent with too much work. Don't force your agent to context switch."
Create focused agents with single purposes. Delete them when done. Treat agents as temporary, deletable resources.
Level 1: Base agents β Use agents out of the box
Level 2: Better agents β Customize prompts and workflows
Level 3: More agents β Run multiple agents
Level 4: Custom agents β Build specialized solutions
Level 5: Orchestration β Manage fleets of agents
This knowledge synthesizes:
Need to understand what a component is? β reference/architecture.md
Need to choose the right component? β patterns/decision-framework.md
Need to implement hooks? β patterns/hooks-in-composition.md
Need to scale to multiple agents? β patterns/orchestrator-pattern.md
Need to see real examples? β examples/
Need visual guides? β workflows/decision-tree.md
Want to avoid mistakes? β anti-patterns/common-mistakes.md
Remember: Context, Model, Prompt, Tools. Master these four, and you master Claude Code.