release

A release command that reviews changes since the last version, suggests a version update, writes release notes, and builds and publishes the release.

In plain words
What is it for?
Use it to prepare software releases from Git commits, choose a major, minor, or patch version, and publish the resulting build.
Why use it?
It gathers the checks and publishing steps in one guided process, reducing missed changes or inconsistent release notes.

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/lebek/modmixer/release
Clone the repo
git clone --depth 1 https://github.com/lebek/modmixer

Made for: Claude Code.

Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,284 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.00016 $0.01284
Opus 5 $0.00008 $0.00642
Sonnet 5 $0.00003 $0.00257
Haiku 4.5 $0.00002 $0.00128

Measured 2d ago against content hash 6f9bad1d0011, 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 2d ago.

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 · 121 lines

How it starts

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

/release

You are running the /release command. Walk through these steps in order. Be concise — one sentence per step at most. Do not narrate plans; just do the work.

1. Find what's new since the last release

Run:

  • git describe --tags --abbrev=0 2>/dev/null to get the most recent tag (may be empty if no tags yet).
  • git log <range> --pretty=format:'%h %s%n%b%n---%n' where <range> is <last-tag>..HEAD if a tag exists, otherwise just HEAD.

If there are zero commits in the range, stop and tell the user there's nothing to release.

2. Suggest a version bump

Read the current version from package.json (node -p "require('./package.json').version"). Decide a bump level from the commits:

  • major — breaking changes, removed features, incompatible config/data formats
  • minor — new user-visible features, capabilities, or commands
  • patch — bug fixes, internal refactors, doc/test/CI changes only

Tell the user: current version, suggested next version, one short rationale (≤1 sentence). Don't dump the full commit log.

3. Draft release notes

Write user-facing prose grouped by intent in Keep a Changelog style. Only include sections that have content:

## What's new in v<X.Y.Z>

### Added
- ...

### Changed
- ...

### Fixed
- ...

Rules:

  • Group by what changed for the user, not by commit subject. Multiple commits often collapse into one bullet.
  • Skip noise: lockfile bumps, CI tweaks, internal-only refactors that don't change behavior, formatting/typo commits.
  • One short sentence per bullet. No commit hashes. No "by @username".
  • If a commit subject already reads as a user-facing change, you can use it largely as-is.

Write the draft to a fresh temp file. Get the path with node -p "require('path').join(require('os').tmpdir(), 'modmixer-release-notes-' + Date.now() + '.md')" (the timestamp avoids collisions with stale files from prior runs that would otherwise trip the Write tool's read-before-write guard) and use that absolute path with the Write tool. Remember the path — you'll pass it to the script in step 5.

Read the full file on GitHub · 121 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. 2d ago First seen · 121 lines · 16 tokens per session scan A 6f9bad1d0011

Subscribe to this mod's changes

release is a command published in the GitHub repository lebek/modmixer (19 stars, last pushed 21d ago), licensed MIT. It adds 16 tokens to every session and 1,284 once invoked, about $0.0001 per session on Opus 5. 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-30.