Welcome to HowToShipIt — practical how-to guides for developers: code, AI tools, and servers, explained step by step.

Claude Code Plugins: Install, Build, and Share Your First Plugin (2026)

You have written your first skill, and it works. Then a teammate asks for it. Then you want the same setup on your laptop, your VPS, and a second project. Copying SKILL.md files around by hand gets old fast — and the moment you add a hook, a subagent, and an MCP server to the same workflow, there are four things to copy instead of one.

That is what Claude Code plugins solve. A plugin bundles skills, agents, hooks, and MCP servers into one directory that installs with a single command and updates from a marketplace. This guide shows you how to install your first plugin, build one of your own — a small Laravel toolkit, end to end — and share it with your team, plus the security checks to run before you install anyone else’s.

Verified against Anthropic’s official Claude Code plugin documentation, November 2026.

What a Claude Code plugin actually is

A plugin is a directory of components that Claude Code installs and loads as one unit. The manifest, a JSON file at .claude-plugin/plugin.json, gives the plugin its name, version, and description. The components are what the plugin adds to your sessions:

  • Skills — SKILL.md instructions Claude loads when relevant, runnable as commands.
  • Agents — subagent definitions Claude can delegate work to.
  • Hooks — commands Claude Code runs at points in its lifecycle, such as after every edit.
  • MCP servers — tool servers Claude Code connects to while the plugin is enabled, declared in .mcp.json.

Most plugins come from a marketplace, which is a catalog — a repository or directory holding a .claude-plugin/marketplace.json file that lists plugins and where to fetch each one. It is a catalog, not a hosted store: you add a marketplace once, then install plugins from it by name, such as commit-commands@claude-plugins-official. Anthropic’s official marketplace is added automatically the first time you start an interactive terminal session.

One naming detail matters immediately: a plugin’s skills and agents get the plugin name as a prefix, so the deploy-check skill inside a laravel-toolkit plugin runs as /laravel-toolkit:deploy-check. Two plugins can each provide a skill called deploy-check without colliding.

Plugin vs skill vs MCP server: pick the right tool

Skills, agents, hooks, and MCP servers all work on their own, without a plugin. A skill saved in ~/.claude/skills/ is available in every project on your machine. Anthropic’s rule for when to reach for a plugin is simple: use one when you want several components packaged as one unit — to install a setup someone else built with one command and get its updates, or to give your own setup to teammates, install it in many projects, or publish versioned releases.

You want Use Why
One repeatable procedure Skill One folder, one SKILL.md — nothing else needed
Several skills, agents, hooks, or MCP servers together Plugin Installs and updates as one unit
Live data or an external tool MCP server (standalone or inside a plugin) Skills carry instructions, not connections
Your whole team on the same setup Plugin + your own marketplace Teammates add the marketplace once and install by name

If you have one skill and one machine, a plugin is overkill. The moment the setup has more than one moving part or more than one user, a plugin earns its keep.

Install your first plugin

Start with something from Anthropic’s official marketplace. The commit-commands plugin adds commands for committing, pushing, and opening pull requests — a good first install because you can see it working in seconds.

Open a terminal session with claude, then run:

/plugin install commit-commands@claude-plugins-official

Or browse instead: run /plugin on its own and use the Discover tab to search your marketplaces, then install from the plugin’s details page. The same install works from your shell:

claude plugin install commit-commands@claude-plugins-official

During the install you pick a scope, and the scope decides who gets the plugin:

  • User scope — enabled for you in every project on this computer. The entry goes in enabledPlugins in ~/.claude/settings.json.
  • Project scope — enabled for everyone who works in the repository, through the committed .claude/settings.json. Each collaborator still installs it on their own machine once per clone.
  • Local scope — enabled for you in this repository only, recorded in .claude/settings.local.json.

After installing, type / at the prompt: the plugin’s skills appear as /commit-commands:commit and friends. To manage what you have installed, claude plugin list shows each plugin and its status, and claude plugin details <name> shows its component inventory. Disable a plugin you are not using with claude plugin disable <name> — uninstalling is the last resort, not the first.

To add a marketplace that is not Anthropic’s official one, register it first, then install from it:

/plugin marketplace add obra/superpowers-marketplace
/plugin install superpowers@superpowers-marketplace

A marketplace can be a GitHub repository (owner/repo), a full git URL, a local path, or the HTTPS URL of a hosted marketplace.json. The repository must be public, or you must have Git access to it.

Build your first plugin: a Laravel toolkit

Now build one. The example plugin, laravel-toolkit, bundles a single skill — the pre-deploy checklist from our skills guide, rewritten as a plugin component — so you can see the full layout with the smallest possible example. You need Claude Code installed and signed in.

Step 1: Create the plugin directory and manifest

mkdir -p laravel-toolkit/.claude-plugin laravel-toolkit/skills/deploy-check

Save the manifest as laravel-toolkit/.claude-plugin/plugin.json:

{
  "name": "laravel-toolkit",
  "description": "Pre-deploy checks and review helpers for Laravel apps",
  "version": "1.0.0",
  "author": {
    "name": "Your Name"
  }
}

Only name is required — it becomes the prefix on every skill and agent the plugin provides, so do not put spaces in it. description is the text users see for the plugin in /plugin. Setting version keeps users on that version until you change it. And one rule that trips everyone once: only plugin.json goes inside .claude-plugin/. Components saved there do not load.

Step 2: Add the skill

Save this as laravel-toolkit/skills/deploy-check/SKILL.md:

---
name: deploy-check
description: Run the pre-deploy checklist for a Laravel app — tests, Pint, frontend build, pending migrations, production config. Use when the user asks whether the app is ready to deploy.
---

# Pre-deploy check

Run each check in order. Stop at the first failure and report it clearly.

1. Run the test suite: `php artisan test --parallel`
2. Check code style: `./vendor/bin/pint --test`
3. Build frontend assets: `npm run build`
4. List pending migrations: `php artisan migrate:status`
5. Confirm the production environment is not debug mode: check that `APP_DEBUG` is `false` in `.env`

End with a one-line verdict: GO if all five checks passed, NO-GO with the failed checks listed. Do not deploy anything yourself — this skill only checks.

Step 3: Validate it

claude plugin validate ./laravel-toolkit

The command prints the manifest path it checked and ✔ Validation passed. If it prints ✘ Validation failed instead, each line above that result names the field to fix.

Step 4: Test it without installing anything

You do not need a marketplace to run a plugin you are writing. Load it straight from its folder for one session:

claude --plugin-dir ./laravel-toolkit

Then run the skill:

/laravel-toolkit:deploy-check

Claude should run the five checks and end with a GO or NO-GO verdict. Edit the plugin’s files during the session and run /reload-plugins to load the changes. When the plugin grows past a single skill, Anthropic’s plugin-dev plugin from the official marketplace can scaffold and check it with you — install it and run /plugin-dev:create-plugin with a description of what you want.

The full plugin layout

Each kind of component goes in a fixed directory under the plugin root. Add only the directories you use:

laravel-toolkit/
├── .claude-plugin/
│   └── plugin.json        # manifest (only this file goes here)
├── skills/
│   └── deploy-check/
│       └── SKILL.md
├── agents/
│   └── reviewer.md        # one Markdown file per subagent
├── hooks/
│   └── hooks.json         # hook configuration
└── .mcp.json              # MCP server definitions

That layout is the whole format. A plugin with one skill is a valid plugin; a plugin with skills, agents, hooks, and MCP servers is the same layout with more folders filled in.

Share it: three routes, in order of effort

Send it directly. Give a few people the plugin’s directory or a .zip of it — nothing needs to be published, and they load it with --plugin-dir.

List it in your own marketplace. This is the team route. A marketplace is a directory with a .claude-plugin/marketplace.json file, plus the plugins it lists. Create it, copy your plugin under plugins/, and write the catalog:

{
  "name": "my-marketplace",
  "description": "Plugins for my team",
  "owner": {
    "name": "Your Name"
  },
  "plugins": [
    {
      "name": "laravel-toolkit",
      "source": "./plugins/laravel-toolkit",
      "description": "Pre-deploy checks and review helpers for Laravel apps"
    }
  ]
}

Validate it, push the directory to a git host — the repository can be private, as long as your team has access — then teammates add it once and install by name:

claude plugin marketplace add ./my-marketplace
claude plugin install laravel-toolkit@my-marketplace

Two mistakes cause most failed installs from a new marketplace. First, write relative source paths from the marketplace root — the directory that contains .claude-plugin/ — and never use .. in one; validation rejects it. Second, keep the entry name in marketplace.json and the name in the plugin’s plugin.json the same, or installs by name fail with “not found in marketplace”.

Submit it to Anthropic’s directory. After it passes review, people can add it on claude.ai and in Cowork, and it reaches Claude Code through their account. This is the route for plugins meant for everyone, not just your team.

What a plugin costs you — and what to check before installing one

An enabled plugin is part of every session, not only the sessions where you use it. For each skill, agent, and command Claude can invoke on its own, the name and description sit in Claude’s context on every turn, counting toward your usage and leaving less room in the context window — even in sessions where nothing from the plugin runs. The full text of a skill loads only when it is used, but the catalog cost is always there. Plugin MCP servers run alongside each session where the plugin is enabled, and its hooks fire at their events.

Before installing, open the plugin from the Marketplaces tab in /plugin — plugins in Anthropic’s official marketplace show a Context cost estimate there. After installing, the Installed tab’s Not used recently group lists plugins you could turn off. Measure a plugin’s footprint before you keep it, and disable the ones you do not use.

Security is the bigger check. A plugin runs code with your user privileges — whatever it runs, it runs as you. Anthropic’s marketplace tiers help you calibrate: official marketplaces carry names like claude-plugins-official and claude-code-plugins; community ones use names such as claude-community; everything else is third-party, including a marketplace your coworker or your organisation publishes. Whatever the tier, read before you install: the plugin.json, the skills’ frontmatter (especially allowed-tools grants), hooks/hooks.json, and .mcp.json. A plugin that asks for broad tool access or phones home to a server you do not recognise is a plugin you skip.

6 mistakes that ruin a first plugin

  1. Installing everything in the Discover tab. Every plugin adds catalog cost to every session. Install what you use; disable the rest.
  2. Building a plugin for one skill on one machine. A personal skill in ~/.claude/skills/ already does that job. Make a plugin when the setup has several parts or several users.
  3. Components inside .claude-plugin/. Only plugin.json belongs there. Skills, agents, and hooks go in their own folders at the plugin root.
  4. Mismatched names. The marketplace entry name and the manifest name must match, or installs fail with “not found in marketplace”.
  5. .. in a marketplace source path. Relative paths are written from the marketplace root. Validation rejects paths that leave it.
  6. Skipping validation. Run claude plugin validate after every edit, then install from your own marketplace on your own machine before sharing it. Validation and installation catch different problems.

Start with the setup you already share by hand

The best first plugin is the setup you are already copying between machines: the deploy skill, the review agent, the hook that runs the linter after every edit. Bundle it once, validate it, load it with --plugin-dir, and when it works, put it in a marketplace your team can install with one command. Your future self — on a fresh laptop, in a new repo, at 11 pm before a deploy — will be glad the setup travels with you instead of living in a forgotten dotfiles folder.

Further Reading & References

Related on HowToShipIt: Claude Code Skills: Write Your First Skill That Actually Gets Used, Claude Code Hooks Explained: 7 Practical Examples You Can Copy, How to Build a Laravel MCP Server.

Leave a Comment