heydeer

Claude Code plugins: how to install them and which to use

· · 10 min read

A good Claude Code setup tends to sprawl: a few skills in one folder, a subagent in another, hooks in settings.json, an MCP server in .mcp.json. Plugins put all of it in one directory that installs with one command, updates from a marketplace and can be turned off without deleting anything. That is also how most third-party additions to Claude Code now arrive.

Claude Code plugins are directories that bundle skills, subagents, hooks, MCP servers and language servers, with a manifest at .claude-plugin/plugin.json, so Claude Code can install and load them as one unit. You install them with the /plugin command from a marketplace, a catalog defined by a .claude-plugin/marketplace.json file. Claude Code adds Anthropic’s official marketplace, claude-plugins-official, on your first interactive session; others are added with /plugin marketplace add.

What a Claude Code plugin bundles

A plugin is a directory of components with a manifest at .claude-plugin/plugin.json. According to Claude Code’s plugin documentation, the components can be:

  • Skills: SKILL.md instructions Claude loads when relevant and you can run as commands. Older plugins use commands/ for the same job.
  • Agents: subagents Claude can delegate to.
  • Hooks: shell commands that run at points in Claude Code’s lifecycle, such as after every edit. See Claude Code hooks for the events.
  • MCP servers that connect while the plugin is enabled, and LSP servers that give Claude code intelligence.
  • Smaller pieces: a bin/ directory added to Claude’s shell PATH, background monitors, and hooks written as JavaScript modules.

None of these need a plugin. A skill in ~/.claude/skills/ works on its own, and so does a hook in settings.json. The plugin is the packaging: it earns its place when you want to install a setup someone else built, share yours with a team, or use the same set across many repositories. Plugin skills are namespaced, so two plugins can each ship a review skill as /a:review and /b:review without colliding. For skills on their own, see agent skills and the best Claude Code skills.

How to install Claude Code plugins

Run /plugin in a terminal session. It opens on the Discover tab, which lists every plugin in the marketplaces you’ve added; type to search and press Enter to open one. If you already know the name, go straight to its details:

/plugin                                            # browse the Discover tab
/plugin install commit-commands@claude-plugins-official
/reload-plugins                                    # if the summary asks for it

In a session, /plugin install doesn’t install right away. It opens the plugin’s details, which list what it Will install (commands, agents, skills, hooks, MCP and LSP servers) and, for plugins in the official marketplace, a Context cost estimate of what it adds to every turn. Then you pick a scope:

  • User: you, in every project on this machine. Recorded in ~/.claude/settings.json.
  • Project: everyone in this repository, through the committed .claude/settings.json. Each collaborator still installs it once on their own machine.
  • Local: you, in this repository only, in .claude/settings.local.json.

When the same plugin is set at several scopes, local beats project and project beats user. Confirm the install by typing / and finding the plugin’s skills under its name, such as /commit-commands:commit.

Everything in the panel also works from your shell, which is the route for setup scripts and for claude -p, where /plugin isn’t available:

claude plugin install commit-commands@claude-plugins-official
claude plugin install formatter@your-org --scope project
claude plugin list
claude plugin disable formatter@your-org
claude plugin update formatter@your-org
claude plugin uninstall formatter@your-org --scope project

Shell installs default to user scope and load in the next session, or after /reload-plugins in one that’s open. Plugins installed on your computer don’t follow you into cloud sessions at claude.ai/code; those use the plugins added to your claude.ai account.

The Claude Code plugin marketplace

There is no single store. A marketplace is any repository, directory or URL with a .claude-plugin/marketplace.json catalog, and the part after @ in an install command is the marketplace’s name. As of November 2026, Claude Code sorts marketplaces into three tiers:

  • Official: claude-plugins-official, from anthropics/claude-plugins-official, is added automatically the first time you start an interactive session. Most of its catalog comes from partners and tool vendors; Anthropic maintains a smaller set, including code-review, commit-commands, feature-dev and the language server plugins.
  • Community: claude-community holds third-party plugins their authors submitted to Anthropic. Add it with /plugin marketplace add anthropics/claude-plugins-community.
  • Third-party: every other marketplace, including your company’s and most popular plugin authors’. Anthropic doesn’t review these.

Adding a marketplace takes any of these sources:

# GitHub repository (pin a tag with #ref)
/plugin marketplace add anthropics/claude-plugins-community
/plugin marketplace add your-org/plugins#v1.2.0

# Any git host, a local directory, or a hosted marketplace.json
/plugin marketplace add https://gitlab.example.com/team/plugins.git
/plugin marketplace add ./my-marketplace
/plugin marketplace add https://example.com/marketplace.json

# Add the marketplace and install in one step
claude plugin install deploy-helper --marketplace your-org/plugins

Two names cause confusion. Claude Marketplace at claude.com/marketplace is a website for browsing the official catalog, with install counts and an Anthropic verified label on some plugins; it isn’t something you add. And the older claude-code-plugins marketplace in anthropics/claude-code is deprecated, so skip any tutorial step that adds it and install from claude-plugins-official instead.

Enable, disable and update plugins

The Installed tab in /plugin lists your plugins: Space toggles one on or off, and Enter opens a menu with Update now and Uninstall. Disabling is usually the better move for a plugin you use occasionally, because an enabled plugin is part of every session. Each of its skills and agents puts a name and description into Claude’s context on every turn, its MCP servers run, and its hooks fire. The tab groups plugins you haven’t used lately under Not used recently, and claude plugin details <name> prints the tokens a plugin adds to every session.

Updates depend on the marketplace. Auto-update is on by default for the official marketplace and off for community, third-party and local ones; turn it on or off per marketplace from the Marketplaces tab. When an update lands mid-session, Claude Code asks you to run /reload-plugins. There’s no single command to update every plugin, but Update marketplace on that tab updates everything you installed from one catalog. Removing a marketplace uninstalls every plugin you installed from it.

Claude Code plugins worth installing for coding and review

These are all Anthropic-maintained plugins in claude-plugins-official, so each installs with /plugin install <name>@claude-plugins-official. The marketplace also carries vendor plugins for services such as GitHub, GitLab, Linear, Playwright and Terraform; install those for the tools your team already uses.

PluginWhat it adds
code-reviewA fixed pull request review: parallel agents check CLAUDE.md compliance, bugs in the diff and git history, then drop issues scored below 80 confidence. Runs as /code-review:code-review.
pr-review-toolkitSix review subagents, each with one focus: comment accuracy, test coverage, error handling, type design, general code quality and simplification.
security-guidanceWarns on known-dangerous patterns as Claude edits, reviews the diff at the end of each turn, and runs a deeper review on git commit.
claude-securityThe in-session version of Claude Security: agents map the codebase, hunt for vulnerabilities, verify each finding and can draft patches.
commit-commands/commit, plus commands to push and open a pull request, with messages drafted from the diff in your repository’s style.
feature-dev/feature-dev runs a seven-phase workflow: explore the codebase, ask clarifying questions, design, build and review.
typescript-lsp, pyright-lsp, gopls-lsp and othersLanguage servers that give Claude go-to-definition, find-references and type errors. Each needs the language server binary installed.
hookifyCreates hooks from a plain description, such as “warn me when I use rm -rf”, written as Markdown rule files instead of hooks.json.
claude-md-managementAudits CLAUDE.md against the current codebase and captures what a session learned with /revise-claude-md.
plugin-devSkills and agents for writing your own plugin; /plugin-dev:create-plugin walks through designing and validating one.

For review, start with what Claude Code already ships: the built-in /code-review takes effort levels and works on branches as well as pull requests, and the Claude Code review skill guide compares it with the code-review plugin. Add pr-review-toolkit when you want a reviewer with one narrow focus, such as error handling, and security-guidance when you want checks to run while Claude writes rather than after. The Claude Code security review guide covers the security options in more depth. Keep the list short; every enabled plugin costs context in every session.

How to build a Claude Code plugin

A plugin worth building is usually one you already have in pieces. Say your team keeps a pre-PR skill, a reviewer subagent and a formatting hook in one repository and wants them in every service. The layout is:

review-tools/
├── .claude-plugin/
│   └── plugin.json        # the manifest; only this file goes in .claude-plugin/
├── skills/
│   └── pre-pr/SKILL.md    # runs as /review-tools:pre-pr
├── agents/
│   └── reviewer.md        # a subagent Claude can delegate to
├── hooks/
│   └── hooks.json         # same shape as "hooks" in settings.json
└── .mcp.json              # MCP servers the plugin starts

The manifest needs only a name, which becomes the prefix on every skill and agent. Setting version keeps users on that version until you change it.

{
  "name": "review-tools",
  "description": "Pre-PR checks for our services",
  "version": "1.0.0",
  "author": { "name": "Platform team" }
}

The most common mistake is putting skills/ or agents/ inside .claude-plugin/, where they silently don’t load; only plugin.json belongs there. Validate, then load the directory for one session without installing it:

claude plugin validate ./review-tools
claude --plugin-dir ./review-tools
# then, in the session:
/review-tools:pre-pr

Run /reload-plugins after each edit. When it works, share it by sending the directory or a zip, by submitting it to Anthropic’s directory, or by listing it in your own marketplace. A marketplace is a marketplace.json with a name, an owner and one entry per plugin:

{
  "name": "acme-plugins",
  "owner": { "name": "Acme platform team" },
  "plugins": [
    {
      "name": "review-tools",
      "source": "./plugins/review-tools",
      "description": "Pre-PR checks for our services"
    }
  ]
}

Push it to a repository and teammates run /plugin marketplace add your-org/plugins, then /plugin install review-tools@acme-plugins. Keep the entry name identical to the name in the plugin’s own manifest; a mismatch is the usual cause of “plugin not found” errors. If you’re converting an existing .claude/ setup, delete the originals once the plugin works, or hooks that exist in both places run twice.

Review a plugin before you install it

Claude Code’s own documentation is blunt: a plugin can execute arbitrary code on your machine with your user privileges, whatever marketplace it comes from. Hooks, monitors and MCP servers run outside Claude Code’s sandbox and permission rules; skills and agents steer what Claude does with the tools it already has. Before installing an unfamiliar plugin:

  • Run claude plugin marketplace list to see where the marketplace really comes from.
  • Read hooks/hooks.json, .mcp.json and everything in bin/. The details pane shows that a hook exists, not what it runs.
  • Remember that auto-update can change the files you reviewed. For third-party marketplaces it’s off by default; leave it off for anything you haven’t vetted, or pin the marketplace to a tag with #ref.

Organizations can go further with managed settings: allowlist marketplaces, force-enable approved plugins, and turn off --plugin-dir.

Codex plugins and how they compare

OpenAI’s Codex has its own plugin system. As of November 2026, a Codex plugin can bundle skills, MCP servers, assets and lifecycle hooks, and the same public catalog serves ChatGPT and Codex. In Codex CLI, /plugins opens the plugin browser; in the ChatGPT desktop app, the Plugins tab does the same, and you type @ to call a plugin or one of its skills explicitly. Plugins aren’t available in the Codex IDE extension. Marketplaces and on/off switches live on the command line and in config:

codex plugin marketplace add owner/repo
codex plugin marketplace add owner/repo --ref main
codex plugin marketplace list
codex plugin marketplace upgrade

# ~/.codex/config.toml: turn a plugin off without uninstalling it
[plugins."my-plugin@local-repo"]
enabled = false

The formats are close cousins. Codex reads marketplaces from .agents/plugins/marketplace.json in a repository or your home directory, and also from .claude-plugin/marketplace.json. OpenAI’s build guide says it accepts Claude-compatible manifests, and sets CLAUDE_PLUGIN_ROOT for hook compatibility, though new Codex plugins use a root plugin.json or .codex-plugin/plugin.json. The practical differences are in what runs where: Codex plugin hooks apply to plugins installed manually in the desktop app, and Codex plugins enable or disable per plugin@marketplace key in config.toml rather than in settings.json scopes. Skills are the common ground, since both read the same SKILL.md format; the Codex skills guide covers that side.

Running a HeyDeer review from Claude Code

Some tools fit Claude Code best as a command it can call. HeyDeer, an AI code review service for GitHub pull requests, has a command-line tool that reviews a branch’s commits and uncommitted changes against the default branch before a pull request exists. Install it with curl -fsSL https://heydeer.ai/install.sh | sh on macOS and Linux, or npm install -g heydeer, run heydeer login, and add an instruction like this to AGENTS.md or CLAUDE.md:

Before opening a pull request, run `heydeer review --json "<what the change does>"`
from the repository root, fix the findings you agree with, and run it again.

With --json, the finished review arrives on standard output as one JSON object, each finding with a severity, file, line and explanation, so Claude can fix what it agrees with. A review takes minutes because HeyDeer checks each finding, which makes it a step for when a branch is ready to push rather than a hook on every edit. Later reviews of the same branch cover only what changed and recheck open findings. HeyDeer also publishes free agent skills, such as ci-audit, at heydeer.ai/skills.

Sources

  1. Claude Code Docs: Plugins overview
  2. Claude Code Docs: Install and manage plugins
  3. Claude Code Docs: Anthropic’s marketplaces
  4. Claude Code Docs: Create a plugin
  5. Claude Code Docs: Create a marketplace
  6. Claude Code Docs: Plugin security and trust
  7. anthropics/claude-plugins-official on GitHub
  8. Claude Marketplace: Plugins
  9. OpenAI docs: Plugins in ChatGPT and Codex
  10. OpenAI Codex docs: Build plugins

Frequently asked questions

What are Claude Code plugins?

Claude Code plugins are packages that add skills, subagents, hooks, MCP servers and language servers to Claude Code as one unit. Each plugin is a directory with a manifest at .claude-plugin/plugin.json. Plugins come from marketplaces, install with /plugin install name@marketplace, and their skills run namespaced as /plugin-name:skill-name.

How do I install a Claude Code plugin?

To install a Claude Code plugin, run /plugin in a session and pick one from the Discover tab, or run /plugin install name@marketplace, review what it adds, and choose user, project or local scope. From a shell, run claude plugin install name@marketplace. If the plugin is in a marketplace you have not added, run /plugin marketplace add owner/repo first.

What is the Claude Code plugin marketplace?

A Claude Code plugin marketplace is a catalog of plugins defined by a .claude-plugin/marketplace.json file in a git repository, directory or URL. Anthropic runs the official marketplace, claude-plugins-official, which Claude Code adds automatically, and a community marketplace, claude-community, added with /plugin marketplace add anthropics/claude-plugins-community. Anyone can publish their own.

Where are Claude Code plugins installed?

Claude Code plugins are fetched into ~/.claude/plugins/, with installed versions cached under ~/.claude/plugins/cache/. Which plugins are enabled is recorded under enabledPlugins in ~/.claude/settings.json for user scope, .claude/settings.json for project scope, and .claude/settings.local.json for local scope.

Are Claude Code plugins safe?

Claude Code plugins run code on your machine with your user permissions: hooks run shell commands, MCP servers start processes, and skills add instructions to Claude’s context. Anthropic’s documentation says to review a plugin before installing it from any marketplace by reading its hooks/hooks.json, .mcp.json and bin/ files. Anthropic does not review third-party marketplaces.

What is the difference between a Claude Code plugin and a skill?

A Claude Code skill is one SKILL.md folder of instructions; a plugin is a package that can hold many skills plus subagents, hooks and MCP servers. A skill in .claude/skills runs as /skill-name, while a skill inside a plugin runs as /plugin-name:skill-name. Use a plugin when you want to share a whole setup, install it across projects or ship versioned updates.

Does Codex have plugins?

Codex has plugins that bundle skills, MCP servers and, in some cases, hooks. In Codex CLI you browse and install them with /plugins, and in the ChatGPT desktop app from the Plugins tab. Marketplaces are added with codex plugin marketplace add, and Codex also reads Claude-compatible marketplace files.

Start with your first PR.

Free plan. No credit card required.

Get started free