release

A release command that checks a Git project and guides you through creating and publishing a new version.

In plain words
What is it for?
Use it to choose a major, minor, patch, or beta version, check release requirements, and publish the release.
Why use it?
It removes the need to inspect tags, branches, commits, and project state manually before releasing.

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

Made for: Claude Code.

Per session 6 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,149 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.00006 $0.01149
Opus 5 $0.00003 $0.00575
Sonnet 5 $0.00001 $0.00230
Haiku 4.5 $0.00001 $0.00115

Measured 2d ago against content hash 9844da0bd7c5, 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 · 142 lines

How it starts

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

Context

  • Latest stable: !git tag -l 'v[0-9]*.[0-9]*.[0-9]*' --sort=-v:refname | grep -v '-' | head -1 || echo "none"
  • Latest beta: !git tag -l 'v*-beta*' --sort=-v:refname | head -1 || echo "none"
  • Current branch: !git branch --show-current
  • Git status: !git status --short
  • Commits since last tag: !git log $(git describe --tags --abbrev=0 2>/dev/null)..HEAD --oneline 2>/dev/null || git log --oneline -5

Task

Create a new release.

Steps

  1. Show current state to the user:

    • Latest stable version
    • Latest beta version (if any)
    • What versions each release type would create
  2. Ask user what release to create using AskUserQuestion:

    • Calculate and show concrete version numbers for each option
    • Example options (adjust based on current state):
      • "v0.2.0 (minor)" — requires main branch
      • "v0.1.2 (patch)" — requires main branch
      • "v1.0.0 (major)" — requires main branch
      • "v0.2.0-beta.1 (new beta)" — requires dev branch
      • "v0.2.0-beta.2 (next beta)" — only if beta exists, requires dev branch
    • If argument was provided (e.g., /release patch), skip the question and use it
  3. Check prerequisites:

    • Working directory is clean
    • Tests pass: go test ./...
    • IMPORTANT - Branch rules:
      • Stable releases (major/minor/patch): MUST be on main branch
      • Beta releases: MUST be on dev branch
      • If on wrong branch, stop and tell the user to switch branches first
  4. Create and push tag:

    VERSION=vX.Y.Z  # or vX.Y.Z-beta.N for beta
    git tag "$VERSION"
    git push origin "$VERSION"
    
  5. Monitor release workflow:

    gh run watch --workflow release.yml --interval 10
    
  6. Mark as prerelease (beta only):

    gh release edit "$VERSION" --prerelease
    

    This ensures the beta won't be picked up by auto-update (which uses /releases/latest).

  7. Verify release:

    gh release view "$VERSION"
    gh release view "$VERSION" --json assets --jq '.assets[].name'
    

Read the full file on GitHub · 142 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 · 142 lines · 6 tokens per session scan A 9844da0bd7c5

Subscribe to this mod's changes

release is a command published in the GitHub repository zippoxer/subtask (340 stars, last pushed 4mo ago), licensed MIT. It adds 6 tokens to every session and 1,149 once invoked, about $0.0000 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.