translate-books-with-llms
Skill by hydropix
Translates whole books, documents and subtitle files (EPUB, DOCX, PDF, SRT, TXT) by running the TranslateBooksWithLLMs CLI. Built for users who need an end-to-end file translation rather than a single passage pasted into chat.
Install translate-books-with-llms
Built from the published package, never by AI.
git clone --depth 1 https://github.com/hydropix/TranslateBooksWithLLMs /tmp/TranslateBooksWithLLMs && mkdir -p ~/.claude/skills && cp -r /tmp/TranslateBooksWithLLMs/skills/translate-books-with-llms ~/.claude/skills/translate-books-with-llmsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install translate-books-with-llms in Claude Code
git clone --depth 1 https://github.com/hydropix/TranslateBooksWithLLMs /tmp/TranslateBooksWithLLMs && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/TranslateBooksWithLLMs/skills/translate-books-with-llms ~/.gemini/antigravity-cli/skills/translate-books-with-llmsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install translate-books-with-llms in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill runs the official TranslateBooksWithLLMs engine (translate.py) from the hydropix repository to translate a full file into another language. It supports EPUB, DOCX, PDF, SRT and TXT files and aims to keep chapter structure, inline formatting and SRT timecodes intact. The output is saved next to the input unless an output path is given.
The skill guides the assistant through setup, provider choice and the run itself. Users can pick a local Ollama model or a cloud provider such as OpenRouter, OpenAI or Gemini, and can add a glossary, a literary refinement pass, text cleanup or audio output. Interrupted runs resume from checkpoints. It is aimed at users who want a whole book, document or subtitle file translated end to end.
Written from the project's SKILL.md and checked against it.
What it can do
- Full file translationTranslates an entire EPUB, DOCX, PDF, SRT or TXT file into a target language.
- Structure preservationKeeps chapter structure, inline formatting and SRT timecodes in the output.
- Local or cloud providersRuns with Ollama locally or with cloud providers such as OpenRouter, OpenAI or Gemini.
- Glossary supportApplies a .json or .csv glossary per chunk for consistent term translations.
- Refinement passOptional second pass that polishes literary style. Not available for PDF.
- Text cleanupFixes OCR and typographic defects such as broken lines and spacing.
- Audio outputGenerates text-to-speech audio of the translation via Edge-TTS.
- Resume on interruptCheckpoints long books so an interrupted run resumes with the same command.
What you need
- Python 3.8 or later
- Git
- Ollama installed and running, for local models
- A user-supplied API key for a cloud provider, set as an environment variable or in .env
Try asking
- Translate my EPUB novel into French using a local Ollama model.
- Translate this SRT subtitle file from English to Spanish with OpenRouter.
- Translate my DOCX report into German and keep the formatting.
Good to know
- PDF input must be a text PDF. OCR is not performed.
- PDF output is a new reflowed PDF, and the original page layout is not kept.
- The refinement option is not available for PDF.
- AGPL-3.0 section 13 applies if the tool is run as a network service.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/translate-books-with-llms/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md7 KB
Alternatives to translate-books-with-llms
All alternatives →Creates importable JSON templates for the Obsidian Web Clipper. It is for users who want to clip a site, understand the available variables, or format clipped content.
Harness Creator builds, audits, and improves the instruction and state files that help AI coding agents stay reliable across sessions. It is for developers whose agents forget context, drift out of scope, or claim work is done too early.
Guides an assistant through extracting text from scanned PDFs, photographed pages, and images with OCR. Covers backends, language packs, force-OCR, and performance tuning.
Edits a named local file in place to remove AI-writing patterns, using minimal targeted changes and post-edit verification. Built for users who explicitly ask to clean, rewrite, or humanize that specific file.
Polishes, translates, or tightens existing academic manuscript prose while preserving facts, terminology, and evidence boundaries. Made for researchers revising drafts, including Chinese-to-English translation and LaTeX layout fixes.
Adds PDF form analysis and filling, table extraction, OCR, validation and batch processing to an AI assistant. Aimed at developers who run complex or high-volume PDF workflows.
Compare with obsidian-clipper-template-creator, harness-creator or xberg-extracting-with-ocr
translate-books-with-llms: common questions
Which file types does it translate?
It translates EPUB, DOCX, PDF, SRT and TXT files. PDF input must be a text PDF with no OCR.
Can it translate without sending data to a cloud service?
Yes. Ollama runs the model on the local machine with no API key, so no data leaves the host. Cloud providers are used only when chosen.
Who maintains TranslateBooksWithLLMs and under what license?
It is authored and maintained by @hydropix and licensed under AGPL-3.0.
How do I install translate-books-with-llms?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is translate-books-with-llms free?
The code is published under the AGPL-3.0 licence. The service it connects to may have its own pricing.
Is translate-books-with-llms safe to use?
It scores 82 of 100. Grades: maintenance A, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to translate-books-with-llms?
Similar skills: obsidian-clipper-template-creator, harness-creator, xberg-extracting-with-ocr, file-edit-in-place.
