/plugin-dev:plugin-setup [path to the repo root, defaults to the current directory] [--ci]from Plugin Dev
Set up a Claude Code plugin or marketplace repository so that every change is versioned, documented and checked — writes a managed plugin-development block into the project's CLAUDE.md (where manifests live, what to bump and update after each change, when to run the marketplace-creator audit and plugin-release), and optionally adds a CI workflow that fails a pull request with manifest drift or a missing version bump. Re-running refreshes the block in place. Use when starting or adopting a plugin repo, when version bumps or README updates keep getting forgotten, or when the user asks to "set up the plugin repo", "set up plugin-dev", "add the plugin workflow to CLAUDE.md", "make version bumps automatic", "skonfiguruj repo pluginów", "dodaj zasady pluginów do CLAUDE.md". NOT for building a plugin (plugin-creator), auditing an existing repo (marketplace-creator) or cutting a release (plugin-release).
Ships in Plugin Dev. 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.
Nothing in Claude Code bumps a plugin version, updates a README or runs a check on its own. What
happens after a change is whatever the project's CLAUDE.md tells Claude to do, plus whatever CI
refuses to merge. This skill writes both, so another plugin repository gets the same workflow as
this one without copying its CLAUDE.md by hand.
- templates/claude-md-block.md — the block written into
CLAUDE.md, with the placeholders step 3 fills.- templates/plugin-checks.yml — the optional CI workflow.
- references/rules.md — the plugin authoring rules, generated from the knowledge notes. The block links none of them; read them when a step below needs the reason.
| Step | Without this skill | After it |
|---|---|---|
| Version bump | only if someone remembers | CLAUDE.md tells Claude to do it in the same change; CI (--ci) fails a PR without it |
| README and doc tables | only if someone remembers | CLAUDE.md names the files; /marketplace-creator audit finds what is stale |
Manifest drift, $schema | found at install | /marketplace-creator audit before each commit, and in CI |
| Release tags | manual | still manual, through /plugin-release: tagging publishes, so it stays a decision |
Say this to the user in their language when you report: the block makes the workflow the default, CI makes it enforced, and nothing runs in the background.
Show progress in a task list: one item per step below.
ls .claude-plugin/ 2>/dev/null
.claude-plugin/marketplace.json → a marketplace. Read it: plugin names, source paths,
metadata.pluginRoot, whether entries carry version or dependencies..claude-plugin/plugin.json → a single plugin. The block drops the marketplace lines.Then note, from the files rather than assumptions: where each plugin's manifest is, whether
version is set (pinned) or absent (users follow commits), whether any plugin has an explicit
agents array, whether git tag --list '*--v*' finds release tags, and which READMEs list skills.
Audit the repo so the block describes one that is already true. In a marketplace, run the marketplace audit script:
node "${CLAUDE_SKILL_DIR}/../marketplace-creator/scripts/check-marketplace.mjs" . --no-native
Offer, do not apply unasked: --fix for a missing $schema, and git mv for a plugin.json
outside .claude-plugin/.
In a single-plugin repo the script has no marketplace.json to read and stops, so validate the
plugin instead, and offer /plugin-creator audit . for the full checklist:
claude plugin validate . --strict
Report the errors either way. The block is written either way.
Fill templates/claude-md-block.md:
{{LAYOUT}}: the real paths from step 1, for example plugins/<name>/.claude-plugin/plugin.json.{{AGENTS_LINE}}: the explicit-array line if any plugin sets agents, otherwise the scan line.{{VERSIONING}}: the pinned-version rules when version is set; the "follows commits, nothing to
bump" line when it is not.{{DOCS}}: every file that enumerates skills or agents by hand (root and per-plugin READMEs, a
table in CLAUDE.md). Leave out any that do not exist.{{TAGS}}: the tag line only when the repo tags releases or a plugin declares dependencies.{{AUDIT}}: /marketplace-creator audit in a marketplace, /plugin-creator audit . for a
single plugin.{{BUMP_CHECK}}: the /plugin-release line below in a marketplace; drop the line for a single
plugin, whose bump the release script cannot plan:
4. **Check the bump** with \/plugin-release` in plan mode: it proposes the semver size per plugin. Do not let it tag.`Then place it:
CLAUDE.md has <!-- BEGIN:plugin-dev --> … <!-- END:plugin-dev --> → replace only what lies
between the markers, markers included.CLAUDE.md → create it with a one-line title and the block.If the existing CLAUDE.md already states a rule the block would contradict (another bump policy,
another manifest path), stop and ask which one wins before writing.
--ci or when the user agreesCopy templates/plugin-checks.yml to
.github/workflows/plugin-checks.yml, replacing {{PLUGIN_DEV_REF}} with this plugin's release tag,
plugin-dev--v<version> from ${CLAUDE_SKILL_DIR}/../../.claude-plugin/plugin.json. Confirm the tag
exists before writing it:
git ls-remote --tags https://github.com/JanSzewczyk/claude-plugins "plugin-dev--v*"
If that version is not tagged, use the newest tag the command lists and say so. The workflow calls
the shared plugin-checks action at that tag (Node 26, optional strict, base-ref and path
inputs), so the project vendors nothing and any other repository can use the same action. Skip the
step when the repo is not on GitHub, and say why.
Name the file the block went into and whether it was added or refreshed, what the audit found,
whether CI was added, and the one thing that stays manual: /plugin-release to tag.
The block points at these through the audit it names; read the rule when the user asks why.
| Impact | Rule | Applies to |
|---|---|---|
| critical | Bump the plugin version in every change that touches the plugin — A pinned version keeps users on the cached copy until the string changes, however many commits land. | claude-code |
| critical | Keep plugin.json in .claude-plugin/ and every component at the plugin root — The manifest is .claude-plugin/plugin.json; skills/, agents/ and hooks/ sit beside .claude-plugin/, never in it. | claude-code |
| high | Give a version range to every dependency whose skills or tools your plugin calls — An unconstrained dependency moves to every release, so one rename breaks your plugin for everyone who updates. | claude-code |
| high | Keep name, version and dependencies identical in plugin.json and the marketplace entry — Two surfaces read two files; a value set in both must match, or install and browse disagree. | claude-code |
| high | Read plugin files from CLAUDE_PLUGIN_ROOT and write state to CLAUDE_PLUGIN_DATA — The install directory changes on every update; state written there is lost. | claude-code |
| high | Keep a skill description inside the 1,536-character listing limit — The listing cuts description + when_to_use at 1,536 characters; the rest never reaches the router. | claude-code |
| high | List every agent file once the manifest sets agents — agents, commands, outputStyles and workflows replace their default folder scan; skills only adds to it. | claude-code |
| high | Tag a release for every version another plugin's dependency range points at — Dependency ranges resolve against --v git tags, not against plugin.json. | claude-code |
| high | Treat a published plugin's name as permanent and relabel it with displayName — Installs, settings and configuration are keyed by name; a renamed plugin is a different plugin to every user. | claude-code |
| high | Run claude plugin validate and the drift check on every pull request — validate checks each manifest's shape; the drift check catches docs, agents arrays and versions that fell behind. | claude-code |
| medium | Install the plugin from a local marketplace before pushing a release — validate checks files; only an install finds a wrong source, a missing directory or a reserved name. | claude-code |
| medium | Put instructions a plugin needs in a skill, not a CLAUDE.md inside the plugin — A CLAUDE.md at the plugin root is never loaded as context. | claude-code |
| medium | Keep SKILL.md under 500 lines and move reference material into references/ — Every body line is paid on each use; reference files load only when the task needs them. | claude-code |
| medium | Put hooks and MCP servers in the plugin, never in plugin agent frontmatter — Plugin agents ignore permissionMode, hooks, mcpServers and initialPrompt; the plugin-level files are what load. | claude-code |
| medium | Start every component path with ./ relative to the plugin root — Paths in a manifest are relative to the plugin root, start with ./, use forward slashes and never contain .. | claude-code |
| low | Open every plugin.json and marketplace.json with a SchemaStore $schema — $schema gives editor validation and autocomplete; Claude Code ignores it at load, so it costs nothing. | claude-code |
plugin-dev markers in an existing CLAUDE.md.$schema or bump versions unasked; step 2 reports, the user decides./ship-task owns that.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub janszewczyk/claude-plugins --plugin plugin-dev5 skills in this plugin
/marketplace-creatorCreates, maintains and audits a Claude Code plugin marketplace: the .claude-plugin/marketplace.json catalog, plugin entries and source types, hosting and private access, version policy, renames and removals, channels and org relevance suggestions. Its audit finds drift between marketplace.json, each plugin.json, agent and skill files, CLAUDE.md and every README, plus what the docs warn about: unpinned sources, missing renames, version set twice, reserved names. Use to start a marketplace, add, rename or remove a plugin entry, host or share one, or validate, audit or health-check a marketplace or plugin repo before a release, after adding or renaming a skill or agent, or when plugins show no name in /plugin: 'is this repo consistent', 'did I forget to register something', 'zrób marketplace', 'zrób audyt marketplace'. NOT for one plugin's skills, hooks or MCP servers (plugin-creator), mods (mod-creator), cutting a release (plugin-release) or one SKILL.md's quality (skill-audit)./mod-creatorBuilds, changes, tests, debugs and audits Claude Code mods: plugins whose hooks/hooks.json lists "modules" (register.ts/.js) that run inside Claude Code to draw panes, a band above the prompt or toasts, restyle the spinner or tool rows, add /commands and tools, guard or rewrite tool calls and prompts, or enforce org policy; answers how mods work. Use when the mod should live in a folder the user owns, be tested or shared, or whenever a register.ts/.js or a hooks.json with "modules" is written or debugged: 'make a mod that…', 'show X above the prompt', 'why does my mod do nothing', 'audit this mod', 'is this mod safe to install', 'zrób moda', 'czemu mój mod nie działa', 'zrób audyt moda'. For a quick mod live in this session only, use plugin-authoring. NOT for settings.json hooks, a 'whenever X, block Y' rule a settings hook can express, or a statusLine command (update-config); other plugins and their skills, agents or MCP servers (plugin-creator), or marketplace manifests (marketplace-creator)./plugin-creatorCreates, extends, debugs and audits a Claude Code plugin: the .claude-plugin/plugin.json manifest and its components (skills, agents, hooks, MCP and LSP servers, bin/, monitors, output styles, themes, workflows, userConfig), dependencies with version ranges, an evals/ suite, token cost and release readiness; also converts a .claude/ setup into a plugin. Use when the user wants a new plugin, to add a skill, agent, hook or MCP server to one, to know why a plugin or component doesn't load, or to check a plugin before release or install: 'make a plugin that…', 'turn my .claude folder into a plugin', 'add a hook to this plugin', 'is this plugin ready to publish', 'audit this plugin', 'zrób plugin', 'dodaj hooka do pluginu', 'zrób audyt pluginu'. NOT for the marketplace catalog, entries, hosting or renames (marketplace-creator), mods whose hooks.json lists modules (mod-creator), tagging a release (plugin-release), or one SKILL.md's writing quality (skill-audit)./plugin-releaseCut a release for one or more plugins in a Claude Code marketplace repo — work out which plugins changed since the last tag, propose the semver bump each change implies, write the new versions into plugin.json, keep the docs tables in step, and create the release tags with `claude plugin tag`. Use when the user wants to release, publish, version, or tag a plugin, asks "what needs a version bump", says they forgot to bump a version, or has finished a batch of skill and agent edits and wants the repo release-ready.Other plugins' skills for the same job