Packaging and Sharing Claude Code Skills
Take a skill from your personal ~/.claude folder to a versioned plugin your whole team installs from a marketplace — portably and with governance.
By Imtiaz RayhanUpdated 9 min read
On this page
A personal skill in ~/.claude only helps you. To share it, commit it to a repo's .claude/skills/ for one project, or bundle it into a plugin and list that plugin in a marketplace.json so any team can run /plugin install. Keep paths inside the plugin, bump the version per release, and review skills before running them — they can grant tool access.
Steps at a glance
- Decide the distribution scope. If only you need the skill, leave it in ~/.claude/skills/. If one repo's collaborators need it, commit it to that repo's .claude/skills/. If multiple teams or repos need it, bundle it into a plugin and distribute through a marketplace.
- Make the skill portable first. Before sharing, strip machine-specific assumptions: no absolute paths, no '~/my-stuff' references, no '../shared' that points outside the skill folder. Reference bundled scripts with ${CLAUDE_SKILL_DIR}/scripts/foo.py so they resolve at personal, project, or plugin level.
- Bundle the skill into a plugin. Create a plugin directory with .claude-plugin/plugin.json (name, description, version) and a skills/ folder holding your skill directory. The plugin can also carry agents/, hooks, and MCP config — one versioned unit. Check it with claude plugin validate.
- Write the marketplace catalog. In a repo, add .claude-plugin/marketplace.json with name, owner, and a plugins array. Each entry needs a name and a source (a relative ./path, a github repo, a git URL, git-subdir, npm, an archive, or a command). Run claude plugin validate on the marketplace directory before you push.
- Host and share. Push the marketplace repo to GitHub or any git host. Teammates run /plugin marketplace add owner/repo, then /plugin install plugin-name@marketplace-name and pick a scope in the panel that opens. To pre-wire a repo, add extraKnownMarketplaces and enabledPlugins to its .claude/settings.json; each contributor still runs claude plugin install plugin-name@marketplace-name --scope project once per clone.
- Version, update, and govern. Bump version per release and push; users get it via /plugin marketplace update, or automatically once auto-update is turned on for your marketplace (it is off by default for third-party marketplaces). Pin third-party plugins to a commit SHA, review allowed-tools before running a repo's skills, and use managed settings to control which marketplaces an org may add.
Key takeaways
- Personal skills (~/.claude/skills/) help only you; project skills (.claude/skills/, committed) help one repo; plugins distributed via a marketplace help any team that installs them.
- A plugin is a directory with .claude-plugin/plugin.json that bundles skills, agents, hooks, and MCP servers into one versioned, installable unit.
- A marketplace is just a repo with .claude-plugin/marketplace.json listing plugins; users add it with /plugin marketplace add owner/repo and install with /plugin install name@marketplace.
- Portability rules: never hardcode absolute paths, reference bundled files with ${CLAUDE_SKILL_DIR} or ${CLAUDE_PLUGIN_ROOT}, and never point outside the plugin directory — installs copy to a cache.
- Set a version in plugin.json and bump it per release so users get controlled updates; omit it and every git commit becomes a new version. Don't set it in both plugin.json and the marketplace entry.
- Skills can grant tool access via allowed-tools, so review and pin (commit SHA) any skill before a team trusts it.
You wrote a skill, it works great, and now someone else wants it. The problem: a skill in your ~/.claude/skills/ folder lives on exactly one laptop — yours. Sharing it isn't a copy-paste job. Claude Code gives you three real distribution scopes, and picking the right one is the whole game: commit it to a repo for one project, or bundle it into a plugin and publish that plugin through a marketplace for the whole team.
This guide takes a personal skill all the way to a versioned, installable, governed team artifact. The mechanics below are current as of November 2026; the plugin and marketplace system moves fast, so check the official docs for the newest fields. If you haven't built a skill yet, start with Writing Your First Skill.
The three places a skill can live
Where a skill lives decides who can use it. Claude Code loads skills from several more places (an enterprise managed directory, nested project folders, directories added with --add-dir), but for sharing you care about three:
| Location | Path | Who gets it |
|---|---|---|
| Personal | ~/.claude/skills/<name>/SKILL.md | Only you, across all your projects |
| Project | .claude/skills/<name>/SKILL.md (committed) | Everyone who clones the repo |
| Plugin | <plugin>/skills/<name>/SKILL.md | Anyone who installs the plugin |
The decision tree is short. If the skill encodes how this one repo does something — its deploy steps, its migration conventions — commit it to that repo's .claude/skills/ and you're done. Anyone who clones the repo gets it for free. If the skill is a capability you want across many repos or across a team — a house code-review pass, a changelog generator, a security checklist — that's a plugin. (For two or three people you can skip the marketplace: send them the plugin directory or a .zip of it and they load it with claude --plugin-dir. They get no updates that way, which is the reason to set up a marketplace once the audience grows.)
A plugin isn't just one more skill folder. It's a bundle: one versioned unit that can carry several skills plus agents, hooks, and MCP server configs, installed and updated together. That bundling and versioning is exactly what makes a plugin the right vehicle for cross-team distribution.
Make the skill portable before you share it
This is the step people skip, and it's why shared skills break. A skill that works on your machine often quietly depends on your machine. Before it travels, scrub three things:
- No absolute paths.
/Users/you/scripts/lint.shdoesn't exist on anyone else's box. - No
~/or home-relative references to files outside the skill folder. - No
../that escapes the skill or plugin directory. When a plugin is installed, Claude Code copies it into a cache (~/.claude/plugins/cache). Anything outside the plugin folder simply isn't copied, so../shared-utilsresolves to nothing.
The fix is to keep every supporting file inside the skill or plugin and reference it with a variable. Use ${CLAUDE_SKILL_DIR} to point at the skill's own directory regardless of where it's installed:
---
name: codebase-visualizer
description: Generate an interactive tree view of the repo. Use when exploring a new codebase.
allowed-tools: Bash(python3 *)
---
Run the bundled script from the project root:
```bash
python3 ${CLAUDE_SKILL_DIR}/scripts/visualize.py .
```That same skill now resolves correctly whether it's installed personally, committed to a project, or shipped inside a plugin. For files referenced from a plugin's hooks or mcpServers config, use ${CLAUDE_PLUGIN_ROOT} instead — it points at the plugin's installed root. That root is a per-version cache directory, so its path changes with every update; anything that must survive an update (installed dependencies, caches) goes in ${CLAUDE_PLUGIN_DATA}. Portability is just discipline about paths.
Bundle the skill into a plugin
A plugin is a directory with a manifest and a skills/ folder. The minimum:
my-team-plugin/
├── .claude-plugin/
│ └── plugin.json
└── skills/
└── quality-review/
└── SKILL.md
The manifest at .claude-plugin/plugin.json is small:
{
"name": "my-team-plugin",
"description": "Team code-review and changelog skills",
"version": "1.0.0"
}By default a plugin's skills load from its skills/ directory, so just dropping skill folders in there is enough. Only name is required in the manifest. The version field matters more than it looks: set it, and users only receive updates when you bump it — push new commits without changing the string and nobody gets them. Omit it on a git-hosted plugin and the commit SHA becomes the version, so every commit is a release — convenient for fast iteration, dangerous for a team that wants stable releases. Run claude plugin validate ./my-team-plugin to catch manifest errors before you share it. Plugin skills are namespaced, so quality-review inside my-team-plugin is invoked as /my-team-plugin:quality-review and can never collide with someone's personal skill of the same name.
Distribute it through a marketplace
A marketplace sounds heavyweight; it's just a git repo with a catalog file. Create .claude-plugin/marketplace.json at the repo root:
{
"name": "acme-tools",
"owner": {
"name": "DevTools Team",
"email": "devtools@example.com"
},
"plugins": [
{
"name": "my-team-plugin",
"source": "./plugins/my-team-plugin",
"description": "Team code-review and changelog skills"
}
]
}Each plugin entry needs a name and a source. The source can be a relative ./path inside the same repo, a github repo, a git url (GitLab, Bitbucket, self-hosted), a git-subdir for a plugin living in a subdirectory of some other repository, an npm package, a zip archive over HTTPS, or a command that prints a directory. Relative paths resolve from the marketplace root (the directory containing .claude-plugin/), and they only work when teammates add the marketplace via git — not via a raw URL to the JSON file. The entry above carries no version on purpose: the plugin's own plugin.json already sets it, and you should set it in one place only. If both are present and differ, Claude Code uses the plugin.json value without warning.
Before you push, run claude plugin validate . in the marketplace directory. It checks the JSON, the required fields, and each plugin entry.
Push the repo to GitHub, and your team installs in two commands:
/plugin marketplace add acme/claude-plugins
/plugin install my-team-plugin@acme-toolsThe first registers the catalog. The second doesn't install right away in a session: it opens the /plugin panel on that plugin's details, where you review what it adds and choose a scope — user (every project on your machine), project (everyone who works in the repo), or local (you, in this repo only). After you pick one, Claude Code installs the plugin and prints a summary; when a reload is needed it runs /reload-plugins for you, and if that would invalidate the prompt cache it leaves the plugin pending until you run /reload-plugins --force. The details pane lists the skills, agents, hooks, and MCP servers the plugin will add. Token-cost estimates appear there only for plugins from Anthropic's official marketplace, so for your own marketplace the review is on you. From a shell or CI, claude plugin install my-team-plugin@acme-tools --scope project does the same without the panel.
Pre-wire a repo for onboarding
For a team repo, you don't want every collaborator hunting for the marketplace by hand. Wire it into the project's .claude/settings.json:
{
"extraKnownMarketplaces": {
"acme-tools": {
"source": { "source": "github", "repo": "acme/claude-plugins" }
}
},
"enabledPlugins": {
"my-team-plugin@acme-tools": true
}
}This gets you most of the way, not all of it. Claude Code registers the marketplace once a teammate accepts the workspace trust dialog for the folder (in an untrusted folder it ignores the entry without a message). enabledPlugins turns the plugin on for the repo but doesn't download it, so each contributor still runs one command per clone:
claude plugin install my-team-plugin@acme-tools --scope projectUntil they do, the /plugin Errors tab reports that the plugin isn't installed. Put that line in your README's setup steps. For a true zero-touch rollout across every machine, an administrator sets the same two keys in managed settings instead.
Versioning and updating
Treat plugins like any other dependency: pin and bump deliberately. Set version in plugin.json (or in the marketplace entry) following semantic versioning, and increment it on every release. Users pull updates with /plugin marketplace update acme-tools, or claude plugin update my-team-plugin@acme-tools from a shell. Auto-update is on by default for Anthropic's official marketplace (claude-plugins-official) and most of its other official ones; for the community marketplace, third-party marketplaces like yours, and local ones it is off until a user turns it on in the /plugin Marketplaces tab or an admin sets "autoUpdate": true on the marketplace's extraKnownMarketplaces entry in managed settings. After any update, a /reload-plugins applies the change in-session; otherwise the new version loads at the next launch.
For the community marketplace and other public sources, prefer pinning a plugin to an exact commit sha in the marketplace entry. A SHA is immutable: the install succeeds even if the upstream branch or tag later moves or disappears, and nobody gets a surprise change because someone force-pushed main.
Review and governance for team skills
Here's the part that's easy to wave away and shouldn't be: a skill is executable trust. A skill's allowed-tools field pre-approves tools so Claude can use them without prompting during the turn that invokes the skill. A plugin can also ship hooks that run shell commands and MCP servers that execute on your machine, all with your user privileges. Installing a plugin or trusting a repo with project skills is, functionally, agreeing to run someone else's code.
Practical governance for a team:
- Review before you run. For project skills, read the
allowed-toolsand any bundled scripts before you run Claude Code in the repo at all. Claude Code applies a project skill'sallowed-toolseven in a non-interactive-prun in a folder you've never trusted, and a skill can quietly grant itself broadBash(*)access. - Pin third-party plugins to a commit SHA so a vetted version is what actually runs, not whatever HEAD became.
- Use code review for your own marketplace. The marketplace is a git repo — gate changes to it behind PR review like any other shared infrastructure, so a skill that grants new tool access gets a human look.
- Restrict marketplaces org-wide. Admins can use managed settings to control which marketplaces users may add (
strictKnownMarketplacesis the allowlist,blockedMarketplacesthe blocklist) and to push approved ones automatically, keeping installs inside a trusted catalog.
The same conciseness and authoring discipline you'd apply to a single skill still applies once it's shared — see Claude Code Skills Best Practices and keep procedures out of CLAUDE.md. And before you publish a skill to a team, prove it actually fires and produces what you expect with Testing and Debugging Skills — a broken skill is worse shared than kept to yourself. If you're still deciding whether the capability should even be a skill, a plugin, an agent, or a command, read Skills vs Agents vs Commands first.
Frequently asked questions
- What's the difference between a project skill and a plugin?
- A project skill is a SKILL.md committed to one repo's .claude/skills/ — it's shared with anyone who clones that repo, and nowhere else. A plugin is a packaged, versioned bundle (skills plus optional agents, hooks, and MCP servers) that any team can install into any project from a marketplace. Reach for a project skill when the recipe is repo-specific; reach for a plugin when the same capability should travel across repos and teams.
- How do I share a skill with my whole team?
- Two paths. For one repository, commit the skill to .claude/skills/ and it ships with the repo. For reuse across many repos, bundle it into a plugin, list that plugin in a marketplace.json hosted on GitHub, and have teammates run /plugin marketplace add owner/repo then /plugin install name@marketplace. You can pre-wire the marketplace and plugin in the repo's .claude/settings.json so the marketplace registers once a collaborator trusts the folder; each collaborator then runs claude plugin install name@marketplace --scope project once.
- How does versioning work for plugins?
- Set a version field in the plugin's .claude-plugin/plugin.json, or in the marketplace entry, but not both (plugin.json wins silently if they differ). When set, the plugin is pinned to that string and users only receive updates when you bump it. If you omit version on a git-hosted plugin, the commit SHA is the version, so every commit counts as a new one. Users refresh with /plugin marketplace update. Auto-update is on by default for Anthropic's official marketplace and off for the community marketplace, third-party, and local ones until a user or admin turns it on.
- Why does my plugin skill break after I share it?
- Almost always a portability problem. Installs copy the plugin into a cache (~/.claude/plugins/cache), so any path that points outside the plugin directory — an absolute path, a ~/ reference, or ../shared-utils — won't exist on the other machine. Reference bundled files with ${CLAUDE_SKILL_DIR} or ${CLAUDE_PLUGIN_ROOT} and keep everything inside the plugin folder.
- Is it safe to install a team or third-party skill?
- Treat it like running someone else's code, because it is. Skills can declare allowed-tools that pre-approve tool use, and plugins can ship hooks and MCP servers that execute on your machine. Review a repo's project skills before you run Claude Code in it (a project skill's allowed-tools applies even in an untrusted folder in a -p run), pin third-party plugins to a specific commit SHA, and let admins restrict which marketplaces the org can add via managed settings.
Filed under
skills · plugins · marketplace · distribution · teams
Related
- How to Install Claude SkillsEvery way to install Claude skills: manual copy, the agentscamp CLI, GitHub repos, plugins, team distribution, and uploading to claude.ai.
- Testing and Debugging Claude Code SkillsVerify a Claude Code skill triggers on the right prompts, check its output, and fix the five common failures — from vague triggers to broken paths.
- Claude Code Skills: Best PracticesThe patterns that make Claude Code skills reliable: trigger-first descriptions, one job per skill, lean bodies, bundled scripts, and scoped tools.
- What Are Claude Skills? The Complete GuideClaude Skills explained: what a SKILL.md is, how progressive disclosure keeps skills cheap, where they run, and how to install or write your own.
- CLAUDE.md Best PracticesHow to write a CLAUDE.md that actually helps — what to include, what to leave out, and how to keep it current.
- Skills vs Agents vs CommandsHow Claude Code's two extension mechanisms — subagents and skills — differ across three invocation patterns, with a decision table for choosing the right one.
- Writing Your First SkillA step-by-step guide to packaging a reusable procedure as a Claude Code skill that loads exactly when it's needed.
- The Agent Skills Standard: One SKILL.md for Every AI ToolAgent Skills became an open standard in December 2025. Which tools read SKILL.md today — Copilot, Cursor, VS Code, Gemini CLI, Codex — and how to write portable skills.