Claude Code plugins explained: install, build, validate

What a Claude Code plugin is, the documented commands to install one, how to build and validate your own, and what to review before you trust a plugin.

Updated · Markdown version

Short answer

Read on 2026-11-26: a Claude Code plugin is a directory of skills, agents, hooks, MCP servers or other components that Claude Code installs and loads as one unit, and most plugins come from a marketplace you install by name. You install one with /plugin install <name>@<marketplace>, build one with a folder plus an optional .claude-plugin/plugin.json, and check it with claude plugin validate. Treat every plugin as code you are choosing to run, because it runs with your user privileges.

What a plugin is, and what it bundles

As read on 2026-11-26, the plugins overview in Anthropic's Claude Code documentation names these components: skills (SKILL.md instructions Claude loads when relevant), agents (subagent definitions Claude can delegate to), hooks (commands Claude Code runs at points in its lifecycle), a hooks module (hooks written as JavaScript functions; a plugin that has one is called a mod) and MCP servers. The manifest reference's standard layout also lists commands, LSP servers, output styles, workflows, themes, monitors and an executables folder (bin/).

The manifest is a JSON file at .claude-plugin/plugin.json. It is optional. Without it Claude Code loads the components it finds in the standard layout, and the plugin name comes from the marketplace entry or, with --plugin-dir, from the directory name. name is the only required key when you do write one. Part of the standard layout from the manifest reference:

ComponentDefault location
Manifest.claude-plugin/plugin.json
Skillsskills/, one <name>/SKILL.md per skill
Commands (older form of skills)commands/
Agentsagents/
Hookshooks/hooks.json
MCP servers.mcp.json
LSP servers.lsp.json
Monitorsmonitors/monitors.json
Executablesbin/

The plugin name becomes the prefix on every skill and agent the plugin provides, so a skill hello in a plugin named my-first-plugin runs as /my-first-plugin:hello. Hooks have no prefix.

The same plugin format also installs on claude.ai and in Cowork, where a different set of components loads. As read on 2026-11-26, Anthropic's plugins page on claude.com lists skills, commands and MCP connectors for chat, Cowork and Claude Code, and agents for Cowork and Claude Code only. The Claude Code manifest reference adds that claude.ai and Cowork do not install a plugin that has a top-level bin/ directory.

Plugin or standalone skill?

The docs say skills, subagents, hooks and MCP servers all work on their own without a plugin, and that a skill saved in ~/.claude/skills/ is available in every project on your machine. They say to use a plugin when you want several of those packaged as one unit, and to make one to share your own setup, install it in many projects, or publish versioned releases. For one person and one instruction set, a plain skill is simpler. The difference between the options is covered in Claude skills vs MCP vs plugins: what each one is for.

Install a plugin, step by step

The Claude Code install page, as read on 2026-11-26, uses commit-commands from Anthropic's official marketplace as its example. Claude Code adds that marketplace the first time you start an interactive terminal session, unless a managed policy blocks it.

  1. Start Claude Code in your project:
claude
  1. Open the plugin's details with the install command. In a session this does not install right away; it opens the /plugin panel on that plugin's details so you can review it and choose a scope first:
/plugin install commit-commands@claude-plugins-official
  1. Read the details pane. It can show a "Will install" list (commands, agents, skills, hooks, MCP and LSP servers) and, for plugins in Anthropic's official marketplace, a context-cost estimate with "Every turn" and "When invoked" figures.
  2. Choose a scope: user (every project on this machine), project (everyone who works in this repository, through the committed .claude/settings.json), or local (you, in this repository only).
  3. Read the last sentence of the install summary. Plugin is now active. means the plugin is usable in this session. Run /reload-plugins to apply. means a reload is needed: the panel closes and Claude Code runs that reload for you, unless the reload would invalidate the prompt cache, in which case it warns and leaves the plugin pending.
  4. Confirm. Type / and look for /commit-commands:commit, open the Installed tab in /plugin, or run this in your shell:
claude plugin list

Expected, from the documentation: claude plugin list prints the plugin with Version, Scope and Status lines.

To install from your shell, for example in a setup script, the documentation gives:

claude plugin install formatter@your-org --scope project

Expected, from the documentation: Installed plugin: formatter@your-org (scope: project). If the plugin is in a marketplace you have not added, add the marketplace first, for example /plugin marketplace add your-org/plugins#v1.2.0 to pin a tag. The docs also give a one-step form that adds the marketplace and installs: /plugin install deploy-helper --marketplace your-org/plugins in a session (Claude Code v2.1.275 or later) and claude plugin install deploy-helper --marketplace your-org/plugins in a shell (v2.1.292 or later). More on marketplaces is in Add a Claude Code Plugin Marketplace: Steps and Trust.

Scopes and teammates

User scope records the plugin under enabledPlugins in ~/.claude/settings.json, and local scope in .claude/settings.local.json. Project scope writes the entry to .claude/settings.json, which you commit. The docs state that committing it turns the plugin on for collaborators but does not download it to their machines. Each collaborator also runs claude plugin install <name>@<marketplace> --scope project once per clone. When the same plugin is set at several scopes, the local setting overrides the project setting, and the project setting overrides the user setting.

Manage and update

Run /plugin and press Tab to reach the Installed tab, where you can enable, disable, update or uninstall each plugin. From the shell, the install page gives this example, which disables and re-enables a plugin, then uninstalls it at project scope:

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

To update one plugin from the shell, the documented form is claude plugin update <plugin>@<marketplace>. The commands reference says the new version loads in your next session, or after you run /reload-plugins in a running one. The install page says there is no command that updates every plugin at once.

Per the install page, auto-update is on by default for claude-plugins-official and the other official marketplace names except knowledge-work-plugins and first-party-plugins, plus marketplaces added from claude.ai. It is off by default for every other marketplace, including the community marketplace, third-party marketplaces and local development marketplaces.

Build your first plugin in five minutes

The create page walks through a one-skill plugin. The files and commands below match that page character for character, and the validation step was run on Claude Code 2.1.330 on 2026-11-26.

  1. Create the folders:
mkdir -p my-first-plugin/.claude-plugin
mkdir -p my-first-plugin/skills/hello
  1. Save the manifest as my-first-plugin/.claude-plugin/plugin.json:
{
  "name": "my-first-plugin",
  "description": "A greeting plugin to learn the basics",
  "version": "1.0.0",
  "author": {
    "name": "Your Name"
  }
}
  1. Save the skill as my-first-plugin/skills/hello/SKILL.md:
---
name: hello
description: Greet the user with a friendly message
disable-model-invocation: true
---

Greet the user warmly and ask how you can help them today.
  1. Validate it from your shell:
claude plugin validate ./my-first-plugin

Output seen on 2026-11-26, abridged: Provides:, then skills: my-first-plugin:hello, and the last line Validation passed with exit code 0. The command also printed a "Plugin directory checks" block saying a README.md and a LICENSE file (or a license field) are missing, plus a warning that no icon was found. The output states that these checks do not change the result, and that --profile directory makes the command fail on problems the directory refuses a submission for.

  1. Load it for one session without installing it:
claude --plugin-dir ./my-first-plugin

Then run /my-first-plugin:hello. The documentation says Claude replies with a greeting. This step was not run for this guide because it calls a model.

The plugin loads only in sessions you start with --plugin-dir. When you edit the plugin's files during the session, /reload-plugins loads the changes. --plugin-dir also accepts a .zip archive or, from Claude Code v2.1.265, a folder that holds several plugins; --plugin-url fetches a .zip archive from a URL for one session.

Other ways to load your own plugin

claude plugin init my-tool creates ~/.claude/skills/my-tool/ with a .claude-plugin/plugin.json and a root SKILL.md. Per the create page, it auto-loads from the next session as my-tool@skills-dir, or after /reload-plugins in the current one. The create page also says that once Anthropic's plugin-dev plugin from the claude-plugins-official marketplace is installed, /plugin-dev:create-plugin followed by a description has Claude walk you through designing, creating and validating a plugin.

Convert an existing .claude folder

If you already have commands, agents or skills under .claude/, copy each directory you have into the plugin root:

cp -r .claude/commands my-plugin/
cp -r .claude/agents my-plugin/
cp -r .claude/skills my-plugin/

Move hooks by copying the hooks object from your settings file into my-plugin/hooks/hooks.json, which wraps the event map in a top-level "hooks" key. The docs warn that a hook in both your settings file and hooks/hooks.json runs twice each time its event fires, so delete the originals and remove the hooks object from your settings file once the plugin works.

Publish: your own marketplace

A marketplace is a repository or directory with a .claude-plugin/marketplace.json file. Per the marketplace reference, name, owner and plugins are required at the top level, and name and source are required in each plugin entry. The create-marketplace page gives these commands, which were not run for this guide:

claude plugin validate ./my-marketplace
claude plugin marketplace add ./my-marketplace
claude plugin install my-first-plugin@my-marketplace

Expected, from the documentation: the validate output ends with Validation passed, the add command prints Added marketplace: my-marketplace (declared in user settings), and the install prints Installed plugin: my-first-plugin@my-marketplace (scope: user). Keep the entry name and the manifest name the same: when they differ and someone installs by the manifest name, Claude Code reports Plugin "<manifest-name>" not found in marketplace "<marketplace>". A source can be a relative path, or one of the github, git-subdir (a subdirectory of another repository), url (a git repository on any host), archive (a zip file downloaded over HTTPS), npm or command source types. The docs also describe submitting a plugin to Anthropic's directory: after it passes review, people can add it on claude.ai and in Cowork, and it reaches Claude Code through their account.

Trust: what a plugin can do to your machine

The security page says a plugin you install can execute arbitrary code on your machine with your user privileges. As read on 2026-11-26 it lists hooks (shell commands at points in Claude Code's lifecycle), monitors (background shell commands that Claude Code starts on its own), mods (JavaScript inside Claude Code with your permissions), MCP and LSP servers (a stdio MCP server runs as a process on your machine, and Claude Code also starts the declared language servers), a bin/ directory added to the PATH of the Bash tool's shell, and skills, commands and agents, which enter Claude's context as instructions. Permission rules and the sandbox cover the tool calls Claude makes, not the code a plugin runs by itself: hooks, monitors, MCP servers and LSP servers run outside the sandbox.

Before installing, the page gives this review: run claude plugin marketplace list to print the source each marketplace was added from, read the "Will install" section of the details pane in /plugin, read hooks/hooks.json, .mcp.json and every file in bin/, then clone the repository and run claude --plugin-dir <plugin directory> plugin details <plugin name> to print a Component inventory. When auto-update is on for the marketplace, Claude Code updates the plugin in the background, so the files you reviewed can change on disk. To remove a plugin you no longer trust, run claude plugin uninstall <plugin> with the --scope you installed it at.

Context cost is the other price. The docs say that for each skill, agent and command Claude can invoke on its own, the name and description are in Claude's context on every turn, and that those tokens count toward your usage. claude plugin details <name> shows an Always-on line, the number of tokens the plugin adds to every session where it is enabled, and the Not used recently group on the Installed tab lists plugins you could turn off. For a folder of skills from an unknown source, Check a Claude Skill From GitHub Before Installing It applies the same reading habits.

What goes wrong and how to fix it

These come from the create, troubleshooting and manifest reference pages, read on 2026-11-26, and from claude plugin validate runs on 2026-11-26 with Claude Code 2.1.330.

  1. The command never appears after install. Cause: not reloaded, or the load failed. Fix: open the Errors tab in /plugin, then run /reload-plugins. If the Errors tab shows Plugin "<name>" not cached at <path>, run claude plugin install <name>@<marketplace> in your shell (add --scope project when the project's .claude/settings.json enables the plugin), then /reload-plugins.
  2. Teammates see `Plugin "<name>" is on in project settings but isn't installed here`. Cause: a repository's settings can enable a plugin but do not install it. Fix: claude plugin install <name>@<marketplace> --scope project, then reload.
  3. The plugin loads but its skills are missing. Cause: skills/ sits inside .claude-plugin/, or a skills entry in the manifest points at a file. The docs say only plugin.json goes inside .claude-plugin/. Fix: move skills/ to the plugin root, point each skills entry at a directory that contains SKILL.md, and run /reload-plugins.
  4. `commands path not found` or `Path not found`. Cause: a component path in the manifest points at nothing. The manifest reference says every component path is relative to the plugin root and must start with ./. In a local test on 2026-11-26 with "commands": "commands/foo.md", claude plugin validate printed commands: Invalid input and commands: Path not found: commands/foo.md, then Validation failed with exit code 1. Fix: use ./commands/foo.md and create the file.
  5. `claude --plugin-dir ./my-marketplace` loads nothing. Cause: --plugin-dir takes the plugin's root directory. Pointed at a marketplace root, Claude Code does not read marketplace.json, so a plugin under plugins/ does not load and you see no error. Fix: point it at ./my-marketplace/plugins/my-plugin, or add the marketplace.
  6. Name rejected. In a local test on 2026-11-26, validating a plugin named claude-tools gave Plugin name "claude-tools" is reserved: it passes as one of Anthropic's own and exit code 1. Per the manifest reference, names starting with claude-, anthropic-, anthropics- or cc-plugin- are errors in claude plugin validate, though Claude Code still installs and loads a plugin with such a name. Fix: name it for what it does.
  7. A `CLAUDE.md` in the plugin root does nothing. In a local test on 2026-11-26, validation warned CLAUDE.md at the plugin root is not loaded as project context and still passed with warnings. Fix: put the instructions in a skill.
  8. Hook never fires or the script path breaks. Event names are case-sensitive, so check yours matches exactly (for example PostToolUse), and for a tool event check that the matcher matches the tool name. Then turn on debug logging, trigger the event and read the debug log. If the error shows the plugin's path cut off at a space, wrap ${CLAUDE_PLUGIN_ROOT} in double quotes in the shell-form command or use exec form. Claude Code Hooks: Setup, One Example, and Failure Modes goes deeper.
  9. State disappears after an update. ${CLAUDE_PLUGIN_ROOT} is the path of the plugin's installed version, and the manifest reference says not to write state there because it changes when the plugin updates. Write to ${CLAUDE_PLUGIN_DATA}, which is kept across plugin updates and, by default, deleted when you uninstall the plugin from the last place it is installed.
  10. Works with `--plugin-dir` but not after install. Claude Code copies an installed plugin into its cache and loads it from there, so a path that reaches outside the plugin's own directory, such as ../shared-utils, points at nothing. Fix, per the troubleshooting page: move the shared files inside the plugin directory, or reference them through a symlink inside it.

What the catalogue shows

None of the skills below is a plugin, and the Skill Almanac catalogue does not list plugins as such. They are the closest skills for the jobs around a plugin: reviewing a skill folder, writing hooks, moving rules, and building MCP servers. Every row was read from the skill's live page on 2026-11-26.

SkillPlatform Score and stateEfficacy verdictInstall check passedDemo video
skill-safety-audit57, provisionalLIFT (single-run, 2026-11-21)Claude Code 2.1.330, 2026-11-23yes
agent-hooks-authoring47, provisionalnot measuredClaude Code 2.1.330, 2026-11-23yes
mcp-server-builder56, provisionalLIFT (single-run, 2026-11-21)Claude Code 2.1.330, 2026-11-23yes
rules-to-skills-migration45, provisionalnot measuredClaude Code 2.1.330, 2026-11-23yes

"Single-run" means one run per configuration over 3 tasks with a blind grader, which the skill pages say is not a measurement. "Not measured" means no with/without test has been run, so those two rows rest on a static review only. None of these results shows that a skill helps with plugin work in particular, and an install check says the files install, not that the skill works. The demo video, where yes, is on the skill page.

FAQ

What is a Claude Code plugin?

It is a directory of skills, agents, hooks, MCP servers or other components, with an optional plugin.json manifest, that Claude Code installs and loads as one unit. Most come from a marketplace. As read on 2026-11-26 the docs say a plugin can also be loaded from a folder with --plugin-dir.

How do I install a Claude Code plugin?

Run /plugin install <name>@<marketplace> in a session, choose a scope in the panel, and confirm with / or claude plugin list. From a shell, use claude plugin install <name>@<marketplace>, whose --scope defaults to user. Installing from any marketplace other than Anthropic's official one requires adding that marketplace first.

What is the difference between a plugin and a skill?

A skill is one kind of component, a SKILL.md with instructions. A plugin packages skills with agents, hooks and servers, and puts the plugin name in front of its skills, as in /plugin-name:skill-name. A skill in ~/.claude/skills/ works without any plugin.

Are Claude Code plugins safe?

Not by default. The security page says an installed plugin can execute arbitrary code with your user privileges, and that hooks, monitors, MCP servers and LSP servers run outside the sandbox. Read hooks/hooks.json, .mcp.json and the bin/ files, and check the marketplace source, before you install.

Do plugins cost context when I am not using them?

Yes. For each skill, agent and command Claude can invoke on its own, the name and description are in context on every turn, and those tokens count toward usage even in sessions where nothing from the plugin runs. claude plugin details <name> shows the Always-on figure.

How do I test a plugin before publishing it?

Run claude plugin validate ./my-plugin, then claude --plugin-dir ./my-plugin, and use /reload-plugins after edits. The docs also describe claude plugin eval, which runs your test cases with and without the plugin and scores the difference.

Do Claude Code plugins work in Cowork and claude.ai?

The same format installs there, but a different set of components loads. As read on 2026-11-26, agents load in Cowork and Claude Code and are ignored in chat, and claude.ai and Cowork do not install a plugin that has a top-level bin/ directory.

Next steps

Platform Score is our assessment under a published method. It is not a safety guarantee.

Terms this guide uses

This item is a worked example in the AI glossary for:

Next steps

  1. Add a Claude Code Plugin Marketplace: Commands, Scopes and Trust Read next.
  2. Claude skills vs MCP vs plugins: what each one is for Read next.
  3. Claude Code compatibility Install evidence per tool.
  4. All guides by topic Browse everything.

Sources