✻Founding-member pricing: every lesson for $19/mo. The first 3 lessons are free. Start lesson 1 →
Unit 4 · Agent Skills · Lesson 20 of 40

Skills vs. CLAUDE.md, Hooks, Subagents & MCP

Choose the right Claude Code extension: when a skill beats CLAUDE.md, rules, hooks, subagents, MCP or plugins, and how they combine.

ACADEMY10 min+70 XP4-question quiz

🎯 By the end of this lesson you'll be able to

  • Compare skills with each other extension point
  • Use a decision table to pick the right one
  • Combine features into powerful patterns
  • Understand the context cost of each

The extension map

Claude Code's extensions fall into three groups:

  • Always-on context: CLAUDE.md, rules and output styles.
  • On-demand capabilities: skills, MCP servers and subagents.
  • Event-driven automation: hooks.

Plugins sit on top as the packaging layer that bundles any of these for sharing.

Signs you need each one

When you notice…Add a…
Claude gets a convention wrong twiceLine in CLAUDE.md
You keep asking for a certain format or lengthOutput style
You keep typing the same starter promptUser-invoked skill
You paste the same playbook for the third timeSkill
You keep copying data in from a browser tab or another appMCP server
A side task floods your conversation with outputSubagent
Something must happen every time, no exceptionsHook
A second repo needs the same setupPlugin

Head-to-head

CLAUDE.mdSkillHookSubagent
LoadsEvery sessionWhen invoked or relevantOn lifecycle eventsWhen spawned
Context costEvery requestLow (description) until usedZero unless it outputsSeparate window
Deterministic?No (guidance)No (instructions)YesNo
Best forFacts and conventionsProcedures and expertiseEnforcementIsolation and parallelism
◎Pick the extensionpick the best fit
Every edit must be auto-formatted with Prettier, no exceptions.
Must happen every time, deterministically: a PostToolUse hook.
Claude should query your production metrics database.
External data access is MCP's job.
The 9-step procedure to cut a mobile release.
A long, occasional workflow, loaded on demand.
The test command is pnpm test -- <file>.
A short fact that's relevant in most sessions.
Audit 300 files for deprecated API usage and report back.
Heavy reading in an isolated context, with only findings returned.

Better together

  • Skill + MCP: MCP gives Claude access to Slack; a /post-update skill teaches how your team writes updates.
  • Skill + subagents: an /audit skill fans out to security, performance and style reviewer subagents.
  • Hook + skill: a PostToolUse lint hook catches problems, and a /fix-lint skill knows how to fix your linter's common complaints.
  • CLAUDE.md + skills: CLAUDE.md says "for releases, use /release"; the skill holds the details.
✻
The golden rule

Start with CLAUDE.md. Add other features only when a specific need shows up. A minimal setup that you understand beats a sprawling one you don't.

Check your understanding

?Lesson quiz10 XP per correct answer · +25 for a perfect score
QUESTION 1 OF 4

Which extension is deterministic, firing without Claude deciding?

Why: Hooks run on lifecycle events every time. The others are instructions Claude chooses to follow.
QUESTION 2 OF 4

You keep pasting the same deployment checklist. What should you create?

Why: Repeated playbooks are exactly what skills are for.
QUESTION 3 OF 4

What does MCP provide that a skill doesn't?

Why: MCP supplies the access. Skills supply the know-how.
QUESTION 4 OF 4

Which has a context cost on every single request?

Why: CLAUDE.md loads in full every session, which is why it must stay lean.
0 / 4 correct
Academy lesson

Unlock lesson 20 and the next 20

You've finished the free lessons. Join the Academy for $19/month to unlock every lesson, quiz, terminal simulation and puzzle, plus the final exam and your certificate of completion.

  • All 40 lessons across 9 units
  • 165+ quiz questions
  • Final exam + certificate
  • New lessons as Claude Code evolves
  • XP, streaks and badges
  • Cancel anytime

Already a member? Log in to continue.

Key takeaways

  • Always-on: CLAUDE.md and rules. On-demand: skills, MCP and subagents. Event-driven: hooks.
  • Pick by symptom: conventions → CLAUDE.md, playbooks → skills, must-happen → hooks.
  • Features combine: skill + MCP, skill + subagents, hook + skill.
  • Start minimal with CLAUDE.md and add the rest when a need appears.

Nice work. Lesson 20 done?

Mark it complete to earn +70 XP, keep your streak alive and unlock badges.

Written by Curtis Cornell from Anthropic's public Claude Code documentation. Last reviewed November 14, 2026. Claude Code changes fast; if something here differs from your version, the official docs win.

Start lesson 1 free →