/dodari:translatefrom Dodari
Translates entire EPUB or TXT books/documents into another language, producing a translated file and a bilingual version. Handles long texts by splitting and rebuilding the file.
Ships in Dodari. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
${CLAUDE_SKILL_DIR}/scripts/dodari_book.py${CLAUDE_SKILL_DIR} not replaced by a path → SCRIPT = absolute path of scripts/dodari_book.py in the folder of this SKILL.md.python3 "SCRIPT" <command> ... (Windows: py -3 "SCRIPT" <command> ...).sample (and, in direct mode, next). Do not edit or review the output files.next, and only through submit. Write the translation only inside the submit command; do not repeat it in your reply..epub or .txt → tell the user: "This version supports EPUB and TXT only."python3 "SCRIPT" doctor --engine <engine> --file "<file>"
<engine>: Claude Code → claude-cli. Codex → codex-cli. claude.ai chat or anywhere without these CLIs → direct. User asks for another engine → use that one.FAIL dependencies or WARN dependencies → ask first, install only after the user agrees. Tell the user: "This will create ~/.dodari/venv and install beautifulsoup4 and nltk from PyPI (or use pip install --user if a venv cannot be created), and download nltk sentence data." Wait for the go-ahead.
python3 "SCRIPT" doctor --install --engine <engine> --file "<file>" once. A WARN about nltk that remains after this is fine (a built-in sentence splitter is used). FAIL install → show the printed lines; TXT still works, EPUB does not.FAIL dependencies.FAIL cli (too old) → ask first, update only after the user agrees. Show the exact command it will run: claude update (claude-cli) or npm install -g @openai/codex@latest (codex-cli). Wait for the go-ahead.
python3 "SCRIPT" doctor --update --engine <engine>.--engine direct from here on).FAIL network or FAIL write in CLI mode → go to steps 2 and 3, then run step 4 with escalated (outside-sandbox) permissions: network access + write access to ~/.dodari and the output folder. Ask the user to approve it once. Escalation unavailable → show the user the printed FIX lines and the exact step 4 command for their own terminal.FAIL write for the book folder in direct mode → add --output-dir <a writable folder> in step 4 (for example the folder where you save files for the user).mode: line. mode: cli → the CLI translates in the background. mode: direct → you translate batch by batch. If mode: direct comes with INFO cli or INFO login, tell the user once that installing or logging in to that CLI enables background translation; continue in direct mode unless the user wants to fix it first.mode: line (--engine direct in direct mode).python3 "SCRIPT" inspect "<file>" --engine <engine>
letters, the ..._to_translate count, batches and the estimated_... lines exactly as printed.image_only: yes → tell the user image-only EPUBs are not supported. Stop.NOTE direct: (direct mode, more than 40 batches) → before starting, tell the user it will take many turns in this conversation and that Claude Code with the claude CLI translates whole books in the background. Continue if the user wants.python3 "SCRIPT" sample "<file>"
--genre and --tone from the tables below.python3 "SCRIPT" start "<file>" --target-lang <code> --genre <genre> --tone <tone> --engine <engine>
--target-lang: ko, en, ja, zh, fr, it, nl, da, sv, no, ar, fa (the language the user asked for).--bilingual-order source-first (original first), --output-dir <folder>, --source-lang <code>, and in CLI mode --model <id>, --effort <level>.job_id and the estimate lines.mode: cli)
python3 "SCRIPT" status <job_id> → report the printed lines.
state: done → report the two output: paths.state: paused_rate_limit → tell the user to run resume after the subscription limit resets.state: stopped ... or state: failed → run python3 "SCRIPT" resume <job_id>.python3 "SCRIPT" cancel <job_id>. Continue later: resume <job_id> or the same start command.mode: direct) — repeat until the script prints state: done:
python3 "SCRIPT" next <job_id> → prints the instructions and the batch items as numbered JSON.⟦C1⟧ and ⟦F1⟧ … ⟦/F1⟧ copied exactly, no notes, no commentary.next printed (valid JSON; escape " and \ inside strings):
python3 "SCRIPT" submit <job_id> <batch> - <<'DODARI_JSON'
{"translations": ["...", "..."]}
DODARI_JSON
REJECTED (exit code 4) → nothing was saved; fix what the message says and submit the same batch again. ACCEPTED → run next again.output: lines → report both paths. If it says the build did not finish, run python3 "SCRIPT" build <job_id>.python3 "SCRIPT" status <job_id> shows the submitted batches; continue with next <job_id> (or the same start command).--genre)| Book | --genre |
|---|---|
| Code, technical, engineering, API, developer books | it |
| Novels, essays, memoirs, community writing, emotional prose | literature |
| Papers, psychology, history, social analysis, statistics | humanities |
| Business, market analysis, contracts, finance | business |
| Dialogue, subtitles, screenplays, interview transcripts | subtitles |
| None of the above | general |
--tone)| Source style | --tone |
|---|---|
| Novels, essays, community writing, scripts | plain |
| Official documents, guides, business documents | formal |
| File | Name |
|---|---|
| Translation only | <name>_<target>.epub / .txt |
| Bilingual (default) | <name>_<target>(<source>).epub / .txt |
Bilingual, source-first | <name>_<source>(<target>).epub / .txt |
| Name conflict | _001, _002 suffix |
--output-dir.~/.dodari/config.json, e.g. {"engine": "claude-cli", "claude": {"model": "sonnet", "effort": null}, "codex": {"model": "gpt-6-luna", "effort": "max"}} ("engine": "direct" is also accepted).~/.dodari/codex-home (one-time login command: printed by doctor).~/.dodari/jobs/<job_id>/ (status.json, log.txt). The DODARI_HOME environment variable moves ~/.dodari.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub veduardovich/dodari --plugin dodariOther plugins' skills for the same job