Topic 2 of 4 · 4 min read
Bundling team setup as plugins
Goal: Plan a team plugin that bundles the shared skills, hooks and servers, with a versioning and update path.
A plugin is a versioned folder that bundles the skills, subagents, hooks and tool servers your team shares, so one install gives every engineer the same toolkit instead of a pile of copied files.
Check yourself · 1 of 3
What is the main benefit of packaging shared agent setup as a plugin instead of sharing copied files?
Why it matters
Without a plugin, setup spreads by copy and paste. Someone shares a review skill in chat. Three people paste it into different folders. Two weeks later it has been fixed in one place only. A plugin gives the shared pieces one home, one version number and one way to update.
What goes in
A Claude Code plugin is a directory with an optional manifest at .claude-plugin/plugin.json (name, version, description) and any of these parts:
- Skills: instructions the agent loads when relevant, for example your pull-request checklist.
- Subagents: helpers with their own prompt and tool limits, such as a read-only security reviewer.
- Hooks: commands that run at fixed points, such as a formatter after every edit.
- MCP servers: connections to tools, such as your issue tracker.
Other agents have their own packaging, but the thinking carries over: group by purpose, version it, review it.
How a team ships one
- Pick the unit. One plugin per purpose ("backend-standards", "release-tools"), not one giant bundle. Small plugins are easier to review and to switch off.
- Host a team marketplace. A marketplace is a catalogue file in a git repository listing your plugins and where to fetch each. Engineers add it once and install from it.
- Pin the list in the project. The committed project settings can name the marketplace and the plugins to enable, so a fresh clone offers them after the engineer trusts the folder.
- Version and announce. Bump the version when behaviour changes, write one line on what changed, and tell the team. If you do not set a version, updates may follow the repository history, so decide how you want it to work.
- Review like code. A hook can run any command and an MCP server can reach your systems. Treat a plugin change as a pull request with owners.
Before and after
Weak: "Copy my .claude folder, it has the good stuff." Nobody knows what is inside, and nobody receives fixes.
Fixed: a team-tools plugin with one review skill, one formatter hook and one read-only subagent, listed in the team marketplace, enabled in the project file, version 1.2.0, with a short changelog.
What goes wrong
- A plugin pulls in an unreviewed third-party MCP server, and nobody notices because it arrived with an update.
- A hook only works on one operating system, so it fails quietly for half the team.
- The plugin changes often with no changelog, and engineers stop trusting updates and pin old versions.
Examples
A plugin plan for a backend team
Plugin backend-standards, version 1.0.0.
- Skill:
api-review(checklist for new endpoints) - Subagent:
security-reader(read-only tools, finds auth gaps) - Hook: run the formatter after every file edit
- No MCP servers in version 1.0.0; the issue-tracker server ships later in its own plugin, so it can be reviewed separately.
Update path: owners merge changes by pull request, bump the version, post a one-line changelog in the team channel.
Reviewing a plugin update
Version 1.1.0 adds a hook that runs curl to download a script on every session start. That is a remote-code risk. Ask the author to vendor the script into the plugin, or drop the hook, before approving.
Key points
- A plugin bundles skills, subagents, hooks and MCP servers into one installable, versioned unit.
- A team marketplace is a catalogue in git that lists your plugins, so engineers install from one trusted place.
- The committed project settings can enable the team's plugins so a fresh clone starts with the same toolkit.
- Hooks and MCP servers run code and reach systems, so plugin changes need the same review as application code.
- Small plugins with one purpose and a changelog are easier to review, update and switch off than one large bundle.
Common mistakes
- Bundling every shared file into one plugin, so nothing can be reviewed or disabled on its own.
- Adding an MCP server or hook through a plugin update without a human reading it.
- Skipping versions and changelogs, so engineers cannot tell what changed or when.
- Writing hooks that assume one operating system or one local path.
Check yourself · 2 of 3
Your team shares a review skill, a formatter hook and an issue-tracker MCP server. Two engineers cannot use the MCP server until security approves it, but they want the other two now. What is the best way to package them?
Check yourself · 3 of 3
A plugin update adds a hook that downloads and runs a script from a public URL at every session start. What should the reviewer do?
Practice items, not counted towards your mastery.
Start here
- Claude Code settings (opens in a new tab)DocsFree
Lists the settings files, where each lives, and the precedence order from managed down to user.
- Plugins overview (Claude Code docs) (opens in a new tab)DocsFree
What a plugin can hold (skills, agents, hooks, MCP servers) and when to use one.
- Configure server-managed settings (Claude Code docs) (opens in a new tab)DocsFree
How an admin delivers policy from the console, how it is cached, and what a failed fetch does.
More for this topic
- Create a plugin marketplace (Claude Code docs) (opens in a new tab)DocsFree
How to publish a team catalogue of plugins that engineers install from.