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):
- Discover and install plugins
- Create plugins
- Plugins reference
- Plugin marketplaces
- Plugin catalog
- Related: Skills · Hooks · MCP · Settings / scopes
See also: Claude Code CLI basics.
Plugin vs skill vs MCP vs hook
| Concept | What it is | How you get it |
|---|---|---|
| Skill | Named 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/ |
| Hook | Event handler (e.g. PostToolUse) that runs command/HTTP/MCP/prompt logic | Project/user settings or plugin hooks/hooks.json |
| MCP server | External tools/services via Model Context Protocol | .mcp.json / settings or bundled in a plugin |
| LSP server | Language intelligence (diagnostics, go-to-def) | Official *-lsp plugins or custom .lsp.json |
| Plugin | Bundle of the above (+ monitors, themes, bin/, settings) with optional plugin.json | Marketplace install, --plugin-dir, or skills-dir auto-load |
Rule of thumb
| Need | Prefer |
|---|---|
| One-off project skill or hook | Standalone .claude/ |
| Same tools across repos, team share, versioned release | Plugin + marketplace |
| Connect GitHub/Jira/Figma without hand-writing MCP config | Marketplace plugin that ships MCP |
| Real-time type errors after edits | Code-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
- Add a marketplace — register a catalog (no plugins installed yet).
- Install a plugin from that catalog — choose scope.
/reload-plugins(or restart) so the session picks up changes.
Think “add an app store, then install apps.”
Quick start (user)
# 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:commitIf the official marketplace is missing:
/plugin marketplace add anthropics/claude-plugins-official
/plugin marketplace update claude-plugins-officialCommunity marketplace (third-party, pinned SHAs in catalog):
/plugin marketplace add anthropics/claude-plugins-community
/plugin install <plugin-name>@claude-communityShortcuts: /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
| Scope | Settings file | Who gets it |
|---|---|---|
| user (default) | ~/.claude/settings.json | You, all projects |
| project | .claude/settings.json (commit) | Whole team via git |
| local | .claude/settings.local.json (gitignored) | You, this repo only |
| managed | Org managed settings | Admins; read-only for users |
Interactive /plugin install prompts for scope. Non-interactive shell CLI:
claude plugin install formatter@my-marketplace
claude plugin install formatter@my-marketplace --scope project
claude plugin install formatter@my-marketplace --scope localTeam repos often set extraKnownMarketplaces + enabledPlugins in project settings so collaborators are prompted after trusting the folder:
{
"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 …)
| Command | Purpose |
|---|---|
/plugin | Tabbed manager (Discover, Installed, Marketplaces, Errors) |
/plugin install name@marketplace | Install (then pick scope in UI) |
/plugin list | List installed marketplace plugins (--enabled / --disabled) |
/plugin enable name@marketplace | Re-enable |
/plugin disable name@marketplace | Disable without uninstall |
/plugin uninstall name@marketplace | Remove |
/plugin marketplace add <source> | Register catalog |
/plugin marketplace list | List marketplaces |
/plugin marketplace update <name> | Refresh catalog |
/plugin marketplace remove <name> | Drop marketplace (also uninstalls its plugins) |
/reload-plugins | Apply 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):
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):
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.zipLocal --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
# 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.jsonGit 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:
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/.
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:
{
"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:
| Variable | Meaning |
|---|---|
${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
| Component | Location | Behavior when plugin enabled |
|---|---|---|
| Skills | skills/<name>/SKILL.md | Namespaced commands; model may auto-invoke by description |
| Commands | commands/*.md | Flat skill files (prefer skills/ for new plugins) |
| Agents | agents/*.md | Appear as scoped subagents (plugin:agent) |
| Hooks | hooks/hooks.json | Same events as user hooks (PostToolUse, SessionStart, …) |
| MCP | .mcp.json or manifest | Servers start with plugin; tools join Claude's toolkit |
| LSP | .lsp.json | Needs binary on host PATH |
| Monitors | monitors/monitors.json | Background stdout → session notifications (experimental) |
| Themes | themes/*.json | Show in /theme (experimental) |
bin/ | executables | Available to Bash tool without full path |
Scaffold personal auto-loaded plugin under skills dir:
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):
| Area | Examples |
|---|---|
| Integrations (MCP) | github, gitlab, atlassian, linear, notion, figma, vercel, supabase, slack, sentry, … |
| Workflows | commit-commands, pr-review-toolkit, plugin-dev, agent-sdk-dev, security-guidance |
| Output styles | explanatory-output-style, learning-output-style |
| Code intelligence | typescript-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-pluginsmay warn and skip when MCP reload would bust prompt cache badly; docs mention--forcewhen 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, optionalFORCE_AUTOUPDATE_PLUGINS=1to 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)
| Symptom | Try |
|---|---|
/plugin unknown | Update Claude Code (claude update / reinstall); restart |
| Marketplace not found | /plugin marketplace add … then update |
| Plugin not in catalog | marketplace update; check name@marketplace |
| Skills missing | Structure wrong (components inside .claude-plugin/?); clear ~/.claude/plugins/cache; reinstall |
| LSP errors | Binary on PATH; check Errors tab |
| Enable says already disabled | Name mismatch marketplace vs plugin.json — upgrade CLI or try both ids |
| URL marketplace path errors | Prefer git marketplace; see marketplace troubleshooting |
Validate while authoring:
claude plugin validate ./my-plugin
claude plugin validate ./my-plugin --strict
claude --debug # load paths and errorsBest practices (helpers / public docs)
For a public cheatsheet site (this repo's style):
- Link official pages for flags and schemas — product moves fast (2.1.x min-versions on many features).
- Document scopes (user vs project vs local) before long flag lists.
- Emphasize namespace of plugin skills vs short project skills.
- Separate install UX (
/plugin) from automation (claude plugin …). - Call out trust + cache copy (no external path traversal after install).
- For teams: show
extraKnownMarketplaces+enabledPluginssnippets, not only interactive steps. - Mark experimental bits (themes, monitors under
experimental.*) and “check your version.” - Don't invent flags — when unsure: “verify with
claude plugin --help.”
Authoring flow that works well:
.claude/skills experiment → claude --plugin-dir ./pkg → marketplace / team settings → /plugin install2026 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/vsskills/: new work should useskills/<name>/SKILL.md; flatcommands/still supported.- Name dualism: marketplace entry name vs
plugin.jsonname — enable/disable quirks fixed around v2.1.195+. - Git URL scheme required (v2.1.196+).
pluginConfigs/userConfig: only user + managed +--settingssources (project settings intentionally ignored for secrets/injection risk); v2.1.207+ tightened${user_config.*}in shell-form hooks/monitors.defaultEnabled: falsefor 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
- Claude Code CLI — install,
/init, MCP basics - AI agents overview — Codex / Gemini comparison
- apsolut-skills — personal skill packs (standalone skills; package as plugins when sharing)