release

release is a command for Claude Code from MadAppGang/magus. It costs 50 tokens per session (6,676 once invoked), scanned A, original, MIT.

A command that guides a project through preparing, approving, tagging, publishing, and checking a software release.

In plain words
What is it for?
Running releases with pre-release checks, version and changelog updates, git tags, registry publishing, and verification.
Why use it?
It prevents publishing an untested version or repeating steps after a partial failure.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md; names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the dev plugin — 19 skills, 15 commands, 12 agents shipped together

Good fit Running releases with pre-release checks, version and changelog updates, git tags, registry publishing, and verification.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add MadAppGang/magus
Claude Code
/plugin install dev

Made for: Claude Code.

Or install dev, the plugin that ships this one along with the rest of its 19 skills, 15 commands, 12 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for release

README.md
[![agentmods](https://agentmods.dev/badge/commands/madappgang/magus/release/github.svg)](https://agentmods.dev/commands/madappgang/magus/release)
Your own site
<a href="https://agentmods.dev/commands/madappgang/magus/release"><img src="https://agentmods.dev/badge/commands/madappgang/magus/release/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for release

Your own site · 80×15
<a href="https://agentmods.dev/commands/madappgang/magus/release"><img src="https://agentmods.dev/badge/commands/madappgang/magus/release.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 6,676 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00050 $0.06676
Opus 5.5 $0.00020 $0.02670
Sonnet 5.5 $0.00010 $0.01335
Haiku 4.5 $0.00005 $0.00668

Measured 22d ago against content hash 5eb94d950e71, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 22d 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.

plugins/dev/commands/release.md · 442 lines

How it starts

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

<user_request>$ARGUMENTS</user_request>

<golden_rules> These four rules override convenience at every phase. They are the distilled failure history of release-please, changesets, semantic-release, cargo-release and npm itself.

  1. REVERSIBLE FIRST, IRREVERSIBLE LAST. No tag leaves the machine and no publish starts until every gate has passed on the exact SHA being released.
  2. THE TESTED CANDIDATE IS THE RELEASED CANDIDATE. Changing versions, changelogs, generated files, or lockfiles after tests ran means the tested candidate is no longer the candidate being released. Any post-test mutation returns the flow to PREPARE.
  3. ONE HUMAN DECISION, MADE UP FRONT. Authorization is settled BEFORE the pipeline starts (see ), never mid-run. If the user said "release yourself", run to completion without stopping; if they did not, ask once, right away, before doing anything. A release that blocks in the middle waiting for a click is the failure mode this rule exists to prevent. The PR stays as the durable, reviewable record — it is not a second approval step.
  4. EVERY SIDE EFFECT IS A PREDICATE + ACTION. Before acting, check whether the effect already exists: absent → do it; present and matching → skip and say so; present but DIFFERENT → hard stop, this is a consistency incident, never a retry. </golden_rules>

<worktree_context> Releases are EXPECTED to run from a git worktree, not the main checkout. Detect it (git rev-parse --git-dir vs --git-common-dir differ) and treat it as normal, but know what a worktree changes:

  • Tags, branches, and remotes are SHARED with the main checkout and every sibling worktree. A tag created here is instantly visible everywhere; the explicit-ref push rule matters double because sibling worktrees accumulate each other's local tags.
  • The stash stack is shared too. Never bare git stash / git stash pop during a release — another session may push or pop concurrently. A temporary WIP commit is the safe way to set something aside.
  • Sibling worktrees may hold in-flight work on the same files. Release from the last COMMITTED state of this branch; never chase or wait on another session's uncommitted edits.
  • THE WORKTREE IS DISPOSABLE. After the release merges, the worktree is routinely reaped — and everything gitignored inside it (session folders, scratch, caches, local state) is deleted without ceremony. That is the designed lifecycle, which is exactly why the knowledge-promotion step in PREPARE and the residue report in REPORT exist: anything worth keeping must leave the worktree as a committed file BEFORE the merge, or it never will. </worktree_context>
  • The user's request already says it ("release yourself", "merge and release without asking", "--auto", or equivalent) → AUTONOMOUS MODE for this whole run. Do not ask again at any point. Report every irreversible step as it happens.
  • It does not → ask ONE question now, before starting: "Run this release end to end myself (merge + tag + publish without stopping), or stop before the irreversible steps for your go-ahead?" Their answer sets the mode for the run. Then start.
  • Never introduce a new approval question in the middle of the pipeline. The only legitimate mid-run stops are NOT approvals: a preflight gate that failed, or a consistency incident (golden rule 4: something exists but differs). Those stop the run because proceeding would be wrong, not because permission is missing.
  • Authorization covers this run only. It does not carry over to the next invocation.

Read the full file on GitHub · 442 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. 22d ago Changed · -1 lines 5eb94d950e71
  2. 1mo ago Changed · +134 lines 33167f781f19
  3. 1mo ago First seen · 309 lines · 50 tokens per session scan A 6132d1cf4f5a

Subscribe to this mod's changes

release is a command published in the GitHub repository MadAppGang/magus (13 stars, last pushed today), licensed MIT. It adds 50 tokens to every session and 6,676 once invoked, about $0.0002 per session on Opus 5.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-09-04.