translate-book: Command for Claude Code

.claude/commands/release.md

release is a command for Claude Code from trananhtung/translate-book. It costs 11 tokens per session (240 once invoked), scanned A, a copy of release, MIT.

A release command for publishing a new software version to GitHub and ClawHub, a marketplace for coding-agent add-ons. It pushes the main branch, creates a version tag and publishes the package.

In plain words
What is it for?
Use it when releasing a specified semantic version, such as 0.3.0. It also explains when login is needed and which publishing step to retry.
Why use it?
It provides a fixed release sequence and stops when a step fails. This reduces the chance of publishing an incomplete or incorrectly tagged version.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: positional $N argument.

This is trananhtung/translate-book's own configuration. It tells Claude Code how to work on translate-book 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 translate-book configures →

Reuse

Borrowing it

Nothing to install: this file belongs to trananhtung/translate-book. 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/trananhtung/translate-book/main/.claude/commands/release.md
Clone the repo
git clone --depth 1 https://github.com/trananhtung/translate-book

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/trananhtung/translate-book/release/github.svg)](https://agentmods.dev/commands/trananhtung/translate-book/release)
Your own site
<a href="https://agentmods.dev/commands/trananhtung/translate-book/release"><img src="https://agentmods.dev/badge/commands/trananhtung/translate-book/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/trananhtung/translate-book/release"><img src="https://agentmods.dev/badge/commands/trananhtung/translate-book/release.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 240 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 100% copy Near-identical to another mod 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.00011 $0.00240
Opus 5.5 $0.00004 $0.00096
Sonnet 5.5 $0.00002 $0.00048
Haiku 4.5 $0.00001 $0.00024

Measured 1mo ago against content hash 84caab1dd017, 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.

Origin

This is a copy

100% identical to release — 32 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/commands/release.md · 19 lines

What it actually says

Release version $1 by running these three commands in order. Stop and report immediately if any step fails — do not attempt to recover automatically.

git push origin main
git tag v$1 && git push --tags
npx clawhub@latest publish ./ --version $1

$1 is bare semver (e.g. 0.3.0). The v prefix is applied only to the git tag, not to the ClawHub version.

First-time ClawHub publish on a machine requires npx clawhub@latest login (browser auth, cached per machine). If step 3 fails with Not logged in, ask the user to run that login command, then retry only step 3.

If step 3 fails for any other reason after the tag is already pushed, fix the cause and re-run only step 3 with the same version. Do not force-overwrite the tag (git tag -f) without explicit user approval.

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 · 19 lines · 11 tokens per session scan A 84caab1dd017

Subscribe to this mod's changes

release is a command published in the GitHub repository trananhtung/translate-book (2 stars, last pushed 2mo ago), licensed MIT. It adds 11 tokens to every session and 240 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to release, differing in 32 lines, and is treated as a copy.