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.
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.
git clone --depth 1 https://github.com/deusyu/translate-bookWrote 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.
[](https://agentmods.dev/commands/deusyu/translate-book/release)<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.
<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>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.
| Model | Per session | Once 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 |
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.
Copies of this mod
1 near-identical copy found in the catalogue:
- release — 100% identical, 67 lines differ
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-currentmust printmain, andgit status --porcelainmust print nothing. Step 2 tags the current commit, but step 3 publishes the files on disk.- With your file-writing tool (not with
echo,printfor 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 --jsonadded at the end. It uploads nothing and needs no login. In its JSON output,foldermust be the absolute path of the repository root, which is the current directory, andfileCountmust equal the number of filesgit ls-files SKILL.md LICENSE scriptslists. Equal counts do not prove that the file sets are the same. The clean-worktree check separately prevents uncommitted content from being published, so treatfileCountonly as a sanity check. - Show the user the version,
fileCountand the output ofcat "<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.
-
Push
main:git push origin main -
Tag the release and push only that tag:
git tag v$1 && git push origin v$1git push --tagspushes every local tag and fails when one of them differs from the tag of the same name on GitHub. -
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
--slugand--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 oftranslate-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 astranslate-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, sogrepandcatread 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: ifchangelog_fileis 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.
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.
- 6d ago Changed · +13 lines 26271584001c
- 7d ago Changed · +12 lines 8eed5850b5d3
- 11d ago Changed · +10 lines 1161a1c62d0a
- 2mo ago Changed · +18 lines e60f9a1e2a0c
- 3mo ago First seen · 19 lines · 11 tokens per session scan A 84caab1dd017
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.
release compared with commands from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| releasedeusyu/translate-book | Command | 2.5k | yesterday | MIT | A | 11 | Claude Code |
| landgmickel/flow-next | Command | 736 | yesterday | MIT | A | 13 | Claude Code |
| qualityDesko77/claude-code-skills-1c | Command | 103 | 9d ago | MIT | A | 18 | Claude Code |
| release-notesOpenHands/extensions | Command | 191 | yesterday | MIT | A | 44 | Claude Code |
| doc-changelogchristopherlouet/claude-base | Command | 6 | 3d ago | MIT | A | 0 | Claude Code |
| releaseelct9620/claudekit | Command | 10 | 2d ago | MIT | A | 11 | Claude Code |
| releaseparuff/uFawkesAI | Command | 2 | yesterday | MIT | A | 39 | Claude Code |