Choosing the extension that fits a repeated team workflow (a Skill, a plugin, a rules file, a hook, a subagent or a slash command) and writing and packaging it so the team can install it.
Study it
Extending Claude Code: Skills, plugins, rules files, hooks, subagents and commands
Lesson coming
Sample questions
Try each one before opening the answer. Every option is explained, with the Anthropic documentation page that proves it.
Question 1 · choose 1
In your monorepo, the web team keeps a deploy-web skill at apps/web/.claude/skills/deploy-web/SKILL.md. A developer starts Claude Code at the repository root and immediately types /deploy-web, but the command is not found and the skill is not in the / menu. Other web team members who work in apps/web have no problem. What explains this?
ASkills only load from ~/.claude/skills, so the web team must move it into each developer's personal folder
BA skill below the starting folder loads once Claude reads or edits a file in that subdirectory, not at startup
CThe skill needs disable-model-invocation: true before anyone can start it by typing its name
DSkill names may not contain hyphens, so the folder has to be renamed to deployweb
Show the answer and why
ASkills only load from ~/.claude/skills, so the web team must move it into each developer's personal folder
Incorrect
Project and nested .claude/skills directories are skill locations too.
BA skill below the starting folder loads once Claude reads or edits a file in that subdirectory, not at startup
Correct
Nested skills are discovered the first time Claude works on a file there, and are then available for the session.
CThe skill needs disable-model-invocation: true before anyone can start it by typing its name
Incorrect
That field stops Claude from loading the skill on its own; it is not needed to run it by name.
DSkill names may not contain hyphens, so the folder has to be renamed to deployweb
Incorrect
The command name defaults to the directory name, and hyphens are fine; the web team runs it as is.
Skills in a .claude/skills directory below where you started don't load at startup. They load the first time Claude reads or edits a file in that subdirectory and then stay available; until then they are not in the / menu and cannot be invoked by name.
Your team packages its review workflow as a Claude Code plugin with this layout:review-kit/
.claude-plugin/
plugin.json
skills/review/SKILL.md
hooks/hooks.json
CLAUDE.mdAfter teammates install it, the review skill is missing, and the team conventions written in CLAUDE.md are not followed. The formatter hook in hooks/hooks.json works. Which TWO changes fix the plugin? (Choose TWO.)
AMove plugin.json out of .claude-plugin/ to the plugin root, next to hooks/
BRemove the double quotes around ${CLAUDE_PLUGIN_ROOT} in the hook's command
CCopy the plugin's .mcp.json to ~/.claude/.mcp.json so that teammates load it from their home folder
DMove skills/ out of .claude-plugin/ to the plugin root
ERewrite the CLAUDE.md conventions as a skill in the plugin
Show the answer and why
AMove plugin.json out of .claude-plugin/ to the plugin root, next to hooks/
Incorrect
The manifest belongs at .claude-plugin/plugin.json; moving it does not bring back the skill.
BRemove the double quotes around ${CLAUDE_PLUGIN_ROOT} in the hook's command
Incorrect
Without args the command runs through a shell, and the quotes keep the expanded path one word; the hook already works.
CCopy the plugin's .mcp.json to ~/.claude/.mcp.json so that teammates load it from their home folder
Incorrect
A .mcp.json at ~/.claude/.mcp.json doesn't load, and the plugin has no MCP server to fix.
DMove skills/ out of .claude-plugin/ to the plugin root
Correct
Components go in fixed directories under the plugin root; skills/ inside .claude-plugin/ is not found.
ERewrite the CLAUDE.md conventions as a skill in the plugin
Correct
Claude Code doesn't load a CLAUDE.md at the plugin root; instructions in a plugin are written as a skill.
A plugin keeps only its manifest in .claude-plugin/; skills/, agents/, hooks/hooks.json and .mcp.json go under the plugin root. Claude Code does not load a CLAUDE.md at the plugin root, so a plugin carries instructions as a skill.
Your team's /release-notes skill sets model in its SKILL.md frontmatter so that it runs on a different model than the session's. A developer asks what happens to the session's model after the skill runs. What does the skills documentation say?
AThe skill's model replaces the session model in the developer's settings
BThe skill's model stays in effect for every later prompt until the developer runs /model again
CIt applies for the rest of the current turn; the session model resumes with the next prompt
DThe model field is ignored unless the skill also sets context: fork
Show the answer and why
AThe skill's model replaces the session model in the developer's settings
Incorrect
The override isn't saved to settings.
BThe skill's model stays in effect for every later prompt until the developer runs /model again
Incorrect
The session model resumes on the next prompt without any command.
CIt applies for the rest of the current turn; the session model resumes with the next prompt
Correct
The model field applies for the rest of the turn and isn't saved to settings.
DThe model field is ignored unless the skill also sets context: fork
Incorrect
The model field applies whenever the skill is active.
A skill's model frontmatter field sets the model to use while the skill is active. The override applies for the rest of the current turn and isn't saved to settings; the session model resumes when you send your next prompt.
Your team wants every Claude Code tool call event to be posted as JSON to an internal audit endpoint, without writing a shell script. Which hook type does this?
A"type": "prompt"
B"type": "http"
C"type": "command"
D"type": "mcp_tool"
Show the answer and why
A"type": "prompt"
Incorrect
Prompt hooks send the input to a Claude model for a judgment.
B"type": "http"
Correct
HTTP hooks POST the event data to a URL.
C"type": "command"
Incorrect
A command hook runs a shell command, which the team does not want to write.
D"type": "mcp_tool"
Incorrect
That type calls a tool on a configured MCP server, not a URL.
Most hooks use type command, which runs a shell command. Other types include http (POST event data to a URL), mcp_tool (call a tool on a configured MCP server) and prompt (a single-turn evaluation by a model).