release

A release command that prepares finished code, publishes the library, updates plugin versions, records the work, and sends the changes to a Git repository. Git is a tool for tracking code changes.

In plain words
What is it for?
Use it when a completed session needs to become a marketplace release, including formatting, version updates, commits, and pushing changes.
Why use it?
It removes the need to remember and safely sequence all the steps involved in publishing a release.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/stellarshenson/claude-code-plugins/release
Clone the repo
git clone --depth 1 https://github.com/stellarshenson/claude-code-plugins

Made for: Claude Code.

Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,744 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.02744
Opus 5 $0.00000 $0.01372
Sonnet 5 $0.00000 $0.00549
Haiku 4.5 $0.00000 $0.00274

Measured yesterday against content hash 64d4aff619c2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

release scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/commands/release.md · 149 lines

How it starts

The opening of the file, as written. The whole thing — 149 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Release

Full release pipeline: lint + format, publish the library, sync plugins to its version, journal, commit, push. Use when shipping a finished session's work as a marketplace release.

Execution discipline (READ FIRST - prevents the known failure modes)

These rules are not optional. Two real incidents motivated them: a parallel-tool batch that raced on the git index, and corrupted terminal output that led to a wrong "no Makefile" conclusion.

  • One step at a time. NEVER batch dependent operations in parallel. Every git mutation (add, rm, reset, commit, push) and every version-bump write MUST run as its own tool call, and you MUST read its result before the next. Parallel tool calls are allowed ONLY for independent read-only inspection (e.g. several grep/cat with no ordering between them) - never for anything that writes, and never across a step boundary.
  • .git/index.lock means a git process is mid-flight or crashed. If you see it: STOP, confirm no git command is still running, then rm -f .git/index.lock and re-verify with a single git status before continuing. Do not blindly retry the locked command.
  • Distrust corrupted/garbled tool output. If a result looks truncated, shows the wrong file, or contains content that cannot belong to the command (interleaving, control-sequence noise), do NOT draw conclusions from it. Re-run that ONE command alone with a sentinel (echo MARKER; <cmd>) and confirm the marker before trusting the output. A misread here once caused a wrong "make publish does not exist" conclusion - the target existed and had already run.
  • One synced version, the library leads. make publish bumps pyproject.toml (PATCH) and uploads to PyPI - that resulting number is vN, the single source of truth for the release. Step 4 then writes vN into the 22 plugin strings (7 plugin.json + 7 kimi.plugin.json + marketplace.json metadata + 7 entries) so library and plugins always match. NEVER publish the library by hand (uv build / twine) - always make publish. NEVER set the plugin version independently of vN (do not run /increment-plugin-version during release).
  • EVERY release ships BOTH the CLI and the plugins. There is no plugin-only release. The plugins are documentation for a CLI they cannot function without: skills and commands are written against the current flags, so shipping plugin text without the matching library strands every user on a CLI that rejects the flags the new docs tell them to use. This is not hypothetical - it is the unrecognized arguments: --svg incident, where plugins at 1.6.31 drove a library at 1.5.5. A "docs-only" change is still a CLI release: run make publish anyway so vN advances on both sides together. The only case where the library does not upload is make publish failing, and that ABORTS the release - it never downgrades to a plugin-only push.
  • Verify after every mutating step before proceeding. Publish → confirm the new pyproject.toml version + the PyPI upload. Sync → confirm all 22 plugin strings equal vN and zero stale ones remain. Stage → confirm the staged set matches intent and nothing leaked in. Commit → confirm file count + clean worktree. Push → confirm LOCAL == REMOTE.

Read the full file on GitHub · 149 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 149 lines · 0 tokens per session scan A 64d4aff619c2

Subscribe to this mod's changes

release is a command published in the GitHub repository stellarshenson/claude-code-plugins (3 stars, last pushed 2d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,744 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.