release

release is a command for Claude Code from deusyu/translate-book. It costs 11 tokens per session (1,423 once invoked), scanned A, original, MIT.

A release command that publishes a new version to a GitHub repository and ClawHub, a package registry for these add-ons.

In plain words
What is it for?
Use it to push the main branch, create and publish a version tag, and publish the current add-on with a specified semantic version.
Why use it?
It standardizes the required version-control and publishing steps and stops when a step fails.

Command for Claude Code

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

Good fit Use it to push the main branch, create and publish a version tag, and publish the current add-on with a specified semantic version.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/deusyu/translate-book/release
About the project

Rainman Translate Book is an agent skill that translates complete PDF, DOCX, or EPUB books into other languages by splitting them into chunks handled by parallel subagents. It is used with Codex, Claude Code, and OpenClaw to produce resumable, validated translations in several output formats.

deusyu/translate-book · 2,519 stars · on GitHub · translate.dyu.sh

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.

Clone the repo
git clone --depth 1 https://github.com/deusyu/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/deusyu/translate-book/release/github.svg)](https://agentmods.dev/commands/deusyu/translate-book/release)
Your own site
<a href="https://agentmods.dev/commands/deusyu/translate-book/release"><img src="https://agentmods.dev/badge/commands/deusyu/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/deusyu/translate-book/release"><img src="https://agentmods.dev/badge/commands/deusyu/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 1,423 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.00011 $0.01423
Opus 5.5 $0.00004 $0.00569
Sonnet 5.5 $0.00002 $0.00285
Haiku 4.5 $0.00001 $0.00142

Measured 6d ago against content hash 26271584001c, 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 6d 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

Copies of this mod

1 near-identical copy found in the catalogue:

  • release — 100% identical, 67 lines differ
.claude/commands/release.md · 72 lines

How it starts

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

If $1 is empty, stop and ask the user for the version. Do not proceed with an unset version: git tag v$1 would create and push a tag named literally v, and the git tag is the only version anchor in this repo.

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

Before releasing, list the open release blockers:

gh issue list --label release-blocker --state open

If the list is not empty, stop and show it to the user. Release only after those issues are closed, or if the user explicitly says to release anyway.

Then, still before step 1, prepare the release and confirm it with the user. None of this changes anything on GitHub or ClawHub; if a check fails, stop and show the user the output.

  • git branch --show-current must print main, and git status --porcelain must print nothing. Step 2 tags the current commit, but step 3 publishes the files on disk.
  • With your file-writing tool (not with echo, printf or a heredoc), write the changelog to a file outside the repository, such as /tmp/translate-book-changelog.txt, so that it neither dirties the worktree nor ends up in the package; <changelog_file> below stands for its path. The changelog is one or two plain-text sentences that tell people who install the skill what changed for them in this version, based on the pull requests merged since the previous tag. ClawHub shows it as the version's changelog, and the CLI cannot edit a changelog after publishing. Never publish while the file is missing, empty or holds only whitespace: ClawHub trims the changelog and generates its own from the changed files when nothing is left. The step 3 command does not run clawhub in those cases.
  • Run the step 3 command with --dry-run --json added at the end. It uploads nothing and needs no login. In its JSON output, folder must be the absolute path of the repository root, which is the current directory, and fileCount must equal the number of files git ls-files SKILL.md LICENSE scripts lists. Equal counts do not prove that the file sets are the same. The clean-worktree check separately prevents uncommitted content from being published, so treat fileCount only as a sanity check.
  • Show the user the version, fileCount and the output of cat "<changelog_file>", and wait for the user to confirm.

Once the user confirms, release version $1 by running these four steps in order. Stop and report immediately if any step fails — do not attempt to recover automatically.

  1. Push main:

    git push origin main
    
  2. Tag the release and push only that tag:

    git tag v$1 && git push origin v$1
    

    git push --tags pushes every local tag and fails when one of them differs from the tag of the same name on GitHub.

  3. Publish to ClawHub:

    changelog_file="<changelog_file>"; grep -q '[^[:space:]]' "$changelog_file" && CLAWHUB_WORKDIR="$PWD" npx clawhub@latest publish ./ --slug translate-book --name translate-book --version $1 --changelog "$(cat "$changelog_file")"
    

    Without --slug and --name, ClawHub takes the slug and the display name from the current directory name, so publishing from a directory with another name, such as a worktree or a temporary clone, creates a separate skill or changes the display name of translate-book.

    CLAWHUB_WORKDIR="$PWD" makes clawhub resolve ./ against the current directory. Without it, on a machine with a default OpenClaw workspace configured, clawhub resolves ./ against that workspace, so the command fails or publishes the workspace as translate-book.

    --changelog "$(cat "$changelog_file")" passes the text of the changelog file the user confirmed. The shell does not expand text that reaches clawhub this way, so quotes, backticks, $ and backslashes in it stay as they are.

    The path is written once, in changelog_file, so grep and cat read the same file. grep -q '[^[:space:]]' "$changelog_file" fails when the file is missing, empty or holds only whitespace, and && then keeps clawhub from running, so the command fails. A missing file makes grep print an error and exit with 2; an empty or whitespace-only file makes it exit with 1 without printing anything. Run the line as a single shell command: if changelog_file is not set, for example because the assignment ran in an earlier shell call, grep gets an empty path, prints an error and exits with 2, and clawhub does not run.

Read the full file on GitHub · 72 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. 6d ago Changed · +13 lines 26271584001c
  2. 7d ago Changed · +12 lines 8eed5850b5d3
  3. 11d ago Changed · +10 lines 1161a1c62d0a
  4. 2mo ago Changed · +18 lines e60f9a1e2a0c
  5. 3mo 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 deusyu/translate-book (2,519 stars, last pushed yesterday), licensed MIT. It adds 11 tokens to every session and 1,423 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.

Related

release compared with commands from other repositories

release next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
releasedeusyu/translate-bookCommand2.5kyesterdayMITA11Claude Code
landgmickel/flow-nextCommand736yesterdayMITA13Claude Code
qualityDesko77/claude-code-skills-1cCommand1039d agoMITA18Claude Code
release-notesOpenHands/extensionsCommand191yesterdayMITA44Claude Code
doc-changelogchristopherlouet/claude-baseCommand63d agoMITA0Claude Code
releaseelct9620/claudekitCommand102d agoMITA11Claude Code
releaseparuff/uFawkesAICommand2yesterdayMITA39Claude Code