Skills, subagents, hooks and MCP
The four extension tools, explained simply.
Once the basics work, Claude Code can be extended. Here is each tool in one sentence, with when to use it.
Skills
A skill is a folder with a SKILL.md file containing instructions. Claude loads it when a request matches, or you run it with /skill-name. Use skills for procedures you would otherwise paste again and again.
--- name: explain-simply description: Explains code in plain language for beginners. Use when the user asks what a piece of code does. --- Explain $ARGUMENTS as if the reader is new to programming: 1. Say in one sentence what it does. 2. Walk through it step by step, defining any jargon. 3. End with one small change the reader could try.
Personal skills live in ~/.claude/skills/, project skills in .claude/skills/. Run /skills to see what is available.
Subagents
A subagent is a helper with its own context window and its own allowed tools. Good for reading many files or an independent review. Ask in plain words: "Use a subagent to review this for security problems."
Hooks
A hook runs a script automatically at a set point, for example formatting every file after an edit. Unlike CLAUDE.md, hooks are guaranteed to run. Claude can write them for you.
MCP
The Model Context Protocol (MCP) is an open standard for connecting AI tools to outside data and services. Through MCP, Claude Code can read design documents, update tickets or query a database. Add a server with claude mcp add.
Plugins: everything in one package
A plugin bundles skills, subagents, hooks and MCP connections so you can install a whole workflow at once, for example a code-review kit or a set of marketing skills. Plugins come from marketplaces; your organization may also offer its own.
A hook, described in plain words
Prompt: let Claude write the hook
Add a hook to this project: after every file edit, run our formatter on the changed file. Show me the settings change before you save it, and explain in two sentences how I can turn it off.
You stay in control: you see the change and know how to undo it.
| Need | Use |
|---|---|
| A repeatable procedure | Skill |
| Keep research out of the main chat | Subagent |
| Something must always happen | Hook |
| Connect an outside app or data | MCP |
| Facts Claude needs every session | CLAUDE.md |
Check yourself
Tip: use ← and → to move between lessons.