/collaboration-skills:claude-skill-plugin-packagingfrom collaboration-skills
Installs, shares, and manages Claude Code skills as plugins across repos. Helps resolve depth-1 discovery issues with submodules, nested folders, and marketplace-vs-flat-skill tradeoffs.
Ships in collaboration-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Plugins and plugin marketplaces are Claude Code's own distribution mechanism — a marketplace repo with .claude-plugin/marketplace.json gives "centralized discovery, version tracking, automatic updates". What the official docs don't spell out in one place is the depth-1 discovery trap and the install-model tradeoffs below — that's what this skill adds.
references/official-docs.md.apple-dev-skills) into a new project..claude/skills/<lib>/... not found".Claude Code discovers plain project skills only at depth 1:
.claude/skills/<skill>/SKILL.md. It does not recurse into subdirectories.
Consequences (each has burned someone):
.claude/skills/<lib>/ puts SKILL.md at
.claude/skills/<lib>/skills/<skill>/SKILL.md (depth ≥ 2) → NOT discovered as a
plain skill.But a nested skill tree is still found if its root is itself a plugin (carries
.claude-plugin/plugin.json) — it self-loads on the next session as <lib>@skills-dir,
with no marketplace and no install step (project scope: after the workspace-trust
dialog; must launch from the session's primary working directory, no walk-up to a
parent project). This is claude plugin init's documented default, not an
experimental feature — see Model D below. It only fails to help when the repo you're
vendoring is a marketplace (root has marketplace.json but no plugin.json) rather
than a single plugin — which is this catalog's own shape, so a bare submodule of
this repo still needs Model B1 or B2.
A repo becomes a Claude Code plugin with a manifest, and a marketplace (catalog) with a second manifest. One repo can be both (single-repo model):
your-skills-repo/
├── .claude-plugin/
│ ├── plugin.json # makes it a plugin; "name" becomes the namespace
│ └── marketplace.json # makes it a marketplace; lists plugins
└── skills/
└── <skill>/SKILL.md # one dir per skill
plugin.json (the name is the plugin namespace prefix — skills surface as plugin-name:<skill>; this is independent of the marketplace name):
{ "name": "your-skills", "version": "0.1.0", "description": "…", "license": "MIT" }
The marketplace name is the catalog identifier used in /plugin install plugin-name@marketplace-name. These are two distinct names that happen to be the same string in the single-repo model — that identity is a coincidence, not a requirement. A real-world example where they differ: "code-formatter@company-tools" (plugin name = code-formatter, marketplace name = company-tools).
marketplace.json — lists this plugin (and can list MANY plugins from other sources):
{
"name": "your-skills",
"owner": { "name": "you" },
"plugins": [
{ "name": "your-skills", "source": "./", "description": "…", "version": "0.1.0" }
]
}
"source": "./" = the plugin is at the marketplace repo root.
| Model | Pinned? | Per-repo commit? | Install step? | Use when |
|---|---|---|---|---|
| A. Global marketplace | No (latest) | No | /plugin install once, globally | Personal use across many repos |
B1. Marketplace github+ref | Yes (git ref) | Yes (settings.json) | None for this plugin; external-source plugins still need claude plugin install per collaborator (≥v2.1.195) | Team default — no submodule needed |
B2. Vendored submodule + directory source | Yes (commit SHA) | Yes | None | SHA-level pin, or fully offline vendoring |
| D. Submodule of a single-plugin repo | Yes (commit SHA) | No (self-loads) | None, after trust dialog | The repo you vendor already ships plugin.json at its root |
| C. npm (flat, non-plugin) | Depends on registry | No | npx skills add | One skill set, no aggregation needed |
/plugin marketplace add owner/your-skills-repo
/plugin install your-skills@your-skills
Loads globally (every project), namespaced. Not pinned per repo.
ref pin, no submodule (recommended default for a team)Commit to the project's .claude/settings.json:
{
"extraKnownMarketplaces": {
"your-skills": {
"source": { "source": "github", "repo": "owner/your-skills-repo", "ref": "v0.1.0" }
}
},
"enabledPlugins": { "your-skills@your-skills": true }
}
No submodule, no vendoring — Claude Code resolves the pinned ref on trust. Caveat
(since v2.1.195): auto-install-on-trust applies to plugins declared via a relative/
directory source; a plugin whose source is external (github, npm, url,
git-subdir) — like the aggregated github / git-subdir entries in §Aggregating —
is enabled in settings but each collaborator still has
to run the claude plugin install command Claude Code prints on first load. The
marketplace source (extraKnownMarketplaces / marketplace add) — where this
marketplace.json itself is fetched from — takes ref but not sha; for an
exact-commit pin use B2.
Use this when a repo must depend on an exact commit SHA, or must work without
network access to the plugin's origin — B1 only pins a ref, not a sha.
git submodule add https://github.com/owner/your-skills-repo.git .claude/skills/your-skills
cd .claude/skills/your-skills && git checkout v0.1.0 && cd -
.claude/settings.json (the shared, committed
file — not .claude/settings.local.json, which is personal/gitignored):
{
"extraKnownMarketplaces": {
"your-skills": {
"source": { "source": "directory", "path": "./.claude/skills/your-skills" }
}
},
"enabledPlugins": { "<plugin-name>@<marketplace-name>": true }
}
Replace <plugin-name> with the name from the plugin's plugin.json and <marketplace-name> with the name from the marketplace's marketplace.json. In the single-repo model these happen to be the same string (e.g. "your-skills@your-skills": true), but they are conceptually distinct — the plugin namespace and the catalog identifier.
source for a local dir is an object {"source":"directory","path":"./relative"} — a relative path. Relative plugin sources resolve for marketplaces added from a git source or a local directory; they fail only when the marketplace was added by a direct URL to marketplace.json. A directory source path resolves against the containing repo's main checkout — including from inside a worktree of it — regardless of whether the target itself is a git repo. The docs label directory sources "for development only"; prefer B1 for a team default and reserve B2 for the SHA-pin/offline case.git clone --recurse-submodules + workspace-trust, Claude Code
auto-registers the marketplace and enables the plugin. Skills load as
your-skills:<skill>. No /plugin install step for this relative/directory-sourced
plugin — but see B1's v2.1.195 caveat if this marketplace also aggregates externally-sourced
plugins.Why both pieces: the submodule pins the exact version (a commit SHA); the committed settings.json is what actually makes Claude Code load it. Either alone is insufficient (submodule-only = not discovered; settings-only = nothing to point at).
If the repo you're vendoring has .claude-plugin/plugin.json at its root (not just
a marketplace.json), a plain submodule under .claude/skills/ or ~/.claude/skills/
is enough:
git submodule add https://github.com/owner/single-plugin-repo.git .claude/skills/their-plugin
cd .claude/skills/their-plugin && git checkout v0.1.0 && cd -
On the next session (after the project-scope trust dialog), it self-loads as
their-plugin@skills-dir — no marketplace, no install step, no settings.json edit.
Caveats: the same primary-working-directory / trust-dialog rule stated above applies
(exact version gate: references/official-docs.md); and because a project-scope
skills-dir plugin's content comes from the repository, its code-running components are
gated further — MCP servers it declares go through the same per-server approval as a
project .mcp.json, LSP servers start only after you trust the workspace, and
background monitors do not load (personal-scope ~/.claude/skills/ plugins have none of
these restrictions). This repo's own root has only marketplace.json,
not plugin.json, so a bare submodule of this repo does not self-load this way — use
B1 or B2.
npx skills add installs skills flatly — see README §C and scripts/install-flat.sh.
It reads marketplace.json / plugin.json, but only follows locally-declared skill
paths — it does not fetch the aggregated externals' remote github / git-subdir
sources (below), so those are skipped. Use it for a single skill set with no
aggregation needs, not for this catalog's full plugin set.
A marketplace is a catalog of plugins from many sources — that is the native
aggregation mechanism, no submodule required. Add more entries to plugins[],
each with its own source:
"plugins": [
{ "name": "your-skills", "source": "./" },
{ "name": "someones-testing", "source": { "source": "github", "repo": "them/testing-skills" } },
{ "name": "vendored-thing", "source": { "source": "git-subdir", "url": "https://…", "path": "tools/plugin" } }
]
Accepted plugin source types (relative path, github, url, git-subdir, npm, archive,
command) and the exact fields and Claude Code version each requires drift with new
releases — read references/official-docs.md rather than trusting a hardcoded list. Use a
submodule only when you need to vendor + pin another repo's content into yours (Model B2
or D above).
marketplace.json) ≠ discovered.
Pair it with the extraKnownMarketplaces + enabledPlugins settings (Model B2) — or,
if the submodule's own root has plugin.json instead, it self-loads on its own (Model D).~/.claude/plugins/known_marketplaces.json), but the committed project .claude/settings.json declaration is what makes it reproducible for everyone on trust. Marketplace names are checked against a reserved list (claude-code-marketplace, anthropic-marketplace, agent-skills, …) — adding a new marketplace under a reserved name is rejected outright, and Claude Code re-checks the name on every load, so an existing marketplace whose name later becomes reserved stops loading too, erroring with "is registered from an untrusted source" (errors reference). Fix: remove it and re-add from the official source, or rename it and have users re-add from yours.skill-authoring-patterns. /doctor
and /skill-doctor show the actual per-session cost. skillOverrides: "name-only" only
demotes personal/project skills — it does not apply to plugin skills ("Plugin skills
are not affected by skillOverrides. Manage those through /plugin instead."); for a
plugin the only levers are disabling it via /plugin, or raising the consumer's
skillListingBudgetFraction.name containing "claude" loads fine in Claude Code — this skill's own
name is proof, and claude-hud/claude-mem ship the same way — but is rejected by the
platform Agent Skills spec's reserved-word rule. This only matters if the skill is ever
uploaded to claude.ai, the Skills API, or packaged with package_skill.py; the Claude Code
plugin path this skill describes is unaffected.git commit -a skips new files — plugin.json/marketplace.json are new, so -a silently omits them. Use explicit git add and verify with git show --stat --summary (plain --stat doesn't print the create mode lines new files need)./reload-plugins then check the skills list shows your-skills:<skill> entries.claude plugin details your-skills@your-skills lists the bundled skills, agents, and
token cost — not scope. Scope (user / project) comes from claude plugin list;
a project-scope plugin only resolves from inside that project, so running either command
from elsewhere returns Plugin "…" not found.git ls-files .claude/settings.json (it's committed) and the submodule
gitlink point at the intended version.github-contribution-workflow — routes plugin distribution/installation questions here; that skill owns PR/issue mechanics, this one owns packaging and discovery.skill-authoring-patterns — routes distribution/packaging questions here once a skill is authored; that skill owns authoring conventions, this one owns how the finished skill gets shared.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub wei18/apple-dev-skills --plugin collaboration-skills12 skills in this plugin
/agent-impl-notes-logKeep a running impl-notes file next to the phase meeting log while a subagent executes a task, recording design decisions, intentional deviations from spec, tradeoffs, and open questions as they happen rather than after the fact. Use at the start of any non-trivial subagent dispatch (multi-file change, ambiguous spec, new dependency or module, refactor), when ambiguity is hit mid-task, or before deviating from spec. Not the post-hoc meeting log (session-to-meeting-log); the two coexist./backlog-routing-by-topicRoute a stray idea that surfaces mid-task to the §Backlog of the right living doc in a spec-phase-orchestration repo (design.md, foundations.md, plan.md, methodology.md, or today's meeting log) as a single line, without derailing the current work. Use when a not-now-but-don't-forget idea comes up, when tidying a meeting log's parking-lot items, or when asked where an idea should go. Not for decisions that must be acted on now (those belong in the body of plan.md)./github-contribution-workflowDrive GitHub contributions through the gh CLI — pull requests, issues, GitHub-side file edits, repo secrets, contribution-flow repo settings, submodule pin bumps. Use when about to run `gh pr create` / `gh pr merge` / `gh pr checks` / `gh issue create` / `gh secret set` / `gh api`, or asked "open a PR", "merge this", "bump the submodule". Does NOT cover pure local git, diff-vs-commit sanity (pr-diff-verification), security repo settings (apple-dev-skills:apple-public-repo-security), worktree conflicts (subagent-conflict-detection), plugin distribution (claude-skill-plugin-packaging)./leader-developer-handoff-contractShape the prompt a Leader sends when dispatching a sub-agent (Developer, Designer, Code Reviewer, drafting agent) so the result comes back verifiable and integrable. Use when about to call the Agent tool, writing or reviewing a dispatch prompt, deciding what a sub-agent must read or which skills it must invoke, or when asked "what should the sub-agent prompt include" / "which element am I missing". Does NOT own how many review rounds to run or how findings are adjudicated (subagent-review-cycles), nor the impl-notes file format (agent-impl-notes-log)./methodology-pattern-extractorExtract recurring collaboration patterns from accumulated meeting logs (optionally session JSONL) and record them in docs/methodology.md with evidence of where each was sighted. Use when the user asks to update methodology, extract recurring patterns across the meeting logs, or consolidate recurring collaboration flows; or when five or more meeting logs have accumulated while §Patterns is still empty. Not for writing the meeting logs themselves (session-to-meeting-log) or for parking one-off ideas (backlog-routing-by-topic). Takes no arguments — the fork scans all of `meetings/*.md`./pr-diff-verificationCheck that a branch's actual diff matches what its commit messages and any subagent report claim, before the commits leave the machine. Use before `git push` of a feature branch, before `gh pr create` or `gh pr merge`, after a subagent reports "committed N files", after an amend / rebase / force-push, or when a verification report's headline count looks off. Catches "commit log wrote but code didn't make it" accidents. Does NOT read the diff for correctness (that is a Code Reviewer's job) nor own gh / PR mechanics (github-contribution-workflow).Other plugins' skills for the same job