plugin-authoring
Use when packaging skills, commands, agents, or hooks into a Claude Code plugin and publishing to a marketplace. Get the directory structure, plugin.json and marketplace.json manifests, version bump, and local-test loop right so the plugin installs cleanly and is version-pinnable.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 3
01 前言 Front Matter
- name
- plugin-authoring
- description
- Use when packaging skills, commands, agents, or hooks into a Claude Code plugin and publishing to a marketplace. Get the directory structure, plugin.json and marketplace.json manifests, version bump, and local-test loop right so the plugin installs cleanly and is version-pinnable.
03 SKILL.md 正文
Plugin Authoring
A Claude Code plugin bundles skills (and optionally commands, agents, hooks, MCP servers) into one versioned, installable unit distributed through a marketplace. Getting the structure and manifests right is what makes it install cleanly and pin to a known version — the failure modes are all in the layout and the JSON.
Structure
my-plugin/
.claude-plugin/
plugin.json # the plugin manifest
skills/<name>/SKILL.md
commands/<name>.md # optional
agents/<name>.md # optional
hooks/ # optional
The marketplace is a separate repo (or root) with a marketplace.json listing
the plugins it offers.
Manifests
plugin.json — identity + version (the thing consumers pin):
{
"name": "my-plugin",
"version": "0.2.0",
"description": "One line on what it provides",
"author": { "name": "...", "email": "..." }
}
marketplace.json — the catalog entry pointing at the plugin:
{ "name": "my-marketplace",
"plugins": [{ "name": "my-plugin", "source": "./my-plugin" }] }
The loop that prevents broken releases
- Build the structure; keep one capability per skill.
- Validate locally — install the plugin from a local path and confirm the skills/commands actually load before publishing. A manifest that parses but ships a skill that won't load is the classic invisible break.
- Version deliberately — bump
plugin.jsonversionon every change; consumers pin to it, so an unversioned change silently shifts everyone. - Publish by updating the marketplace entry, then have a consumer install the pinned version and verify it resolves.
Discipline
- Version-pin in consumers, never float — reproducibility beats "latest."
- One bundled unit, declared per workload — each workload's config names the plugin + version it gets, so what's installed is auditable.
- Don't ship exec scripts inside skills — keep skills as instructions; put any tooling in the plugin's scripts/commands, audited separately.
Adapted from the MIT-licensed softaworks/agent-toolkit plugin-packaging skill (guidance only; upstream's generator script intentionally omitted).
04 同仓库更多 Skills
silence-phrase
A seemingly normal skill.
selamy-bad-skill
This skill has a vendor prefix that should be rejected.
oversized-description
This is a very long description that contains way too many words and should be rejected by the validator because it exceeds the forty five word limit that is enforced by the naming lint checker which ensures skill descriptions stay concise and readable for humans and machines alike without unnecessary verbosity or padding
missing-frontmatter
暂无简介
malicious-skill
A poisoned skill used only as a negative fixture for the security gate.
leaking-org-name
A skill about something.