Installable Agent Skill that splits PDF, DOCX, or EPUB books into chunks, translates them via parallel sub-agents, and rebuilds HTML, DOCX, EPUB, and PDF outputs with glossary and manifest checks.
Overview
translate-book is an Agent Skill aimed at coding agents such as Claude Code, Codex, Cursor, and OpenClaw. It turns whole books in common ebook formats into another language by converting to Markdown chunks, running many translators in parallel—each with a fresh context window—and merging validated results into multiple export formats.
The pipeline uses Calibre for format conversion when needed, SHA-256 manifests to detect stale chunks, a glossary built from sampled text, and neighbor excerpts so pronouns and entities stay consistent across chunks. Runs can resume at chunk granularity, and only affected sections re-translate when the glossary or source changes.
Heavy academic PDFs can be pre-parsed to Markdown with layout-aware tools such as MinerU, Marker, or docling before the skill runs, avoiding broken formulas and tables from naive PDF reflow. Python scripts under the skill handle deterministic bookkeeping; the hosting agent orchestrates translation and merge decisions.
Outputs land in a per-book temporary workspace as merged Markdown, HTML with floating table of contents, Word, EPUB, and print-oriented PDF. The skill is platform-neutral: one SKILL.md drives any agent that can spawn sub-agents per chunk, with verified flows documented for Cursor and Codex among others.
Key features
- Parallel chunk translation sub-agents
- PDF, DOCX, EPUB, Markdown input
- SHA-256 manifest integrity checks
- Glossary and neighbor context
- Resumable chunk-level runs
- HTML, DOCX, EPUB, PDF output
- Layout-aware PDF preprocess path
- Multi-agent skill installation paths
Use cases
- Translating full ebooks for personal reading
- Localizing long technical PDFs via Markdown
- Batch book translation with resume
- Agent-driven localization workflows
- Rebuilding EPUB after glossary edits