DEV Community

Attila Albert
Attila Albert

Posted on

Extend your AI coding assistant with Claude Code plugins: install, scope, update and remove them safely

By Elena Novak, NBT

A plugin is the quickest way to add a whole bundle to Claude Code at once. Per the official docs, installing one adds its skills, agents, hooks and MCP servers to Claude Code on your machine. That's also why it deserves a minute of care: a plugin can run hooks and start servers, not just add a few prompts.

This is a practical walkthrough of the plugin lifecycle: install, choose a scope, check what it costs, keep it updated and remove it cleanly. It's based on Claude Code's "Install and manage plugins" page (code.claude.com/docs, checked 6 December 2026). If you're still choosing an AI coding assistant in the first place, start there.

Step 1: Look before you install

In a Claude Code session, run the install command with the plugin's name and its marketplace. The docs use Anthropic's commit-commands plugin as the example:

/plugin install commit-commands@claude-plugins-official
Enter fullscreen mode Exit fullscreen mode

In a session this doesn't install straight away. It opens the /plugin panel on that plugin's details, so you can review first. Read three things there:

  • Will install: the commands, agents, skills, hooks, and MCP and LSP servers the plugin adds.
  • Last updated: shown for plugins in Anthropic's official marketplace.
  • Context cost: for official-marketplace plugins, two token estimates. Every turn is what the plugin adds to each message you send. When invoked is what its skills and agents add once Claude loads them.

That context cost line is easy to skip and worth reading. A plugin that adds a lot on every turn makes every message in every session a little more expensive, whether you use it or not.

To browse instead of naming a plugin, run /plugin on its own. It opens on the Discover tab, where you can type to search. Note from the docs: the details pane you reach from the Discover list doesn't show the context cost estimates. Opening the plugin by naming its marketplace, as above, does.

Step 2: Choose the right scope

After reviewing, you pick one of three scopes. Each writes to a different settings file:

Scope Who gets it Where it's recorded
User You, in every project on this machine enabledPlugins in ~/.claude/settings.json
Project Everyone who works in this repository .claude/settings.json (committed)
Local You, in this repository only .claude/settings.local.json

A rule of thumb: user scope for personal tools you want everywhere, project scope for tools the whole team should share, local scope for trying something out.

One project-scope detail catches teams out. Committing the entry turns the plugin on for collaborators, but it doesn't download it to their machines. Each collaborator also runs this once per clone:

claude plugin install <name>@<marketplace> --scope project
Enter fullscreen mode Exit fullscreen mode

If the same plugin is set at several scopes, local overrides project, and project overrides user.

Step 3: Read the install summary

The last sentence of the install summary tells you whether the plugin works yet:

  • Plugin is now active. You're done.
  • Plugin is now active. followed by a note starting Its bundled MCP server needs: open the plugin on the Installed tab and choose Configure.
  • Run /reload-plugins to apply.: a reload is needed.
  • A message containing The plugin couldn't: check the Errors tab in /plugin.

Then confirm it: type / and look for the plugin's skills, named /<plugin>:<skill>. For the example, /commit-commands:commit appears. From your shell, claude plugin list prints the same list with version, scope and status.

Step 4: Install from a script

For a setup script or a new machine, install from the shell without opening a session:

claude plugin install formatter@your-org --scope project
Enter fullscreen mode Exit fullscreen mode

Shell installs use user scope unless you pass --scope. The plugins load the next time you start Claude Code, or after /reload-plugins in a session that's already open.

One thing to know for brand-new machines: the official marketplace is registered the first time someone opens an interactive session. A script that runs before that should add it first:

claude plugin marketplace add anthropics/claude-plugins-official
Enter fullscreen mode Exit fullscreen mode

Step 5: Add other marketplaces carefully

Plugins from outside the official marketplace need their marketplace added once. Sources can be a GitHub repo, any git URL, a local folder or a hosted marketplace.json:

/plugin marketplace add your-org/plugins#v1.2.0
Enter fullscreen mode Exit fullscreen mode

The #ref suffix pins a branch or tag, which is a sensible default for anything your team depends on. Include https:// on full URLs; the docs warn that a bare host path is read as GitHub owner/repo shorthand and rejected.

Step 6: Keep plugins updated, on purpose

Auto-update is on by default for claude-plugins-official and the other official marketplace names (with two exceptions the docs list), and off by default for community, third-party and local marketplaces. When a plugin updates, you'll see Plugin updated: <name> · Run /reload-plugins to apply.

To update one plugin now, choose Update now on the Installed tab, or run:

claude plugin update <plugin>@<marketplace>
Enter fullscreen mode Exit fullscreen mode

There's no single command that updates every plugin. To update everything from one marketplace, select it on the Marketplaces tab and choose Update marketplace. Note that claude plugin marketplace update with no name only refreshes listings; your installed plugins stay at their current versions.

Step 7: Trim what you don't use

Plugins you installed but haven't used recently appear under a Not used recently header on the Installed tab. From the shell, claude plugin details <name> shows an Always-on line: the tokens the plugin adds to every session where it's enabled. Disable anything with a high always-on cost and low use.

To remove:

claude plugin disable formatter@your-org
claude plugin uninstall formatter@your-org --scope project
Enter fullscreen mode Exit fullscreen mode

If you uninstall a plugin that the repository's shared settings enable, Claude Code asks whether to disable it just for you (it writes false to your local settings) or uninstall it for everyone. And removing a whole marketplace uninstalls every plugin you installed from it, after listing them and asking you to confirm.

Plugins often bundle MCP servers, so if you're managing those by hand as well, our guide to Claude Code MCP covers adding, listing and removing servers directly.

A note on where we fit

Disclosure: we make Ninja Builder, a desktop app that runs Claude Code. In its Library you can add skills or Claude Code plugins from a GitHub link or a folder, and the app runs a security scan before anything is added. Whichever way you install, the habit is the same: read what a plugin adds before you turn it on.

Checklist

[ ] Opened details by name (to see context cost) before installing
[ ] Picked scope deliberately: user / project / local
[ ] Teammates told to run the project-scope install once per clone
[ ] Third-party marketplaces pinned with #ref
[ ] Reviewed "Not used recently" and Always-on cost this month
Enter fullscreen mode Exit fullscreen mode

Top comments (1)

Collapse
 
zhang_jimmy_54a0414571400 profile image
zhang jimmy •

context cost 分 Every turn 和 When invoked 两档,这个提醒很实在,我以前装插件只看功能,没注意常驻 token 的消耗,装多了会话越跑越慢。scope 的区分也讲清楚了,user、project、local 对应不同 settings 文件,团队用 project scope 时确实容易不小心把插件推给所有人。我的习惯是先 local 试用几天再决定。想问一下:插件更新后如果行为变了,团队成员版本不一致时,同一条命令会不会跑出不同结果?你们是怎么统一版本的?