CLAUDE.md plus Skills plus Hooks plus Subagents plus Plugins, five layers, and the line that ties them together is always loaded, always active, the agent's constitution, a description that only actually applies to the first one, everything after it loads on demand instead.
CLAUDE.md is the memory layer, tilde slash dot claude slash CLAUDE dot md for global, dot claude slash CLAUDE dot md for project, architecture rules, naming conventions, test expectations, repo map, always loaded, always active, the agent's constitution.
Skills is the knowledge layer, description matching, auto-invoked, task-specific context, reference docs, scripts, templates, on-demand, not always-on, context, a fork runs a skill in a subagent.
Hooks is the guardrail layer, PreToolUse, PostToolUse, SessionStart, Stop, SubagentStop, auto-lint on write, block rm -rf, Slack ping on stop, deterministic, not AI, event fires, matcher checks, command runs.
Subagents is the delegation layer, own context window, own model, own tools, own permissions, code-reviewer, test-runner, explorer, keeps main context clean, subagents can't spawn subagents.
Plugins is the distribution layer, bundle, marketplace, team install, skills folder, agents folder, hooks folder, commands folder, think npm packages for agent capabilities.
Two extensions sit outside the five-layer stack. MCP Servers connects, external tools, GitHub, databases, APIs, custom integrations, plugs outside tools into every layer. Agent Teams scales out, parallel execution, message passing, lead orchestration, shared permissions, many agents working as one.
Five layers plus two extensions, and the real shape underneath all of it is one layer that's always on, CLAUDE.md, surrounded by four that only wake up when the task actually calls for them.