release

A release command for creating a new version of a YouClaw project as either a stable release or a beta release. It calculates the next version and creates an automatic changelog.

In plain words
What is it for?
It is for checking the branch and working tree, finding new commits, creating version tags, and completing the project's release steps.
Why use it?
It removes the repeated work of choosing a version, checking the Git repository, and preparing release tags.

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

Made for: Claude Code.

Per session 15 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,019 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.00015 $0.01019
Opus 5 $0.00008 $0.00509
Sonnet 5 $0.00003 $0.00204
Haiku 4.5 $0.00002 $0.00102

Measured yesterday against content hash 8d766272a02f, 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 · 140 lines

How it starts

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

Release Command

Create a new YouClaw release (stable or beta) with auto-generated changelog.

Arguments

The user's arguments are: $ARGUMENTS

  • If arguments contain "beta" or "测试" → Beta release
  • Otherwise → Stable release

Step 1: Determine Release Type & Version

Run these commands to compute the next version:

# Get latest stable tag
git fetch --tags
LATEST_STABLE=$(git tag --sort=-v:refname | grep -E '^v0\.0\.[0-9]+$' | head -1)
echo "Latest stable: $LATEST_STABLE"

For stable release:

  • Extract X from v0.0.X, compute v0.0.(X+1)

For beta release:

  • Compute next stable version v0.0.(X+1)
  • Find existing betas: git tag -l "v0.0.(X+1)-beta.*" --sort=-v:refname | head -1
  • If exists: increment N → v0.0.(X+1)-beta.(N+1)
  • If none: v0.0.(X+1)-beta.1

Step 2: Pre-flight Checks

Run these checks and abort if any fail:

  1. Branch check: Must be on main branch (for stable) or any branch (for beta)

    git branch --show-current
    
  2. Clean working tree:

    git status --porcelain
    

    If not clean, warn the user and ask whether to proceed.

  3. Tag doesn't exist:

    git tag -l "vX.Y.Z"
    
  4. Has new commits since last stable tag:

    git log $LATEST_STABLE..HEAD --oneline | grep -v "^.*Merge " | head -20
    

    If no commits, abort.

Step 3: Generate Changelog

Read commits since last stable tag:

git log $LATEST_STABLE..HEAD --oneline --no-merges

Generate a changelog in Chinese following this format:

> One-line English summary of this release

## ✨ New Features
- **Feature name**:Chinese description of what it does

## 🚀 Improvements
- **Improvement name**:Chinese description of what changed

## 🐛 Bug Fixes
- Chinese description of the fix

## 🔧 CI/CD
- Chinese description of CI changes

Rules:

  • Map commit prefixes: feat → ✨ New Features, fix → 🐛 Bug Fixes, refactor/perf/style → 🚀 Improvements, ci/build → 🔧 CI/CD
  • Group related commits by feature/topic — do NOT list every commit individually
  • Write meaningful Chinese summaries, not just translations of commit messages
  • Omit empty sections
  • Do NOT include a Contributors section (GitHub shows contributor avatars automatically)
  • For beta releases, still include all changes since last stable

Read the full file on GitHub · 140 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 · 140 lines · 15 tokens per session scan A 8d766272a02f

Subscribe to this mod's changes

release is a command published in the GitHub repository OtterMind/youclaw (724 stars, last pushed 4mo ago), licensed MIT. It adds 15 tokens to every session and 1,019 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.