subtask: Command for Claude Code

.claude/commands/release.md

release is a command for Claude Code from zippoxer/subtask. It costs 6 tokens per session (1,149 once invoked), scanned A, original, MIT.

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

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

This is zippoxer/subtask's own configuration. It tells Claude Code how to work on subtask itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything subtask configures →

Reuse

Borrowing it

Nothing to install: this file belongs to zippoxer/subtask. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/zippoxer/subtask/main/.claude/commands/release.md
Clone the repo
git clone --depth 1 https://github.com/zippoxer/subtask

Made for: Claude Code.

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/zippoxer/subtask/release/github.svg)](https://agentmods.dev/commands/zippoxer/subtask/release)
Your own site
<a href="https://agentmods.dev/commands/zippoxer/subtask/release"><img src="https://agentmods.dev/badge/commands/zippoxer/subtask/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/zippoxer/subtask/release"><img src="https://agentmods.dev/badge/commands/zippoxer/subtask/release.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. 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.00006 $0.01149
Opus 5.5 $0.00002 $0.00460
Sonnet 5.5 $0.00001 $0.00230
Haiku 4.5 $0.00001 $0.00115

Measured 1mo ago against content hash 9844da0bd7c5, 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 1mo 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. 1mo 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 (337 stars, last pushed 5mo ago), licensed MIT. It adds 6 tokens to every session and 1,149 once invoked, about $0.0000 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-08-30.