Plugin Release
ASecurityWork out which plugins in a Claude Code marketplace or single-plugin repo need a version bump and how big, then bump and tag only after the user agrees — it reads the branch against main, one commit, or the uncommitted changes, proposes the semver bump per plugin with reasons, writes the new versions into plugin.json on approval, and writes the matching CHANGELOG.md section (drafted from git history, also backfilled for a repo that has none, on request), and creates the release tags with `cla...
- 2 stars
- 0 votes
- 0 copies
- 5 views
- Added October 13, 2026
Works with
Security analysis
100/100Pro scans all 2 files and shows the line behind each finding
npx -y skills add JanSzewczyk/claude-plugins --skill plugin-release --agent claude-codeAre you the author of Plugin Release?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/janszewczyk-plugin-release)---
name: plugin-release
description: Work out which plugins in a Claude Code marketplace or single-plugin repo need a version bump and how big, then bump and tag only after the user agrees — it reads the branch against main, one commit, or the uncommitted changes, proposes the semver bump per plugin with reasons, writes the new versions into plugin.json on approval, and writes the matching CHANGELOG.md section (drafted from git history, also backfilled for a repo that has none, on request), and creates the release tags with `claude plugin tag`. Use only when the user asks for it: "release the plugin", "what needs a version bump", "bump the version", "tag a release", "podbij wersję", "co wymaga podbicia wersji". Never run it on your own after an edit or a commit; CI is what catches a missing bump.
allowed-tools: Read, Glob, Grep, Bash, Edit
argument-hint: "[plugin name to release, or nothing for every changed plugin]"
---
# Plugin Release
The manifest holds only the current version, so a bump alone says nothing about what changed. This
skill makes the bump correct and repeatable instead of remembered, and records it in `CHANGELOG.md`.
> - [scripts/plan-release.mjs](./scripts/plan-release.mjs) — the CLI that decides whether each plugin
> needs a bump and how big, with its reasons. `--apply` writes them; `--check` is the CI gate
> (`--changelog` also demands the CHANGELOG.md section).
> - [scripts/changelog.mjs](./scripts/changelog.mjs) — drafts CHANGELOG.md sections from git history.
> - [references/changelog.md](./references/changelog.md) — heading format, the draft and backfill
> procedure, and how a repository with a release workflow is handled.
## The versioning rules
If the repository's `CLAUDE.md` has a Versioning section, read it before deciding anything: it is
the contract, and where it differs from the defaults below, it wins.
**A bump is the user's decision.** This skill runs when the user asks for it, shows the plan, and
writes a version only after they agree. Nothing here runs because a file was edited or a commit was
made, and no `CLAUDE.md` should tell an agent to do so.
- **Versions live in the manifest**, in `.claude-plugin/plugin.json` or the marketplace entry. A plugin with
neither follows the git commit and has nothing to bump; the plan says so. **Skills have no
version field** — a skill's version is its parent plugin's version.
- **Every plugin bumps independently.** Three plugins changed in one batch means three separate
decisions, not one bump size applied across all of them.
- **An agent that carries its own `version`** bumps along with its plugin, and sets `lastUpdated`
to today if it has one. The script flags which agents need this; it does not edit agent
frontmatter for you, because the agent's own semver is a semantic call.
Bump sizes: **patch** for wording, typos, formatting and other non-behavioral edits; **minor** for
a new skill or agent, a new capability, meaningfully expanded guidance; **major** for a removed or
renamed skill or agent, a changed frontmatter contract, or a restructure that invalidates prior
usage.
## Run it
The script ships with this skill, not with the repo you are releasing. The argument is the
marketplace repo root:
```bash
node "${CLAUDE_SKILL_DIR}/scripts/plan-release.mjs" .
```
| Flag | Effect |
| --- | --- |
| *(none)* | Compare each plugin against where the current branch left the default branch (`origin/HEAD`, then `origin/main`, then `main`), plus uncommitted work. On the default branch itself, or without one, each plugin's last `<plugin>--v*` tag; then the upstream branch, then `HEAD~1`. |
| `--since <ref>` | Compare every plugin against that ref instead. |
| `--commit <ref>` | Only what that one commit changed (`<ref>~1` to `<ref>`), ignoring the working tree. |
| `--working` | Only the uncommitted changes (against `HEAD`). |
| `--plugin <name>` | Plan only that plugin. |
| `--apply` | Write the proposed versions into every layer that declares one. Without it the script only reports. |
| `--json` | Machine-readable plan. |
| `--check` | The CI gate: exit 1 when a changed plugin has no bump, a warning when the bump is smaller than the change implies. Writes nothing. With `--strict` a too-small bump fails too; `--ignore <a,b>` leaves plugins out. Under GitHub Actions it prints `::error` annotations and a step summary. |
The plan includes **uncommitted work**, so a new skill that exists only in the working tree is
still seen as a new skill. That is deliberate: you plan a release before committing the bump, not
after.
Plugins are found through each marketplace entry's `source`; a repo with no `marketplace.json` but a
root `.claude-plugin/plugin.json` is one plugin rooted at `.`, where `.github/`, dotfiles, `docs/` and
the root README, LICENSE, CHANGELOG and CLAUDE.md do not count as a change. Under `not planned` the
script names what it cannot release: remote sources, which ship from their own repo, and plugins with no version.
A plugin with no tag in a repo that tags per plugin is a **first release**: tag the version it
already declares, with no bump.
## The workflow
1. **Run the planner without `--apply` first**, with the scope the user means: the branch (default),
one commit (`--commit <ref>`) or the uncommitted changes (`--working`). Read the reasons per
plugin. The script proposes a *floor*, derived from what files moved — it cannot see intent.
2. **Overrule it where the diff is semantically bigger than it looks.** The script says patch for
an edit inside an existing skill. If that edit changed the skill's frontmatter contract,
renamed its slash command, or removed a documented capability, it is a **major** and you must
say so. This step is the reason the skill exists; do not skip it.
3. **Show the plan and ask.** One line per plugin (old → new, size, reason), and wait for the
user's yes, or their own size. Without it, stop here: no file is written.
4. **Run `/marketplace-creator audit` before bumping anything.** A release that ships a README claiming
the wrong skill count is the failure this pairing exists to prevent. Fix the drift first — the
doc edits belong in the same release, not a follow-up.
5. **Apply the bumps.** `--apply` for the mechanical ones; edit the manifest by hand where you
overruled the proposal. For every agent the script flagged, bump its frontmatter `version` and
set `lastUpdated` to today's date.
6. **Write the changelog section for every bumped plugin**, following
[references/changelog.md](./references/changelog.md): draft it with `scripts/changelog.mjs`, rewrite
the points into what a user needs to know, show it, and write it only after the user agrees. A
repository with no `CHANGELOG.md` gets none unless the user says yes to creating it (ask; offer to
backfill the earlier versions from git history).
7. **Leave the commit to the user**, or to the flow that called you (`/ship-task`), together with the
changes the bump describes.
8. **Tag only when the user asks for a release**, and only when CI does not tag for you. A workflow
that tags on merge (`.github/workflows/*` calling `git tag` or `claude plugin tag`) owns that
step: say so and stop, because a hand-made tag on the feature branch points at a commit that is
not on the default branch after a squash merge. Otherwise use the path the plan printed for that plugin.
The native command validates that `plugin.json` and the marketplace entry agree before it writes
anything:
```bash
claude plugin tag <plugin-path> --dry-run
claude plugin tag <plugin-path> -m "<name> v%s" --push
```
It creates `<name>--v<version>`. Refuses to run on a dirty tree, and refuses to overwrite an
existing tag — both are guardrails, not obstacles; do not reach for `--force` to get past them.
## Guardrails
- **Never run this, and never apply a bump, unprompted** — not after an edit, not after a commit, not
to be helpful. The user asks; CI catches the rest.
- **Never bump without a reason you can state.** If you cannot name what changed, the plugin
probably should not be released.
- **Never tag a dirty tree, and never `--force` a tag.** A tag that does not correspond to a
commit is worse than no tag.
- **Never create `CHANGELOG.md` unasked.** In a repo that has none, ask whether to start one and
whether to backfill it; without a yes, release notes stay in the tag annotation (`-m`). A repo that
has one gets a section for every bump, in the same change.
- **Never write a changelog section the user has not seen.** A draft from commit subjects is a
starting point; the points must state what changed for a user.
- **Pushing tags is a publishing action** — confirm with the user before `--push`, even when they
asked for a release.
## Rules
The plugin authoring rules behind these checks, generated from the knowledge notes. Open one when a
finding needs its reason or its fix.
<!-- BEGIN:knowledge -->
<!-- generated by knowledge.mjs from 17 note(s) (sha256 2ab50b81e474); edit the notes in knowledge/, then run build -->
| Impact | Rule | Applies to |
| --- | --- | --- |
| critical | [Raise a changed plugin's version before merge, on the maintainer's say-so](references/rules.md#raise-a-changed-plugins-version-before-merge-on-the-maintainers-say-so) — A pinned version keeps users on the cached copy until it changes; bump once on request, and let CI catch a miss. | claude-code |
| high | [Give a version range to every dependency whose skills or tools your plugin calls](references/rules.md#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](references/rules.md#keep-name-version-and-dependencies-identical-in-pluginjson-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](references/rules.md#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](references/rules.md#keep-a-skill-description-inside-the-1536-character-listing-limit) — The listing cuts description + when_to_use at 1,536 characters; the rest never reaches the router. | claude-code |
| high | [Keep plugin.json in .claude-plugin/ and every component at the plugin root](references/rules.md#keep-pluginjson-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 | [List every agent file once the manifest sets agents](references/rules.md#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](references/rules.md#tag-a-release-for-every-version-another-plugins-dependency-range-points-at) — Dependency ranges resolve against <plugin>--v<version> git tags, not against plugin.json. | claude-code |
| high | [Treat a published plugin's name as permanent and relabel it with displayName](references/rules.md#treat-a-published-plugins-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](references/rules.md#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 |
| high | [Add a CHANGELOG.md section for every version you bump, in a heading tools can parse](references/rules.md#add-a-changelogmd-section-for-every-version-you-bump-in-a-heading-tools-can-parse) — One `## [<version> <plugin>] — <date>` section per bumped plugin, grouped Added, Changed, Fixed or Removed. | claude-code |
| medium | [Install the plugin from a local marketplace before pushing a release](references/rules.md#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](references/rules.md#put-instructions-a-plugin-needs-in-a-skill-not-a-claudemd-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/](references/rules.md#keep-skillmd-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](references/rules.md#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](references/rules.md#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](references/rules.md#open-every-pluginjson-and-marketplacejson-with-a-schemastore-schema) — $schema gives editor validation and autocomplete; Claude Code ignores it at load, so it costs nothing. | claude-code |
<!-- END:knowledge -->
## Reporting back
One line per plugin: name, old version → new version, bump size, and the one-phrase reason.
Then the changelog sections written (or declined), and the tag commands, with whether they were run
or are waiting for confirmation.
Files in this skill
- SKILL.md
- scripts/plan-release.mjs
Attribution
Related skills
View all in development →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.