Skip to content

Claude Code plugins ​

Everyday Packages of skills, agents, hooks, MCP/LSP, and more — install from marketplaces or load locally (2026).

Plugins are the shareable unit of Claude Code extensions. A single plugin can ship several component types together and install into user, project, or local scope.

Official docs (start here):

See also: Claude Code CLI basics.


Plugin vs skill vs MCP vs hook ​

ConceptWhat it isHow you get it
SkillNamed playbook (SKILL.md or flat .md command) Claude or you invoke (/name or namespaced /plugin:name)Standalone under .claude/skills/ or packaged inside a plugin
Agent (subagent)Specialized subagent definition Claude can spawn.claude/agents/ or plugin agents/
HookEvent handler (e.g. PostToolUse) that runs command/HTTP/MCP/prompt logicProject/user settings or plugin hooks/hooks.json
MCP serverExternal tools/services via Model Context Protocol.mcp.json / settings or bundled in a plugin
LSP serverLanguage intelligence (diagnostics, go-to-def)Official *-lsp plugins or custom .lsp.json
PluginBundle of the above (+ monitors, themes, bin/, settings) with optional plugin.jsonMarketplace install, --plugin-dir, or skills-dir auto-load

Rule of thumb

NeedPrefer
One-off project skill or hookStandalone .claude/
Same tools across repos, team share, versioned releasePlugin + marketplace
Connect GitHub/Jira/Figma without hand-writing MCP configMarketplace plugin that ships MCP
Real-time type errors after editsCode-intelligence (*-lsp) plugin + language server binary on PATH

Standalone skills use short names (/hello). Plugin skills are namespaced (/my-plugin:hello) so plugins don't collide.


Mental model: marketplaces then plugins ​

  1. Add a marketplace — register a catalog (no plugins installed yet).
  2. Install a plugin from that catalog — choose scope.
  3. /reload-plugins (or restart) so the session picks up changes.

Think “add an app store, then install apps.”


Quick start (user) ​

text
# Interactive UI (Discover / Installed / Marketplaces / Errors)
/plugin

# Official marketplace (usually already registered)
/plugin install github@claude-plugins-official

# Demo catalog (example plugins from anthropics/claude-code)
/plugin marketplace add anthropics/claude-code
/plugin install commit-commands@claude-code-plugins

/reload-plugins
/commit-commands:commit

If the official marketplace is missing:

text
/plugin marketplace add anthropics/claude-plugins-official
/plugin marketplace update claude-plugins-official

Community marketplace (third-party, pinned SHAs in catalog):

text
/plugin marketplace add anthropics/claude-plugins-community
/plugin install <plugin-name>@claude-community

Shortcuts: /plugin market ≈ marketplace; rm ≈ remove. Catalog UI also at claude.com/plugins.

Trust

Plugins run with your user privileges (hooks, MCP, scripts). Only add marketplaces and install plugins you trust. Anthropic does not control third-party plugin contents. See Security.


Scopes: user / project / local / managed ​

ScopeSettings fileWho gets it
user (default)~/.claude/settings.jsonYou, all projects
project.claude/settings.json (commit)Whole team via git
local.claude/settings.local.json (gitignored)You, this repo only
managedOrg managed settingsAdmins; read-only for users

Interactive /plugin install prompts for scope. Non-interactive shell CLI:

bash
claude plugin install formatter@my-marketplace
claude plugin install formatter@my-marketplace --scope project
claude plugin install formatter@my-marketplace --scope local

Team repos often set extraKnownMarketplaces + enabledPlugins in project settings so collaborators are prompted after trusting the folder:

json
{
  "extraKnownMarketplaces": {
    "my-team-tools": {
      "source": {
        "source": "github",
        "repo": "your-org/claude-plugins"
      }
    }
  },
  "enabledPlugins": {
    "formatter@my-team-tools": true
  }
}

Details: Configuration scopes · Plugin settings.


Common commands ​

In-session (/plugin …) ​

CommandPurpose
/pluginTabbed manager (Discover, Installed, Marketplaces, Errors)
/plugin install name@marketplaceInstall (then pick scope in UI)
/plugin listList installed marketplace plugins (--enabled / --disabled)
/plugin enable name@marketplaceRe-enable
/plugin disable name@marketplaceDisable without uninstall
/plugin uninstall name@marketplaceRemove
/plugin marketplace add <source>Register catalog
/plugin marketplace listList marketplaces
/plugin marketplace update <name>Refresh catalog
/plugin marketplace remove <name>Drop marketplace (also uninstalls its plugins)
/reload-pluginsApply install/enable/disable without full restart

Identifier form is usually plugin-name@marketplace-name. Marketplace entry name can differ from plugin.json name; recent Claude Code versions accept either for enable/disable (check your version if it fails).

Shell CLI (claude plugin …) ​

Useful for scripts/CI (non-interactive):

bash
claude plugin install <plugin>@<marketplace> [--scope user|project|local]
claude plugin uninstall <plugin>@<marketplace> [--scope …] [--keep-data] [--prune]
claude plugin enable <plugin>@<marketplace> [--scope …]
claude plugin disable <plugin>@<marketplace> [--scope …]
claude plugin disable --all
claude plugin list [--json] [--available]   # --available needs --json
claude plugin details <name>
claude plugin update <plugin>@<marketplace> [--scope …]
claude plugin validate ./my-plugin [--strict]
claude plugin init <name> [--with skills hooks mcp …]
claude plugin prune [--scope …] [--dry-run]
claude plugin tag [path] [--push] [--dry-run]

Session-only load (dev / no marketplace):

bash
claude --plugin-dir ./my-plugin
claude --plugin-dir ./plugin-one --plugin-dir ./plugin-two
claude --plugin-dir ./my-plugin.zip          # zip needs recent Claude Code
claude --plugin-url https://example.com/my-plugin.zip

Local --plugin-dir wins over a same-named marketplace install for that session (unless managed settings force enable/disable).

If a flag is missing on your build, run claude plugin --help / claude --help — don't invent options.


Marketplace sources ​

text
# GitHub owner/repo (expects .claude-plugin/marketplace.json in repo)
/plugin marketplace add anthropics/claude-code

# Full Git URL (include https:// and usually .git)
/plugin marketplace add https://gitlab.com/company/plugins.git
/plugin marketplace add [email protected]:company/plugins.git
/plugin marketplace add https://gitlab.com/company/plugins.git#v1.0.0

# Local path or marketplace.json
/plugin marketplace add ./my-marketplace
/plugin marketplace add ./path/to/marketplace.json

# Hosted marketplace.json URL
/plugin marketplace add https://example.com/marketplace.json

Git host URLs

Claude Code v2.1.196+ treats bare host/owner/repo.git (no scheme) as invalid GitHub shorthand — always use https:// or git@…. URL-only marketplaces have limits for plugins that use relative paths; prefer git-based catalogs when possible.


Directory layout ​

Installed plugin cache (user machine) ​

Marketplace plugins are copied into a local cache (not used in-place from the clone):

  • Cache: ~/.claude/plugins/cache
  • Persistent data (survives updates): ~/.claude/plugins/data/{plugin-id}/
  • Enable/disable bookkeeping: scopes' settings.json → enabledPlugins

Clear cache if skills go missing after a bad install:

bash
rm -rf ~/.claude/plugins/cache
# then reinstall / restart

(Windows: under %USERPROFILE%\.claude\plugins\….)

Authoring a plugin (plugin root) ​

Only plugin.json belongs under .claude-plugin/. Put skills/, agents/, hooks/, etc. at the plugin root, not inside .claude-plugin/.

text
my-plugin/
├── .claude-plugin/
│   └── plugin.json          # optional if defaults + dir name are enough
├── skills/
│   └── code-review/
│       └── SKILL.md
├── commands/                # legacy/flat .md skills; prefer skills/ for new work
├── agents/
│   └── security-reviewer.md
├── hooks/
│   └── hooks.json
├── workflows/
├── output-styles/
├── themes/                  # experimental
├── monitors/
│   └── monitors.json        # experimental
├── bin/                     # on Bash tool PATH while plugin enabled
├── .mcp.json
├── .lsp.json
└── settings.json            # limited keys (e.g. agent, subagentStatusLine)

Single-skill plugin: you may put SKILL.md at the plugin root (set frontmatter name for a stable invoke name).

Minimal manifest:

json
{
  "name": "my-first-plugin",
  "description": "A greeting plugin",
  "version": "1.0.0",
  "author": { "name": "Your Name" }
}
  • name: kebab-case id + skill namespace (/my-first-plugin:hello)
  • version: if set, updates only when you bump it; if omitted, git SHA is the version
  • Paths in manifest must be relative and start with ./

Path helpers in hooks/MCP/LSP:

VariableMeaning
${CLAUDE_PLUGIN_ROOT}Install dir (ephemeral across updates)
${CLAUDE_PLUGIN_DATA}Persistent ~/.claude/plugins/data/…
${CLAUDE_PROJECT_DIR}Project root

Installed plugins cannot path-traverse outside the plugin dir (../shared dies after cache copy). Same-marketplace symlinks can share files; see Plugin caching.


How plugins ship components together ​

ComponentLocationBehavior when plugin enabled
Skillsskills/<name>/SKILL.mdNamespaced commands; model may auto-invoke by description
Commandscommands/*.mdFlat skill files (prefer skills/ for new plugins)
Agentsagents/*.mdAppear as scoped subagents (plugin:agent)
Hookshooks/hooks.jsonSame events as user hooks (PostToolUse, SessionStart, …)
MCP.mcp.json or manifestServers start with plugin; tools join Claude's toolkit
LSP.lsp.jsonNeeds binary on host PATH
Monitorsmonitors/monitors.jsonBackground stdout → session notifications (experimental)
Themesthemes/*.jsonShow in /theme (experimental)
bin/executablesAvailable to Bash tool without full path

Scaffold personal auto-loaded plugin under skills dir:

bash
claude plugin init my-tool
claude plugin init my-tool --with skills hooks mcp
# → ~/.claude/skills/my-tool/ loads as my-tool@skills-dir (no marketplace)

Project skills-dir plugins: <repo>/.claude/skills/<name>/.claude-plugin/plugin.json — load only after workspace trust; launch from repo root (they do not walk up parent dirs the way plain skills do).

Convert existing .claude/commands|agents|skills → plugin structure when you're ready to share (migrate guide). After migrate, remove duplicates from .claude/ so agents don't shadow plugin agents.


Official marketplace highlights ​

Registered automatically on interactive first launch as claude-plugins-official (non-interactive scripts may need an explicit claude plugin marketplace add anthropics/claude-plugins-official).

Examples (names from docs — catalog can grow):

AreaExamples
Integrations (MCP)github, gitlab, atlassian, linear, notion, figma, vercel, supabase, slack, sentry, …
Workflowscommit-commands, pr-review-toolkit, plugin-dev, agent-sdk-dev, security-guidance
Output stylesexplanatory-output-style, learning-output-style
Code intelligencetypescript-lsp, pyright-lsp, rust-analyzer-lsp, gopls-lsp, …

LSP plugins do not install the language server binary — install typescript-language-server, pyright, gopls, etc. yourself or Errors tab reports Executable not found in $PATH.


Reload, cost, auto-update ​

  • After install/enable/disable: /reload-plugins. Shows counts of plugins, skills, agents, hooks, plugin MCP/LSP.
  • Plugins add always-on context (descriptions, etc.) every turn; heavy MCP can be costly. Prefer claude plugin details <name> and Discover-tab Context cost / Will install lists (newer versions).
  • /reload-plugins may warn and skip when MCP reload would bust prompt cache badly; docs mention --force when you accept the cost.
  • Marketplace auto-update: Official Anthropic marketplaces default on; third-party/local default off. Toggle per marketplace in UI. Env: DISABLE_AUTOUPDATER, optional FORCE_AUTOUPDATE_PLUGINS=1 to keep plugins updating while pinning the CLI.
  • Installed tab may group Not used recently plugins (context cost hygiene). Themes/output styles/monitors/workflows aren't judged the same way as invoked skills.

Troubleshooting (short) ​

SymptomTry
/plugin unknownUpdate Claude Code (claude update / reinstall); restart
Marketplace not found/plugin marketplace add … then update
Plugin not in catalogmarketplace update; check name@marketplace
Skills missingStructure wrong (components inside .claude-plugin/?); clear ~/.claude/plugins/cache; reinstall
LSP errorsBinary on PATH; check Errors tab
Enable says already disabledName mismatch marketplace vs plugin.json — upgrade CLI or try both ids
URL marketplace path errorsPrefer git marketplace; see marketplace troubleshooting

Validate while authoring:

bash
claude plugin validate ./my-plugin
claude plugin validate ./my-plugin --strict
claude --debug   # load paths and errors

Best practices (helpers / public docs) ​

For a public cheatsheet site (this repo's style):

  1. Link official pages for flags and schemas — product moves fast (2.1.x min-versions on many features).
  2. Document scopes (user vs project vs local) before long flag lists.
  3. Emphasize namespace of plugin skills vs short project skills.
  4. Separate install UX (/plugin) from automation (claude plugin …).
  5. Call out trust + cache copy (no external path traversal after install).
  6. For teams: show extraKnownMarketplaces + enabledPlugins snippets, not only interactive steps.
  7. Mark experimental bits (themes, monitors under experimental.*) and “check your version.”
  8. Don't invent flags — when unsure: “verify with claude plugin --help.”

Authoring flow that works well:

text
.claude/skills experiment → claude --plugin-dir ./pkg → marketplace / team settings → /plugin install

2026 notes / gotchas ​

Tracked from current Anthropic docs (always re-check against your installed claude --version):

  • Plugin system is first-class: marketplaces, scopes, dependencies, relevance suggestions, context-cost UI.
  • commands/ vs skills/: new work should use skills/<name>/SKILL.md; flat commands/ still supported.
  • Name dualism: marketplace entry name vs plugin.json name — enable/disable quirks fixed around v2.1.195+.
  • Git URL scheme required (v2.1.196+).
  • pluginConfigs / userConfig: only user + managed + --settings sources (project settings intentionally ignored for secrets/injection risk); v2.1.207+ tightened ${user_config.*} in shell-form hooks/monitors.
  • defaultEnabled: false for opt-in plugins: v2.1.154+.
  • Themes/monitors are experimental (schema may move under experimental.*).
  • Orphaned plugin cache versions kept ~14 days for concurrent sessions.
  • Community marketplace ≠ official; submissions go to community, not automatic official listing.
  • Managed orgs can restrict marketplaces (strictKnownMarketplaces, allowlists, plugin relevance v2.1.152+).

See also ​