Claude Code plugins and marketplaces
What a Claude Code plugin contains, how to install one from a marketplace, how to build and test your own, and how to judge whether to trust one. 8 min
Read
What is in a plugin
A plugin is a folder that Claude Code installs and loads as one unit. It can hold skills, subagents, hooks (commands that run at set moments, such as after every edit) and MCP servers. A manifest at .claude-plugin/plugin.json gives it a name, and that name becomes the prefix on its skills: a notes skill in a team-tools plugin runs as /team-tools:notes.
Only the manifest goes inside .claude-plugin/. The skills/, agents/ and hooks/ folders and the .mcp.json file sit at the plugin root beside it. Put them inside .claude-plugin/ and they will not load.
A marketplace is just a catalogue: a repository or folder with a .claude-plugin/marketplace.json file listing plugins and where to fetch each one. Claude Code adds Anthropic's official marketplace, claude-plugins-official, the first time you start an interactive session.
team-tools/
.claude-plugin/
plugin.json
skills/
notes/
SKILL.md
agents/
reviewer.md
hooks/
hooks.json
.mcp.json{
"name": "team-tools",
"description": "Release notes and review skills for the platform team",
"version": "1.0.0",
"author": { "name": "Platform team" }
}Lesson notes: Claude Code plugins and marketplaces
Everything in this lesson as text, for revision or to read without the interactive steps. By the end you will be able to: You can install, build and vet a Claude Code plugin.
Step 1 of 6 · Read
What is in a plugin
A plugin is a folder that Claude Code installs and loads as one unit. It can hold skills, subagents, hooks (commands that run at set moments, such as after every edit) and MCP servers. A manifest at
.claude-plugin/plugin.jsongives it a name, and that name becomes the prefix on its skills: anotesskill in ateam-toolsplugin runs as/team-tools:notes.Only the manifest goes inside
.claude-plugin/. Theskills/,agents/andhooks/folders and the.mcp.jsonfile sit at the plugin root beside it. Put them inside.claude-plugin/and they will not load.A marketplace is just a catalogue: a repository or folder with a
.claude-plugin/marketplace.jsonfile listing plugins and where to fetch each one. Claude Code adds Anthropic's official marketplace,claude-plugins-official, the first time you start an interactive session.Plugin layout team-tools/ .claude-plugin/ plugin.json skills/ notes/ SKILL.md agents/ reviewer.md hooks/ hooks.json .mcp.jsonteam-tools/.claude-plugin/plugin.json { "name": "team-tools", "description": "Release notes and review skills for the platform team", "version": "1.0.0", "author": { "name": "Platform team" } }Step 2 of 6 · Try it in the terminal
Install a plugin from the official marketplace
From your shell, install the commit-commands plugin from Anthropic's official marketplace, claude-plugins-official, at the default scope.
Hint: claude plugin install, then plugin-name@marketplace-name.
Show the command
$ claude plugin install commit-commands@claude-plugins-official ✔ Successfully installed plugin: commit-commands@claude-plugins-official (scope: user)
Step 3 of 6 · Read
Install inside a session, and choose a scope
Inside Claude Code,
/pluginopens a panel. Discover lists plugins from your marketplaces, Installed shows what you have, and Errors explains anything that failed to load./plugin install name@marketplaceopens that plugin's details so you can read what it adds before you choose a scope.Scope decides who gets it. User: you, in every project. Project: everyone in the repository, recorded in the committed
.claude/settings.json. Local: you, in this repository only. For any marketplace other than the official one, add it first with/plugin marketplace add owner/repo.Every enabled plugin puts the names and descriptions of its skills and agents into every turn, even when you do not use them, and those tokens count toward your usage. Switch off what you do not need with
claude plugin disableor from the Installed tab.Step 4 of 6 · Read
Build and test your own
Make the folder above, then run
claude plugin validate ./team-toolsto check the manifest and the frontmatter of every skill. Load it for one session without installing it usingclaude --plugin-dir ./team-tools, and run/reload-pluginsafter each edit.To share it, list it in a
marketplace.json, push that folder to a git host, and have teammates runclaude plugin marketplace add your-org/your-repo. Keep the plugin name inmarketplace.jsonidentical to the name inplugin.json, or installs by name fail..claude-plugin/marketplace.json { "name": "acme-tools", "description": "Plugins for the Acme platform team", "owner": { "name": "Platform team" }, "plugins": [ { "name": "team-tools", "source": "./plugins/team-tools", "description": "Release notes and review skills" } ] }Step 5 of 6 · Read
Decide whether to trust it
Anthropic's documentation is blunt: a plugin can run any code on your machine with your user privileges. Its hooks and MCP servers run outside Claude Code's permission rules and sandbox. Anthropic says it does not control what plugins contain and cannot verify that they work as intended or will not change.
A marketplace's name tells you who publishes the catalogue, not whether each plugin is safe. Official names such as
claude-plugins-officialare only accepted from repositories undergithub.com/anthropics/, so nobody else can pose as Anthropic. A marketplace run by a colleague or your own company counts as third-party.Before installing, read the Will install list in the details pane, then open the source and read
hooks/hooks.json,.mcp.jsonand every file inbin/. Watch auto-update too: the files you reviewed can change later. It is on by default for the official marketplace and off for third-party ones.Step 6 of 6 · Quiz
Check your understanding
A colleague shares a plugin from their own GitHub marketplace. Its details show two hooks and an MCP server. What do you do first?
- Install it, because marketplaces on GitHub are checked by Anthropic
- Read hooks/hooks.json and .mcp.json in its source to see exactly what will run
- Install it at project scope so the whole team can judge it
Show the answer
Read hooks/hooks.json and .mcp.json in its source to see exactly what will run Hooks and MCP servers run as you, outside the permission checks. Reading the commands is the only way to know what they do.