DRYCODEWORKS
← Dev guides

Running a Private Claude Code Plugin Marketplace

Daniel Young
Daniel YoungFounder, DRYCodeWorks

You wrote a Claude Code skill yesterday. Three teammates want it by Friday. Here's how to package skills as plugins and roll them out by version.

A wooden bazaar stall stocked with version-tagged shipping crates as a developer curates the selection

Last verified against Claude Code v2.1.306 on 2026-10-21.

What you're building

You wrote a Claude Code skill that turned a half-day task into a five-minute one. You used it three times before noticing two of your teammates were still doing the half-day version. You sent them the skill file in Slack. Now there are three copies in three states of drift, and someone has already complained that "the skill stopped working" — it didn't; they're running an old version.

A private plugin marketplace solves this. One git repo, one version number per plugin, one command for teammates to pull. The setup is small enough to do in an evening; the impact compounds for every skill you add after the first one.

The topology has four parts:

  1. Marketplace repo — a git repo with a .claude-plugin/marketplace.json catalog at its root and one directory per plugin under plugins/, each with its own .claude-plugin/plugin.json. This is the single source of truth for all your team's shared plugins.
  2. Local cache — ~/.claude/plugins/cache/<marketplace>/<plugin>/<version>/ on each developer's laptop. Claude Code clones the marketplace into ~/.claude/plugins/marketplaces/<marketplace>/ and copies each installed plugin into the cache, one directory per version.
  3. Scoped enablement — the enabledPlugins key in a settings file. ~/.claude/settings.json turns a plugin on for you everywhere, a project's committed .claude/settings.json turns it on for everyone in that repo, and .claude/settings.local.json turns it on for you in that one project.
  4. Version-based rollout — bump version in the plugin's manifest and push. Teammates pick it up with claude plugin update, or automatically once auto-update is on for the marketplace. That's the entire distribution mechanism.
Marketplace repogit, one catalogcopyLocal cache~/.claude/plugins/cachescopeenabledPluginsuser, project, localbumpVersion-basedrolloutsingle source of truthone directory per versionscoped per settings filenew version, new contents

That's the whole shape. The rest of this guide is the executable form.

Prerequisites

  • Claude Code. This guide was verified against v2.1.306; check yours with claude --version.
  • git. Claude Code clones a git-hosted marketplace with the git on your machine.
  • A repo host you control — a private GitHub repo, an internal Gitea, anything your teammates can clone.
  • Credentials that work without a prompt. Claude Code runs git with interactive prompts turned off, so for a private repo each teammate needs an SSH key loaded in ssh-agent (with the host already in known_hosts) or a stored HTTPS credential. On GitHub, gh auth login followed by gh auth setup-git stores one.
  • macOS or Linux. Windows via WSL should work but isn't verified here.
  • Basic terminal comfort. You'll be running git commands and editing JSON files.

The setup is "one sitting" if you already have the prerequisites. The polish — multiple plugins, hooks, MCP server configs — takes longer.

Repo skeleton

You're creating a marketplace repo with one starter plugin called hello-world. Its only job is to confirm the install loop works. Once /hello-world:hello runs in a session, you know the plumbing is right. Resist the urge to build your "real" first plugin before this smoke test passes — the install loop has a few failure modes that are much easier to debug with a throwaway plugin than with a plugin you care about.

Here's the directory structure you're building:

my-claude-marketplace/
├── .claude-plugin/
│   └── marketplace.json
└── plugins/
    └── hello-world/
        ├── .claude-plugin/
        │   └── plugin.json
        └── skills/
            └── hello/
                └── SKILL.md

The .claude-plugin/marketplace.json file is the catalog — it tells Claude Code what plugins live in the repo and where to fetch each one. It needs a name, an owner, and a plugins array, and each entry needs a name and a source. As you add more plugins, you add entries here. Write each relative source from the repo root (the directory that contains .claude-plugin/), not from inside .claude-plugin/:

.claude-plugin/marketplace.jsonjson
{
  "name": "my-claude-marketplace",
  "description": "Our team's shared Claude Code plugins",
  "owner": {
    "name": "Your Team"
  },
  "plugins": [
    {
      "name": "hello-world",
      "source": "./plugins/hello-world",
      "description": "Smoke-test plugin to verify the marketplace install loop works."
    }
  ]
}

Keep each entry's name identical to the name in that plugin's own manifest. The entry name is what teammates type to install (hello-world@my-claude-marketplace); the manifest name is the prefix on the plugin's skills.

Each plugin has its own manifest at .claude-plugin/plugin.json inside the plugin directory. name is the only required field, and Claude Code finds skills in the plugin's skills/ directory without being told, so the manifest doesn't list them. The version field names the plugin's cache directory and is how Claude Code detects an update: teammates get new contents only when the version changes. Set version here or in the marketplace entry, not both. If both are set, Claude Code uses the plugin.json value without warning you; only claude plugin validate reports the mismatch:

plugins/hello-world/.claude-plugin/plugin.jsonjson
{
  "name": "hello-world",
  "version": "0.1.0",
  "description": "Smoke-test plugin to verify the marketplace install loop works.",
  "author": {
    "name": "Your Team"
  }
}

The skill file itself is a markdown file with YAML frontmatter. This one is intentionally minimal — its entire job is to be findable and invocable. It has no name field: the skill takes its name from its directory, hello, and Claude Code adds the plugin's name as a prefix, so it runs as /hello-world:hello:

plugins/hello-world/skills/hello/SKILL.mdmarkdown
---
description: Print a greeting. Used to verify the marketplace is wired up correctly.
---

# Hello

Print: "hello from the marketplace — install loop works."

That's it. This skill exists so you can confirm the marketplace
finds, loads, and exposes the plugin's skills.

Validate both manifests before you commit. claude plugin validate checks JSON syntax, required fields, and every relative-path plugin the catalog lists:

bash
cd ~/work/my-claude-marketplace
claude plugin validate ./plugins/hello-world
claude plugin validate .

Success signal: each run ends with ✔ Validation passed. The plugin run may also list missing-README, license, and icon checks; those are for Anthropic's public plugin directory and don't change the result.

Commit the files and push. The env-var preamble makes the placeholder explicit — replace REPO_URL with your own remote:

bash
REPO_URL="git@example.com:your-org/my-claude-marketplace.git"  # replace with your own

cd ~/work/my-claude-marketplace
git init -b main
git add .
git commit -m "initial: hello-world plugin"
git remote add origin "$REPO_URL"
git push -u origin main

Success signal: the push completes without error, and git ls-remote origin main shows the commit you just made.

Installing the marketplace

Add the marketplace to Claude Code. This is a one-time step per developer, and the marketplace then shows up in every project on that machine. For a GitHub repo you can pass the your-org/my-claude-marketplace shorthand instead of a full URL:

bash
REPO_URL="git@example.com:your-org/my-claude-marketplace.git"  # same URL as before
claude plugin marketplace add "$REPO_URL"

Success signal: the command prints Successfully added marketplace: my-claude-marketplace. The name comes from marketplace.json, not from the repo name. claude plugin marketplace list shows it too.

Now install the plugin into a throwaway test directory, scoped to that directory only. --scope local records the plugin as enabled in that directory's .claude/settings.local.json instead of in your user settings:

bash
mkdir -p ~/work/marketplace-test
cd ~/work/marketplace-test
claude plugin install hello-world@my-claude-marketplace --scope local

The entry it writes looks like this. The key is always <plugin>@<marketplace>:

~/work/marketplace-test/.claude/settings.local.jsonjson
{
  "enabledPlugins": {
    "hello-world@my-claude-marketplace": true
  }
}

Then verify, from the same directory:

bash
claude plugin list
claude plugin details hello-world

Success signal: claude plugin list shows hello-world@my-claude-marketplace as enabled, and claude plugin details hello-world lists Skills (1) hello under Component inventory. Start a session in the directory and run /hello-world:hello.

If the install fails, check the two mistakes behind most failed installs from a new marketplace: a relative source written from the wrong directory (the install fails with Source path does not exist), and an entry name that differs from the manifest's name.

Versioning and team rollout

Claude Code decides whether a teammate's copy is stale by comparing versions, not tags. It takes a plugin's version from version in plugin.json first, then from the marketplace entry, and when neither is set, from the git commit. A new version lands in a new cache/<marketplace>/<plugin>/<version>/ directory; Claude Code marks the old one and deletes it 14 days later, so there's no cache to clean up by hand.

PRODUCERCONSUMERgit remoteEdit on branchMerge to mainBump versionin plugin.jsongit push origin maintag optionalno version change, no updateclaude plugin updateor auto-updateNew cache directorycache/<marketplace>/<plugin>/<version>/Loads next session or on /reload-pluginspush

Producer side — bump the version and push:

bash
MARKETPLACE_REPO="$HOME/work/my-claude-marketplace"

cd "$MARKETPLACE_REPO"
# set "version": "0.2.0" in plugins/hello-world/.claude-plugin/plugin.json
claude plugin validate .
git commit -am "hello-world 0.2.0"
git push origin main

Success signal: the push completes without error.

If you also want a git tag per release, claude plugin tag plugins/hello-world --push checks that plugin.json and the marketplace entry agree on the version, then creates and pushes hello-world--v0.2.0. Claude Code reads those tags only when another plugin declares a version range on yours; ordinary updates don't need them.

Consumer side — each teammate updates the plugin:

bash
claude plugin update hello-world@my-claude-marketplace

Success signal: claude plugin list shows version 0.2.0. The new version loads at the next session start, or after /reload-plugins in a running session.

To skip the manual step, each teammate can turn on auto-update for the marketplace: open /plugin in a session, go to Marketplaces, select the marketplace, and choose Enable auto-update. It's off by default for a marketplace you add from git. With it on, Claude Code refreshes the marketplace within ten minutes of your first message in a session and updates installed plugins on disk; the running session keeps the old version until /reload-plugins or the next launch.

To hold the team on a release line, pin the catalog when you add it: claude plugin marketplace add your-org/my-claude-marketplace#stable tracks the stable branch or tag instead of the default branch. Updates still follow the version numbers on that ref.

The stale-version footgun

If plugin.json pins "version": "0.2.0" and you push new commits without changing it, teammates don't get them. claude plugin update prints hello-world is already at the latest version (0.2.0). and their cache keeps the old contents.

Symptoms: skills behave inconsistently across teammates who all "pulled the latest." The developer who added the marketplace from a local checkout gets the new behavior; everyone else gets the old one. The version number matches, but the contents don't.

That local-checkout case is the other half of the footgun. If you add your own working copy as the marketplace (claude plugin marketplace add ./my-claude-marketplace), Claude Code loads its relative-path plugins in place at every session start, whatever their version says, so your sessions run whatever branch is checked out. That's a fine setup for developing plugins and a bad one for checking what teammates see.

Prevention is one rule: every release commit changes version. If you'd rather not manage version numbers at all, leave version out of both plugin.json and the marketplace entry, and Claude Code tracks the commit instead.

Rollback

To roll back, restore the previous contents and release them under a new version, so every teammate's update moves forward:

bash
MARKETPLACE_REPO="$HOME/work/my-claude-marketplace"

cd "$MARKETPLACE_REPO"
git revert <bad-commit>
# set "version": "0.2.1" in plugins/hello-world/.claude-plugin/plugin.json
git commit -am "hello-world 0.2.1: revert 0.2.0"
git push origin main

Success signal: after claude plugin update hello-world@my-claude-marketplace, claude plugin list shows 0.2.1.

Per-directory scoping

The reason to scope plugins instead of enabling every plugin globally is clutter. Different work demands different tooling. A plugin built around one client's data pipeline has no business showing up in sessions for an unrelated project, and global plugin sprawl creates confusion about which skills are available in which context.

The mental model is: plugins are switched on per settings scope, through enabledPlugins. There are three scopes you control:

  • User — ~/.claude/settings.json. On for you in every project.
  • Project — .claude/settings.json, committed. On for everyone who works in the repo. To register the marketplace for teammates as well, run claude plugin marketplace add <source> --scope project once and commit the .claude/settings.json it writes; Claude Code registers the marketplace for each teammate who trusts the folder.
  • Local — .claude/settings.local.json. On for you in that project only. Claude Code keeps the file out of git when it creates it.

Local overrides project, and project overrides user. To opt out of a project-enabled plugin on your machine, set it to false in .claude/settings.local.json. Claude Code reads .claude/settings.json from the directory you start the session in, and inside a git repository it keeps .claude/settings.local.json at the repository root, so scope each project in its own files.

Each settings file has its own enabledPlugins map. Where they disagree, the narrower scope wins.User~/.claude/settings.json{"enabledPlugins": {"team-core@my-claude-marketplace": true}}on everywhereoverridesProject.claude/settings.json, committed{"enabledPlugins": {"example-client@my-claude-marketplace": true}}on for the repooverridesLocal.claude/settings.local.json{"enabledPlugins": {"example-client@my-claude-marketplace": false}}off for you onlyYour sessions in this repo: team-core on, example-client off. Teammates still get example-client.

A per-client project scopes down to just what that client's work needs:

~/work/example-client/.claude/settings.local.jsonjson
{
  "enabledPlugins": {
    "team-core@my-claude-marketplace": true,
    "example-client@my-claude-marketplace": true
  }
}

An unrelated project gets the shared plugin and nothing client-specific:

~/work/unrelated-project/.claude/settings.local.jsonjson
{
  "enabledPlugins": {
    "team-core@my-claude-marketplace": true
  }
}

Replace team-core and example-client with your own plugin names. You don't have to write these by hand: running claude plugin install <plugin>@<marketplace> --scope local from the project writes the entry for you.

The silent-scoping footgun

A typo in an enabledPlugins key — in the plugin name, or in the marketplace name after the @ — leaves the plugin you meant switched off. Engineers who don't internalize the scoping model will think "the skill is missing" when in fact the key has a typo, the JSON has a missing comma, or the entry sits in the wrong scope.

Verify the scope is right after any change to a settings file:

bash
cd ~/work/example-client
claude plugin list

Success signal: the plugins you expect to see are listed as enabled, with the scope you meant. If example-client (or whatever you named your plugin) isn't in the list, the scope is wrong — check the key, the JSON syntax, and which file the entry is in. A running session picks up the change after /reload-plugins.

The iteration loop

The day-to-day rhythm for developing and shipping a plugin change.

Step 1: Edit on a branch

New skill, new hook, change to an MCP server config — all on a branch in the marketplace repo, never directly on main. main should always be in a state you'd be comfortable releasing.

Step 2: Test locally

Load the branch's copy of the plugin for one session with --plugin-dir. It loads the directory in place, writes nothing to your settings, and takes precedence over an installed plugin with the same name, so you're testing your branch rather than the cached release:

bash
cd ~/work/scratch
claude --plugin-dir ~/work/my-claude-marketplace/plugins/hello-world

Run /reload-plugins after each edit to pick up the changes, and claude plugin validate . in the marketplace repo before you merge.

Step 3: Bump the version

Increment the plugin's version field in plugin.json. Use semver — bump patch for fixes, minor for additions, major for breaking changes. Merge the branch to main before releasing.

Step 4: Push, and tag if you want one

bash
MARKETPLACE_REPO="$HOME/work/my-claude-marketplace"

cd "$MARKETPLACE_REPO"
git push origin main
claude plugin tag plugins/hello-world --push  # optional: creates hello-world--v0.2.1

Success signal: the push completes, and if you tagged, git ls-remote --tags origin | grep hello-world--v0.2.1 shows the tag.

Step 5: Team picks up the new version

Each teammate runs claude plugin update hello-world@my-claude-marketplace, or gets the update in the background with auto-update on. The new version loads at the next session start or after /reload-plugins. If you have a team standup cadence, "update the marketplace plugins" is a five-second step that can live in the same checklist as pulling main on project repos.

Bump version before you push. A release that keeps the old version number never reaches teammates' caches.

What to put in your first plugin

Three starter plugins worth building, in rough priority order:

  1. A house-style skill. Encode your team's conventions — how you write commits, how you phrase PR descriptions, how you structure plan files. The next teammate's first PR is suddenly closer to your norms without anyone having to explain it.
  2. A "before-commit" hook. Run your linter, your formatter, your typechecker. Don't let Claude push a commit that breaks any of those — fail loudly in the hook and let the AI fix it before the PR opens.
  3. An orchestrator skill. A single slash command that dispatches a multi-step task with a self-contained prompt — the dispatch pattern the essay walks through. This is where the payoff compounds: the encoding happens once, and every subsequent invocation for a similar task inherits the same approach without reconstruction from memory.

Build one. Use it for a week. Build the next one when you notice you're repeating yourself.

For the deeper how-to on writing the skills themselves — frontmatter, decision flow, error handling, anti-patterns — see Claude Code Skills for Infrastructure Automation. This guide is the marketplace layer; that one is the skill-craft layer beneath it.

Where to go next

For the why — the argument that this pattern is worth committing to in the first place — see the companion essay: The Harness and the Appliance.

The official references for everything above are Anthropic's Create a marketplace, Host and maintain a marketplace, and Plugin loading reference pages.

I do this kind of work for clients.

AI that could leak company data, give wrong answers or run up the bill: I build AI assistants, MCP servers and models that are safe to ship.

AI systems →Book a call