Package Skills and Plugins and Roll Them Out to Your Team
- A skill you use alone can live in
~/.claude/skills/or.claude/skills/. When you want to hand out a versioned skill to multiple projects and people, bundle it as a plugin. - A plugin puts skills, agents, hooks, and MCP servers in one folder and gives it a name through
.claude-plugin/plugin.json. A marketplace (marketplace.json) is a catalog listing plugins, and a single git repository is all you need. - Before you distribute, run
claude plugin validate --strictto check the format andclaude plugin evalto check that Claude actually uses the skill. Evals call a model, so they cost money. - Team rollout works through the repository’s
.claude/settings.json(per project) or managed settings (per organization). To make a plugin public, use the submission portal at claude.ai/directory/manage. - Installed plugins run code with your permissions. Review them with that in mind, both when you build them and when you install them.
What you’ll be able to do after this tutorial
Section titled “What you’ll be able to do after this tutorial”- Design a
SKILL.mdthat gets picked up reliably, and bundle it into a shared team plugin folder. - Check quality before release with
claude plugin validateandclaude plugin eval. - Build a team marketplace and have it install automatically for teammates through repo settings or managed settings.
- Know the path and the prerequisites for submitting to the Anthropic directory.
Concepts to know first
Section titled “Concepts to know first”| Term | Meaning |
|---|---|
| Skill | A folder containing a SKILL.md. Claude loads it when needed based on its description, or you run it directly with /name. |
| Plugin | A folder that bundles skills, agents, hooks, and MCP servers into one unit. It gets a name prefix, so you run it as /plugin:skill. |
| Marketplace | A catalog listing plugins and where to fetch them. All it takes is a .claude-plugin/marketplace.json in a repository. It is not a hosted service like an app store. |
| Install scope | user (you, all projects), project (everyone on the repository), local (you, this repository only). |
| Managed settings | Settings an organization pushes to every device. Users can’t change them. |
Which distribution method should you pick?
Section titled “Which distribution method should you pick?”| Method | Audience | What you need | Updates |
|---|---|---|---|
| Send a folder or ZIP | A few people | The plugin folder | No automatic updates (they use the copy they received) |
| Team marketplace | Anyone with access to the repository | A git repository + marketplace.json |
Users run claude plugin update, or turn on auto-update |
| Org managed settings | The whole organization | Admin permissions | Controlled by policy |
| Anthropic directory | Any claude.ai, Cowork, or Claude Code user | GitHub repository + paid claude.ai plan, plus review | New versions go live after review |
Step-by-step guide
Section titled “Step-by-step guide”-
Design your SKILL.md
Here is a summary of the principles from the Claude Code docs.
Principle Why Put the key purpose at the very start of description, and include the words users actually say (trigger phrases)The combined text of descriptionandwhen_to_useis cut off at 1,536 characters in the skill list. Claude picks skills from that list, so a vague description won’t get loaded.The first line of the file must be ---Otherwise the frontmatter is treated as body text. Even if the YAML is invalid, the skill loads with empty fields and no error (a silent failure). Keep SKILL.mdunder 500 lines and split long reference material into other files in the same folderOnce a skill loads, its body stays in context for the whole conversation, so every line is a recurring cost. Reference files are read only when needed. Write “always do it this way,” not “do this once” Claude doesn’t re-read the file in later turns. Rules that must keep applying belong in the style of standing instructions. For skills with side effects (deploy, commit), set disable-model-invocation: trueThey run only when the user calls them with /name. The description of such a skill isn’t loaded into context either.Limit allowed-toolsto the commands you need, and where possible point to bundled scripts with${CLAUDE_SKILL_DIR}Pre-approval lasts only for the turn in which the skill is invoked (it ends at the next user message). It does not block other tools. Inject fresh info with !`command`, and add|| trueat the end of commands that can failIf a command fails, the whole skill invocation is aborted. Each command has a default 2-minute limit. Include input and output examples, and add a rule against making things up The format stays stable and hallucinations drop. Here is an example team PR description skill. Save it as
plugins/team-kit/skills/pr-description/SKILL.md.---name: pr-descriptiondescription: Summarizes changes as a PR description in the team format (summary, changes, how to test, risks). Use when asked to write a PR description, pull request body, or change summary.---# Writing a PR descriptionWhen you receive a set of changes, write Markdown in the following order.1. `## Summary` — one or two sentences2. `## Changes` — a list by file or module3. `## How to test` — reproducible commands4. `## Risks` — write "None" if there are noneDo not invent facts that are not in the input (test results, issue numbers). Write "Needs confirmation" instead.Here is how to write a skill with side effects. It allows direct invocation only and pre-approves only the git commands it needs.
---name: release-notesdescription: Drafts release notes from commits since the last tag. Use when asked for release notes or a changelog cleanup.disable-model-invocation: trueallowed-tools: Bash(git log *)---## Commits since the last tag!`git log --oneline "$(git describe --tags --abbrev=0)"..HEAD || true`## InstructionsGroup the commits above into features, fixes, and other, and write a draft of the release notes. If there are no commits, answer "No changes". -
Create the plugin folder
Set it up as a single marketplace repository with several plugins under
plugins/.team-marketplace/├── .claude-plugin/│ └── marketplace.json└── plugins/└── team-kit/├── .claude-plugin/│ └── plugin.json├── skills/│ ├── pr-description/SKILL.md│ └── release-notes/SKILL.md├── .mcp.json (optional: bundled MCP server)└── evals/ (optional: claude plugin eval cases)This is
plugins/team-kit/.claude-plugin/plugin.json.{"name": "team-kit","displayName": "Team Toolkit","description": "A set of skills for writing PR descriptions on our team","version": "1.0.0","author": { "name": "Platform Team" },"repository": "https://github.com/your-org/team-marketplace","license": "MIT"}nameis required. Use kebab-case with no spaces and don’t change it once you’ve picked it. If the name changes, installs that people already have break. Change the display name throughdisplayName.- If you set
version, users don’t get updates until you bump it. Even if you push,claude plugin updateanswers “already at the latest version.” Either bump it on every release, or in a git marketplace leaveversionout so the commit SHA is used as the version. - Skills get the plugin name as a prefix, like
/team-kit:pr-description.
Bundling an MCP server (optional). To ship the server you built in 5. Build your own MCP server along with the plugin, put it in
.mcp.jsonat the plugin root. The official docs say to write file paths with${CLAUDE_PLUGIN_ROOT}. Themcppackage the server needs must already be on the user’s computer, so note that in your README.{"mcpServers": {"inventory": {"command": "python3","args": ["${CLAUDE_PLUGIN_ROOT}/server/server.py"]}}}A bundled server runs in every session where the plugin is on, and its tool names take the form
mcp__plugin_<plugin>_<server>__<tool>. -
Validate it and try it locally
Check the format first.
--strictalso treats warnings (unknown fields, missing metadata) as failures, which suits CI.Terminal window claude plugin validate --strict ./team-marketplace/plugins/team-kitclaude plugin validate --strict ./team-marketplaceEach should print
Validation passed. Next, load it for a single session without installing.Terminal window claude --plugin-dir ./team-marketplace/plugins/team-kitIn the session, run
/team-kit:pr-description, or ask in everyday language, like “Write a PR description for the change that renamed getUser to fetchUser.” After you edit files, apply the changes with/reload-plugins. If it doesn’t show up, check the Errors tab in/pluginandclaude plugin list.Copy and paste this promptI renamed the getUser function to fetchUser and updated 3 call sites. Write a PR description for this change.
If it doesn’t get picked up, call it directly with
/team-kit:pr-descriptionto tell apart “it doesn’t load” from “it loads but the output is off.” You can also check whether it’s loaded with/skills. -
Check quality with
claude plugin evalEven with a valid format, Claude may not choose the skill, or the output may be off.
claude plugin evalactually runs the plugin’s test cases, scores them, and compares against a baseline without the plugin. It needs Claude Code 2.1.269 or later, and if git is installed it must be version 2.31 or later (as of 2026-10-19). With an older git, it stops before running any cases.Cases go in
evals/<case name>/folders.claude plugin eval initcan create them by asking you questions (in an interactive session), or you can write them by hand (claude plugin eval init --bare namegives you an empty template).evals/pr-from-diff/prompt.md: put the run limits in the frontmatter and the sentence the user would type in the body. Write it in everyday language without naming the skill, so you can see “whether it gets picked up from a natural request.”---max_turns: 5allowed_tools: [Skill]---I renamed getUser to fetchUser and updated 3 call sites. Write a PR description for this change.evals/pr-from-diff/graders/skill-fired.md: checks whether the skill was actually invoked (tool_used).---type: tool_usedtool: Skillinput_match: '"skill"\s*:\s*"(?:[\w-]+:)?pr-description"'---evals/pr-from-diff/graders/format.md: uses a regular expression (regex) to check that the response has the four headings in order. Regex grading gives the same result without any model call, so it’s stable and free.---type: regexpattern: '## Summary[\s\S]*## Changes[\s\S]*## How to test[\s\S]*## Risks'---Run it from the plugin folder.
Terminal window cd team-marketplace/plugins/team-kitclaude plugin eval . --runs 1 --ablation none --max-cost-usd 2In the results table, look at
WITH(score with the plugin),W/OUT(score without it), andΔ(the difference). The most common first finding the docs describe is “Δ near 0 and thetool_used: Skillgrader fails.” That means Claude doesn’t pick the skill from natural phrasing, so fix thedescriptionand run again. A single run varies a lot, so confirm the effect of a change with the default count (3 runs).In CI, skip the first-time trust prompt (
--trust-plugin), save the results as JSON, and fail the job when the score is below a threshold. Pin the model so scores stay comparable.Terminal window claude plugin eval . \--trust-plugin \--json results.json \--threshold 0.8 \--model claude-sonnet-5-5 \--judge-model claude-haiku-5-5 \--no-publish \--max-cost-usd 20Exit code 0 means pass, 1 means a score below threshold or a load failure, and 2 means a partial run caused by hitting the cost ceiling or a rejected authentication. For lightweight checks that run on every change, keep only the
regexandtool_usedgraders, which run without a judge, so costs don’t grow. For general evaluation methods, see 8. Manage LLM output quality with evals. -
Build a marketplace
This is
.claude-plugin/marketplace.jsonat the root of the marketplace repository.name,owner, andpluginsare required.{"name": "team-marketplace","description": "Our team's plugins","owner": { "name": "Platform Team" },"plugins": [{"name": "team-kit","source": "./plugins/team-kit","description": "A set of skills for writing PR descriptions"}]}- A relative
sourcepath is relative to the marketplace root (the folder that contains.claude-plugin/) and can’t use... - Make the entry’s
namematch thenameinplugin.json. If they differ, you get a not-found error at install time. - If the plugin lives in a different repository, use an object like
{ "source": "github", "repo": "your-org/team-kit" }forsource. There are alsogit-subdir(a subfolder in a monorepo),url,archive(zip), andnpmsources. - You can’t use official marketplace names (for example,
claude-plugins-official).
Install it locally to check.
Terminal window claude plugin marketplace add ./team-marketplaceclaude plugin install team-kit@team-marketplaceclaude plugin listclaude plugin details team-kitdetailsshows the component list and an estimate of the token cost added to every session. In this example the standing cost was about 114 tokens (for one skill, run directly). The more skills you add, the bigger this number gets, so find unused skills with/skill-doctorand clean them up.For a marketplace added by local path, edits take effect at the next session start or with
/reload-plugins. With a hosted marketplace, users download a copy, so theversionrule above applies. - A relative
-
Roll out to your team: per repository
Push
team-marketplaceto GitHub. If the repository is private, the marketplace is private too, so only people who can clone the repository can install from it.The instructions for teammates are two lines.
Terminal window claude plugin marketplace add your-org/team-marketplaceclaude plugin install team-kit@team-marketplaceOn Claude Code 2.1.292 or later, one line works too:
claude plugin install team-kit --marketplace your-org/team-marketplace. Inside a session,/plugin install team-kit --marketplace your-org/team-marketplaceregisters the marketplace and installs in one go (2.1.275 or later). To update, runclaude plugin update team-kit@team-marketplace.Recommend it automatically from your team’s code repository. If you commit the following to
.claude/settings.jsonin the code repository your team uses, you can declare marketplace registration and plugin activation inside the repository.{"extraKnownMarketplaces": {"team-marketplace": {"source": { "source": "github", "repo": "your-org/team-marketplace" }}},"enabledPlugins": {"team-kit@team-marketplace": true}}There are conditions and limits (from the official docs).
extraKnownMarketplacesapplies only in folders where the teammate has accepted the workspace trust dialog. In untrusted folders it is ignored silently.- A plugin that is listed in the marketplace by a relative path loads as-is. If a plugin points to an external repository, each teammate has to run
claude plugin install team-kit@team-marketplace --scope projectonce. Until then it shows as “enabled in project settings but isn’t installed.” - With
claude -por in CI, installation happens in the background, so the plugin may be missing on the first turn. In that case set the environment variableCLAUDE_CODE_SYNC_PLUGIN_INSTALL=1to make it wait for installation. - To install a private marketplace in CI, export a token with read access as
GH_TOKENand rungh auth setup-git. The default GitHub Actions token can only access the repository of that workflow. Keep the token in repository secrets. - Cloud sessions (claude.ai/code) don’t load plugins from the settings on your own computer.
Auto-update is a per-marketplace, user-side setting. Third-party marketplaces (including your team’s) default to off, so teammates turn it on in
/plugin, or you set it withautoUpdatein managed settings. One change is coming: in a Claude Code release on or after 2026-11-30, marketplaces registered through managedextraKnownMarketplaceswill auto-update by default. To opt one out, set"autoUpdate": falseon its entry (per the official changelog, as of 2026-11-28).Marking releases. If other plugins depend on yours with a version range, you need git tags. Running
claude plugin tag --pushin the plugin folder creates and pushes a{name}--v{version}tag (check first with--dry-run). -
Roll out to your team: org managed settings
To enforce it across the whole organization, use managed settings. There are three delivery methods.
Method Description Server-managed settings Paste the JSON in the claude.ai admin console under Organization settings > Claude Code > Managed settings. You need Owner permissions. MDM Deploy through a macOS plist or the Windows registry. Managed settings file A managed-settings.jsonat a system path.This example registers a marketplace and force-installs a plugin (the official docs example, with our names swapped in).
{"extraKnownMarketplaces": {"team-marketplace": {"source": { "source": "github", "repo": "your-org/team-marketplace" },"autoUpdate": true}},"enabledPlugins": {"team-kit@team-marketplace": true}}Even if a user turns it off in their personal settings, managed settings take priority and it keeps loading. Conversely, setting
falseinenabledPluginsblocks it in every scope and hides it from the list. There are also keys for restrictions.Key Role strictKnownMarketplacesThe list of allowed marketplace sources. []blocks everything, including the official marketplace.blockedMarketplacesA block list. It’s checked before the allow list. disableSideloadFlagsBlocks arbitrary loading such as --plugin-dirand--plugin-url.strictPluginOnlyCustomizationBlocks skills, agents, hooks, and MCP servers that come from anywhere other than plugins or managed settings. syncClaudeAiPluginsIf false, plugins synced from a claude.ai account are not downloaded.Things to watch out for when using several keys.
- If server-managed settings send even one policy key, then by default the plugin keys from MDM and files are ignored. To use both together, set
managedSourcesBehaviorto"merge". - If you use an allow list (
strictKnownMarketplaces), plugins in~/.claude/skills/may not load. To keep them, add{ "source": "skills-dir" }to the list. - An allow list doesn’t register marketplaces for you.
extraKnownMarketplacesdoes the registering, and the source being registered has to pass the allow list. - Per-department policies aren’t possible with server-managed settings (there is one per organization). Use per-department MDM files or gateway policies.
- You can see install and load activity through OpenTelemetry events (
claude_code.plugin_installed,claude_code.plugin_loaded) and the Enterprise Analytics API.
When you turn on a plugin for member accounts under Plugins & skills in the claude.ai organization settings, that plugin is delivered to Claude Code as
<name>@synced. This is a separate path from the managed-settings keys above. For sharing at the skill level, also see the sharing methods in C8. - If server-managed settings send even one policy key, then by default the plugin keys from MDM and files are ignored. To use both together, set
-
(Optional) Submit to the Anthropic directory
To let anyone install your plugin beyond your team, submit it through the developer portal. It goes through review, and once approved it reaches claude.ai and Cowork, and Claude Code users through account sync.
Requirement Details GitHub repository The repository that contains the plugin. You need to connect a GitHub account to claude.ai, and that account must be able to push to the repository. Paid claude.ai plan Pro/Max submit from their own account; on Team/Enterprise, the Owner submits. On Enterprise, you can grant Directory permission by role. Policy compliance You must follow the Anthropic Software Directory Terms and Policy. Pre-check Pass claude plugin validate ./your-plugin --strictand review the official pre-submission checklist. The portal’s Validate step runs more checks than the CLI.Here is the submission flow (per the official docs as of 2026-10-11).
- At claude.ai/directory/manage, choose Submit new > Plugin bundle
- In the Source step, enter the repository, the plugin folder (if it isn’t the repository root), and the branch or tag to track, then click Validate
- Fill in the Listing details (read from
plugin.jsonand the README), Data handling (whether you collect, store, or transmit personal information), and Compliance steps - Click Submit for review
Also know what happens after review.
- Each version gets validation and a security scan, and once it passes it can be published. Versions that need a reviewer’s check are put on hold. By default, publishing is done by Anthropic reviewers.
- After that, merging into the tracked branch scans and publishes the new commits. If you set
versioninplugin.json, bump it with each release. - You can submit with a private repository. In that case the source is uploaded to Anthropic, scanned, and shown to reviewers. You must make it public before it is published.
- There is a limit of 10 submissions per 24 hours per organization.
- If the remote MCP server your plugin references is one you built yourself, you must also submit the server separately as an MCP connector.
- The official Anthropic marketplace (
claude-plugins-official) does not accept submissions through this portal.
Quick reference
Section titled “Quick reference”Common claude plugin commands
Section titled “Common claude plugin commands”| Command | Purpose |
|---|---|
claude plugin init <name> [--with skills ...] |
Creates a plugin in ~/.claude/skills/<name>/ that loads automatically every session |
claude --plugin-dir <path> |
Loads a plugin for one session only, without installing (apply edits with /reload-plugins) |
claude plugin validate [--strict] <path> |
Checks the format of a plugin or marketplace |
claude plugin eval [target] |
Runs the cases and gives you scores and the difference versus the baseline (Δ). It costs money |
claude plugin marketplace add <source> |
Registers a marketplace (owner/repo, URL, path) |
claude plugin install <name>@<marketplace> |
Installs (share with the repository using --scope project) |
claude plugin update <name>@<marketplace> |
Updates to the new version (restart required) |
claude plugin list / details <name> |
Shows installed plugins, and components and token cost |
claude plugin disable / enable / uninstall |
Turn off / turn on / remove |
claude plugin tag [--push] |
Creates a {name}--v{version} release tag |
claude plugin marketplace remove <name> |
Removes a marketplace (its plugins are removed too) |
File location summary
Section titled “File location summary”| File | Location |
|---|---|
| Plugin manifest | <plugin>/.claude-plugin/plugin.json |
| Skill | <plugin>/skills/<name>/SKILL.md |
| Agents, hooks, MCP | <plugin>/agents/, hooks/hooks.json, .mcp.json |
| Marketplace | <repository>/.claude-plugin/marketplace.json |
| Per-repository team settings | <code repository>/.claude/settings.json |
| Eval cases | <plugin>/evals/<case>/prompt.md + graders/*.md |
Skill check commands (inside a session)
Section titled “Skill check commands (inside a session)”| Command | What it checks |
|---|---|
/skills |
The list of loaded skills |
/skill-doctor |
Context cost and invocation history per skill, and unused skills |
/reload-plugins |
Applies edits made on disk |
/plugin |
The Installed, Errors, and Marketplaces tabs |
Common sticking points
Section titled “Common sticking points”The plugin loads but I can’t see the skill
Section titled “The plugin loads but I can’t see the skill”- Cause: You put
skills/inside.claude-plugin/, or theskillspath in the manifest doesn’t point to a folder containingSKILL.md. - Fix: Move
skills/to the plugin root and run/reload-plugins. The Errors tab in/pluginshows the cause.
I pushed, but teammates don’t get the new version
Section titled “I pushed, but teammates don’t get the new version”- Cause: You set
versioninplugin.jsonand didn’t bump it. In that caseclaude plugin updateanswers “already at the latest version.” - Fix: Bump
versionon every release, or in a git marketplace leaveversionout so the commit SHA is used as the version. Auto-update is also off by default for third-party marketplaces, so teammates need to turn it on or runclaude plugin update.
I get Plugin "…" not found in marketplace when installing
Section titled “I get Plugin "…" not found in marketplace when installing”- Cause: The
namein the marketplace entry differs from thenameinplugin.json. Or thesourcepath isn’t relative to the marketplace root. - Fix: Make the two names match, and write
sourceas a relative path starting from the root, like./plugins/team-kit.claude plugin validatecatches..paths. A missing folder only produces an error at install time.
The skill exists but Claude doesn’t use it automatically
Section titled “The skill exists but Claude doesn’t use it automatically”- Cause: The
descriptionis vague or the key purpose is at the end. Ordisable-model-invocation: trueis set. - Fix: Rewrite the beginning using the words users actually say, and confirm with the
tool_used: Skillgrader inclaude plugin eval. Checking whether a direct/namecall works will narrow down the cause.
I added the marketplace to repo settings, but it doesn’t install for teammates
Section titled “I added the marketplace to repo settings, but it doesn’t install for teammates”- Cause: A teammate hasn’t accepted the trust dialog for that folder, or the plugin points to an external repository so each person has to install it.
- Fix: Tell them to accept the trust prompt, and for plugins from an external source, have them run
claude plugin install … --scope projectonce.
claude plugin eval costs more than expected
Section titled “claude plugin eval costs more than expected”- Cause: It’s the number of cases x 3 runs x 2 (baseline), plus the grading calls.
- Fix: Cut it down with
--runs 1and--ablation none, set a ceiling with--max-cost-usd, and switch graders toregexortool_usedwherever you can. If it hits the cost ceiling, you get exit code 2 and partial results.
Practical tips
Section titled “Practical tips”- Start small and grow. Begin with one skill, one case, and one teammate. The more skills you have, the higher the startup cost of every session.
- Evaluate skills before release, and watch usage after release. Clean up unused skills with
/skill-doctorandclaude plugin details. - Choose names carefully from the start. You can’t change a plugin name later. If you really must, move existing installs over with the marketplace’s
renames. - Use an allow list for third-party marketplaces. In an organization, consider a setup that allows only the company marketplace with
strictKnownMarketplaces. - Don’t put secrets in plugins. Keep API keys and tokens in users’ environment variables or repository secrets, and use only
${VAR}in code and.mcp.json. - What the code examples were checked against. The JSON and Markdown examples in this tutorial follow the official docs. On 2026-10-11 we verified their format with
claude plugin validate --strict, and also confirmed adding a local marketplace and installing from it. We did not runclaude plugin eval.
What to read next
Section titled “What to read next”- C8. Skills — Skill basics, claude.ai upload, and how to share
- 5. Build your own MCP server and connect it to Claude — Build an MCP server to bundle into a plugin
- 8. Manage LLM output quality with evals — General quality management beyond plugin evals
- C14. Core Claude Code features — Hooks, subagents, and plugin install commands
Sources
Last verified: Nov 28, 2026
- Extend Claude with skills (Claude Code) code.claude.com
- Plugins overview (Claude Code) code.claude.com
- Create a Claude Code plugin code.claude.com
- Create a marketplace code.claude.com
- Publish and distribute a plugin code.claude.com
- Manage Claude Code plugins for your organization code.claude.com
- Test plugins with evals code.claude.com
- Submit your plugin (Anthropic directory) claude.com
- Connect Claude Code to tools via MCP code.claude.com
- Claude Code changelog code.claude.com
Prices, limits, and menu names change often. Before making an important decision, check the official pages above for the latest details.
Finished this tutorial?
Progress is saved only in this browser and never sent anywhere.