When to use a skill rather than CLAUDE.md, a hook or a subagent, how to share one, and how to fix one.
1 / 4
Skill, CLAUDE.md, hook or subagent?
CLAUDE.md holds facts needed in every session. A skill holds a procedure needed now and then. A hook is for what must happen every single time. A subagent, as in “Claude Code: handing off to subagents”, works apart in its own context window, and it can be given skills of its own.
2 / 4
Skill or subagent?
Need the details, or only the result? A skill runs in your conversation, so you see every step; a subagent works apart and returns a summary. They combine: a subagent can preload skills, and a skill with context: fork runs in one, seeing only the skill, not your chat.
3 / 4
Sharing: repo, plugin, company
A skill committed to the project’s .claude/skills folder reaches everyone who clones the repo. Bundle skills with subagents, hooks and MCP servers (next chapter) into a plugin to share them across projects, and install plugins others made with /plugin. Companies can push skills to everyone through managed settings.
4 / 4
When a skill misbehaves
If it never triggers, the description is usually too vague: add the words people really use. If the wrong skill fires, make the two descriptions clearly different. If it fails partway, run its scripts yourself and check the paths and permissions.