Skip to content

What Claude Code plugins bundle and how to install, share and vet them

On this page

A Claude Code plugin is a directory of skills, commands, subagents, hooks and MCP servers that Claude Code installs and loads as one unit. Most plugins come from a marketplace, a catalog defined by a marketplace.json file in a git repository, URL or local folder: you add it with /plugin marketplace add and install by name with /plugin install <plugin>@<marketplace>. Teams roll plugins out through .claude/settings.json or managed settings. Because a plugin’s hooks and MCP servers run as your user, read one before you install it.

Checked as of 4 November 2026 against Anthropic’s plugins overview, install guide, plugin components, manifest and marketplace references, and plugin security and trust.

What a Claude Code plugin bundles

ComponentLocation in the pluginWhat you get
Skillsskills/<name>/SKILL.mdInstructions Claude loads when the description matches, also runnable as /<plugin>:<name>
Commandscommands/<name>.mdThe older single-file form of skills
Agentsagents/<name>.mdSubagents Claude can delegate to, named <plugin>:<name>
Hookshooks/hooks.jsonLifecycle hooks, same shape as hooks in settings.json
MCP servers.mcp.jsonServers that connect while the plugin is enabled
LSP servers.lsp.jsonLanguage servers for type errors and symbol navigation
Executablesbin/Added to the PATH of Claude’s Bash tool

Skills, subagents, hooks and MCP servers all work without a plugin. Anthropic’s own advice is to reach for a plugin when you want several of them packaged together, installed with one command and updated from a marketplace. If you’re deciding between a skill and an MCP server for a capability, MCP vs Agent Skills compares them.

Everything is namespaced under the plugin’s name. A review skill in my-plugin runs as /my-plugin:review, its MCP server db appears in /mcp as plugin:my-plugin:db, and that server’s query tool is mcp__plugin_my-plugin_db__query in permission rules and hook matchers.

plugin.json and the directory layout

Text
my-plugin/
├── .claude-plugin/
│   └── plugin.json
├── skills/
│   └── review/
│       └── SKILL.md
├── agents/
│   └── security-reviewer.md
├── hooks/
│   └── hooks.json
├── scripts/
│   └── format.sh
└── .mcp.json

Only plugin.json goes inside .claude-plugin/; components saved there don’t load. The manifest itself is small, and name is the only required field:

JSON
{
  "name": "my-plugin",
  "version": "1.0.0",
  "description": "Review, formatting and database tools for this team",
  "author": { "name": "Platform team" }
}

Setting version keeps users on that version until you change it. Optional keys such as skills, agents, commands, hooks and mcpServers point at non-default locations, and userConfig declares values Claude Code asks the user for when the plugin is enabled. A CLAUDE.md at the plugin root isn’t loaded; put instructions in a skill.

A plugin hook refers to its own files through ${CLAUDE_PLUGIN_ROOT}:

JSON
{
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "Write|Edit",
        "hooks": [
          { "type": "command", "command": "\"${CLAUDE_PLUGIN_ROOT}/scripts/format.sh\"" }
        ]
      }
    ]
  }
}

Plugin hooks register when the plugin loads and fire on every matching event from then on, whether or not you use any of the plugin’s skills. The hook format, exit codes and matcher rules are the same as in settings files; Claude Code hooks covers them. Agent files support most subagent frontmatter, but hooks, mcpServers and permissionMode in a plugin agent are ignored. Claude Code subagents explains the agent format.

While you build, load the plugin for one session without installing it, and validate it before sharing:

Shell
claude --plugin-dir ./my-plugin
claude plugin validate ./my-plugin

Plugin marketplaces and installing plugins

Claude Code adds Anthropic’s official marketplace, claude-plugins-official, the first time you start an interactive terminal session. Run /plugin and the Discover tab lists plugins from every marketplace you’ve added. To install one directly:

Text
/plugin install commit-commands@claude-plugins-official

In a session that opens the plugin’s details instead of installing at once. The pane lists what the plugin will install (commands, agents, skills, hooks, MCP and LSP servers) and, for official-marketplace plugins, a context cost estimate. Then you pick a scope:

ScopeEnabled forRecorded in
UserYou, in every project on this machine~/.claude/settings.json
ProjectEveryone in the repository.claude/settings.json, committed
LocalYou, in this repository only.claude/settings.local.json

Other marketplaces need adding first. The source can be a GitHub repository (with #ref to pin a branch or tag), any git URL, a local path or a hosted marketplace.json:

Text
/plugin marketplace add your-org/claude-plugins
/plugin install formatter@your-org-plugins

The name after @ is the marketplace’s name from its file, not the repository name. A minimal marketplace keeps its plugins in the same repository:

JSON
{
  "name": "your-org-plugins",
  "owner": { "name": "Platform team" },
  "plugins": [
    { "name": "formatter", "source": "./plugins/formatter", "description": "Format on edit" }
  ]
}

From a shell or setup script, claude plugin marketplace add and claude plugin install do the same without a session, installing at user scope unless you pass --scope. Private repositories clone with the git credentials already on your machine; Claude Code never prompts for them. Cloud sessions at claude.ai/code don’t load plugins from your local or repository settings.

Team distribution through settings

For one repository, commit both the marketplace and the plugins it should enable in .claude/settings.json:

JSON
{
  "extraKnownMarketplaces": {
    "your-org-plugins": {
      "source": { "source": "github", "repo": "your-org/claude-plugins" }
    }
  },
  "enabledPlugins": {
    "formatter@your-org-plugins": true
  }
}

Two details from Anthropic’s organization guide: extraKnownMarketplaces in a repository applies only after each contributor trusts the folder, and enabledPlugins in a repository turns the plugin on without downloading it, so each contributor still runs claude plugin install formatter@your-org-plugins --scope project once per clone.

For a whole fleet, put the same two keys in managed settings. Claude Code then registers the marketplace and installs the plugins at the start of each user’s next session, and users can’t disable them. Managed settings also add policy: strictKnownMarketplaces allowlists marketplace sources, blockedMarketplaces blocks them, and false for a plugin in managed enabledPlugins blocks it at every scope.

Trust and security

Anthropic’s security page opens with the point that matters: a plugin you install can execute arbitrary code on your machine with your user privileges. In practice:

  • Hooks run as shell commands at their events, with your full permissions.
  • Stdio MCP servers and LSP servers start as local processes.
  • Skills, commands and agents enter Claude’s context as instructions, so they shape what Claude does with the tools it already has.
  • Claude Code runs hooks and MCP and LSP server processes outside its Bash sandbox. Your permission rules still apply to Claude’s calls to the plugin’s MCP tools and to Bash commands that run files from its bin/.
  • With auto-update on for a marketplace, the files you reviewed can change on disk later.

The marketplace name tells you who publishes the catalog, not what a given plugin does. Claude Code accepts official names such as claude-plugins-official only from github.com/anthropics/ repositories, so a third-party marketplace can’t pose as Anthropic’s, but every marketplace your coworkers or vendors publish is third-party. Before installing, check the source with claude plugin marketplace list, then read hooks/hooks.json (what each hook runs), .mcp.json (each server’s command or URL) and everything in bin/. The details pane shows that a hook exists, not what it executes.

A plugin’s .mcp.json also decides where Claude’s tool calls and their arguments go. If it names a remote server, vet that server the way you would any other; the MCP security guide lists what to check.

Enable, disable and remove plugins

The Installed tab in /plugin lists your plugins; select one to disable, update or uninstall it. From a shell:

Shell
claude plugin list
claude plugin disable formatter@your-org-plugins
claude plugin enable formatter@your-org-plugins
claude plugin uninstall formatter@your-org-plugins --scope project

Disabling keeps the plugin installed but stops its components loading, which also removes the per-turn context its skill and agent descriptions add. To turn off a plugin that the repository enables for everyone just for yourself, set it to false in .claude/settings.local.json; uninstalling from the project removes it from the shared file. Plugins your organization enables through managed settings show at managed scope and can’t be disabled from /plugin. After uninstalling a plugin you no longer trust, its cached files stay under ~/.claude/plugins/cache/ for 14 days unless you delete that directory yourself.