All skills
Skillintermediate
Claude Code Components
<div align="center">
Claude Code Knowledge Pack7/10/2026
Overview
<div align="center">
<div align="center">
š Home ⢠š§ Implementation ⢠š¦ Components
</div>Claude Code Components
The 4 abstractions to organize agent capabilities
Components Overview
%%{init: {'theme': 'base', 'themeVariables': {'lineColor': '#64748b'}}}%%
flowchart LR
classDef subagent fill:#ec4899,stroke:#db2777,stroke-width:2px,color:#ffffff
classDef command fill:#6366f1,stroke:#4f46e5,stroke-width:2px,color:#ffffff
classDef skill fill:#8b5cf6,stroke:#7c3aed,stroke-width:2px,color:#ffffff
classDef hook fill:#10b981,stroke:#059669,stroke-width:2px,color:#ffffff
SA["š¦ Subagent<br/><small>agents/*.md</small>"]:::subagent
CMD["𦓠Command<br/><small>commands/*.md</small>"]:::command
SKL["š Skill<br/><small>skills/*/</small>"]:::skill
HK["šŖ Hook<br/><small>settings.json</small>"]:::hook
SA ~~~ CMD ~~~ SKL ~~~ HK
Component Index
| Component | Emoji | File | Purpose |
|---|---|---|---|
| Subagent | š¦ | subagent.md | Autonomous execution |
| Slash Command | 𦓠| slash-command.md | User-invoked workflows |
| Skill | š | skill.md | Reusable patterns |
| Hook | šŖ | hook.md | Automated triggers |
Components Comparison
| Aspect | š¦ Subagent | 𦓠Slash Command | š Skill | šŖ Hook |
|---|---|---|---|---|
| Invoked by | Task (šŖŗ) | šāāļø User (/) | Context | Events |
| Autonomy | High | Low | Medium | Auto |
| Context | Isolated | Main | Main | System |
| Spawn subagents | ā | Via š | Via š | ā |
| Location | agents/*.md | commands/*.md | skills/*/ | settings.json |
Component Relationships
%%{init: {'theme': 'base', 'themeVariables': {'lineColor': '#64748b'}}}%%
flowchart TB
classDef user fill:#6366f1,stroke:#4f46e5,stroke-width:2px,color:#ffffff
classDef main fill:#8b5cf6,stroke:#7c3aed,stroke-width:2px,color:#ffffff
classDef subagent fill:#ec4899,stroke:#db2777,stroke-width:2px,color:#ffffff
classDef skill fill:#8b5cf6,stroke:#7c3aed,stroke-width:2px,color:#ffffff
classDef builtinTool fill:#64748b,stroke:#475569,stroke-width:2px,color:#ffffff
subgraph Input["šāāļø USER INPUT"]
SLASH["𦓠/command"]:::user
PROMPT["šāāļøš„ Prompt"]:::user
end
subgraph Orchestration["š ORCHESTRATION"]
MA["šš Main Agent"]:::main
SKL["š Skills"]:::skill
end
subgraph Execution["ā” EXECUTION"]
SA["š¦ Subagents"]:::subagent
TOOLS["š§ Tools"]:::builtinTool
end
SLASH --> MA
PROMPT --> MA
MA --> SKL
MA -->|"šŖŗ Task"| SA
SA --> TOOLS
classDef inputBox fill:#e0e7ff,stroke:#6366f1,stroke-width:2px,color:#3730a3
classDef orchestrationBox fill:#f3e8ff,stroke:#8b5cf6,stroke-width:2px,color:#5b21b6
classDef executionBox fill:#fce7f3,stroke:#ec4899,stroke-width:2px,color:#9d174d
Input:::inputBox
Orchestration:::orchestrationBox
Execution:::executionBox
File Location Reference
.claude/
āāā agents/ # š¦ Subagent definitions
ā āāā *.md # One file per subagent type
āāā commands/ # 𦓠Slash Command definitions
ā āāā *.md # One file per command (name from filename)
āāā skills/ # š Skill definitions
ā āāā skill-name/ # One directory per skill (name from dir)
ā āāā SKILL.md # Skill content
āāā settings.json # šŖ Hooks and configuration
<div align="center">
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
</div>