#13: Plugin Basics 🧩
Today we'll check out plugins in Claude Code, the way to install a whole bundle of skills, agents, hooks, and MCP servers at once.
Every one of those pieces works fine on its own. A plugin packages several of them into one unit, so we can grab a setup someone else built with one command, or share our own with teammates.
Let's dive in.
What's In A Plugin
A plugin is a directory of components, usually with a manifest at .claude-plugin/plugin.json that gives it a name:
my-plugin/
.claude-plugin/plugin.json
skills/review/SKILL.md
agents/reviewer.md
hooks/hooks.json
.mcp.jsonOnce loaded, that skill runs as /my-plugin:review, the agent becomes a subagent Claude can delegate to, the hooks fire on their events, and the MCP server gives Claude new tools.
Plugins come from a marketplace, which is a catalog listing plugins and where to fetch each one. Claude Code adds Anthropic's official marketplace, claude-plugins-official, the first time we start an interactive session.
Installing One
Running /plugin opens a panel on the Discover tab, where we can type to search. Or we can jump straight to a plugin by name:
/plugin install commit-commands@claude-plugins-officialIn a session this doesn't install right away. It opens the plugin's details so we can review what it adds first: commands, agents, skills, hooks, and servers. Plugins from the official marketplace also show a Context cost estimate.
Once it's installed, its skills show up under the plugin's name, like /commit-commands:commit.
Picking A Scope
Every install asks for a scope:
- User: us, in every project. Written to
enabledPluginsin~/.claude/settings.json. - Project: everyone in this repo, through the committed
.claude/settings.json. - Local: us, in this repo only, via
.claude/settings.local.json.
The entry itself is a plugin id mapped to true or false:
{
"enabledPlugins": {
"commit-commands@claude-plugins-official": true
}
}Local beats project, and project beats user. One gotcha with project scope: committing it turns the plugin on for teammates, but each of them still installs it once on their own machine.
Other Marketplaces
For plugins outside the official catalog, we add the marketplace first. It can be a GitHub repo, any git URL, a local path, or a hosted marketplace.json:
/plugin marketplace add samantha-labs/plugins
/plugin install deploy-helper@samantha-labsThe part after @ is the name the marketplace registers under, which the add command prints. Or we can do both in one step with --marketplace:
/plugin install deploy-helper --marketplace samantha-labs/pluginsBe careful about the source. Whatever a plugin runs, it runs as us.
Managing From The Shell
The Installed tab in /plugin lists everything we have. Space toggles a plugin on or off and Enter opens its details. The same actions work from a regular terminal, which is great for setup scripts:
claude plugin install formatter@hal-tools --scope project
claude plugin disable formatter@hal-tools
claude plugin enable formatter@hal-tools
claude plugin listclaude plugin update <plugin>@<marketplace> updates one plugin now. The official marketplace auto-updates by default, while third-party ones don't. After an update, /reload-plugins picks up the new version without restarting.
What A Plugin Costs
An enabled plugin is part of every session, not just the ones where we use it. Each skill and agent Claude can invoke on its own puts its name and description into context on every turn, and its MCP servers run alongside the session.
To see the footprint of something we've installed:
claude plugin details commit-commandsThe Always-on line shows the tokens it adds to every session. The Installed tab also groups plugins we haven't touched lately under Not used recently. Disabling one keeps it installed but stops it from loading. Neat!
More info about plugins can be found at the Claude Code docs.