✻Founding-member pricing: every lesson for $19/mo. The first 3 lessons are free. Start lesson 1 →
Unit 9 · Verify, Secure & Share · Lesson 38 of 40

Plugins & Marketplaces: Package Your Setup

Package skills, subagents, hooks and MCP servers into a Claude Code plugin, test it locally, publish a marketplace and install plugins with /plugin.

ACADEMY12 min+74 XP4-question quiz

🎯 By the end of this lesson you'll be able to

  • Explain what a plugin bundles
  • Create a plugin with the right structure
  • Test it locally with --plugin-dir
  • Publish and install through a marketplace

Your setup, installable

Over this course you've built skills, subagents, hooks and MCP configs. A plugin bundles them into one installable unit, so a teammate (or a thousand developers) can get your whole setup with one command. Plugin skills are namespaced (/my-plugin:review), so many plugins coexist without collisions.

Plugin structure

text
acme-dev-kit/
├── .claude-plugin/
│   └── plugin.json          # manifest: name, version, description
├── skills/
│   └── release-notes/
│       └── SKILL.md         # → /acme-dev-kit:release-notes
├── agents/
│   └── code-reviewer.md     # subagent
├── hooks/
│   └── hooks.json           # same shape as the settings "hooks" key
└── .mcp.json                # MCP servers the plugin provides
.claude-plugin/plugin.json
{
  "name": "acme-dev-kit",
  "version": "1.0.0",
  "description": "Acme's shared Claude Code setup: release notes, a strict reviewer and auto-formatting."
}

Test locally

bash
claude --plugin-dir ./acme-dev-kit

This loads the plugin for one session, with no marketplace needed. Iterate until it works, then run /reload-plugins to pick up changes mid-session.

Marketplaces: distribution

A marketplace is a repo (or folder) with a .claude-plugin/marketplace.json that lists plugins:

.claude-plugin/marketplace.json
{
  "name": "acme-tools",
  "owner": { "name": "Acme Platform Team" },
  "plugins": [
    { "name": "acme-dev-kit", "source": "./plugins/acme-dev-kit", "description": "Shared dev setup" }
  ]
}

Users add the marketplace, then install from it:

text
/plugin marketplace add acme/claude-plugins
/plugin install acme-dev-kit@acme-tools

/plugin alone opens an interactive menu with Discover, Marketplaces and Installed tabs. The official Anthropic marketplace (claude-plugins-official) is available automatically, so /plugin install commit-commands@claude-plugins-official works out of the box.

!
Trust before you install

Plugins can include hooks and MCP servers, which means they can run code on your machine. Install only from sources you trust, read what a plugin includes, and let your organization control allowed plugins through managed settings.

Plugin or standalone?

◎Plugin or keep it in the repo?pick the best fit
A skill only useful for this one service's deploy.
It's project-specific, so commit it with the project.
A reviewer subagent, format hooks and release-notes skill used across 30 repos.
Package it once and install it everywhere.
An MCP config plus a skill that every new hire should have.
One install gives them the whole kit.
⇅Ship a plugindrag or use arrows
  1. ⋮⋮Create .claude-plugin/plugin.json with name, version and description
  2. ⋮⋮Move your skills, agents and hooks into the plugin folders
  3. ⋮⋮Test with claude --plugin-dir ./your-plugin
  4. ⋮⋮Add it to a marketplace.json in a shared repo
  5. ⋮⋮Teammates run /plugin marketplace add, then /plugin install

Check your understanding

?Lesson quiz10 XP per correct answer · +25 for a perfect score
QUESTION 1 OF 4

What can a plugin bundle?

Why: Plugins package every extension type together.
QUESTION 2 OF 4

Where does a plugin's manifest live?

Why: The manifest lives in .claude-plugin/plugin.json.
QUESTION 3 OF 4

How do you test a plugin without publishing it?

Why: --plugin-dir loads it for one session.
QUESTION 4 OF 4

How is a plugin skill named to avoid collisions?

Why: Namespacing keeps plugins from clashing.
0 / 4 correct
Academy lesson

Unlock lesson 38 and the next 2

You've finished the free lessons. Join the Academy for $19/month to unlock every lesson, quiz, terminal simulation and puzzle, plus the final exam and your certificate of completion.

  • All 40 lessons across 9 units
  • 165+ quiz questions
  • Final exam + certificate
  • New lessons as Claude Code evolves
  • XP, streaks and badges
  • Cancel anytime

Already a member? Log in to continue.

Key takeaways

  • Plugins bundle skills, subagents, hooks and MCP into one install.
  • Manifest: .claude-plugin/plugin.json. Test with --plugin-dir.
  • Marketplaces distribute plugins: /plugin marketplace add, then /plugin install.
  • Plugins can run code, so install only what you trust.

Nice work. Lesson 38 done?

Mark it complete to earn +74 XP, keep your streak alive and unlock badges.

Written by Curtis Cornell from Anthropic's public Claude Code documentation. Last reviewed November 14, 2026. Claude Code changes fast; if something here differs from your version, the official docs win.

Start lesson 1 free →