reason-machines avatar

Translate Book Parallel

Parallel, resumable book translation for PDF, DOCX, and EPUB files through Claude Code subagents, each working on an isolated chunk.

CCM score
48 of 100
skills.sh installs
1.3K
GitHub stars
98
last updated
Jul 14, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the full pipeline: Calibre HTMLZ conversion, chunking, parallel translation, validation, merge, and output to DOCX, EPUB, and PDF
  • Runs 8 concurrent subagents per batch by default, with each subagent reading one chunk and writing its own output_chunk*.md
  • Validates each merge by checking 1:1 source-to-output matches, SHA-256 hashes in manifest.json, and non-empty outputs
  • Designed for translating whole books in Claude Code, where interrupted runs resume from the last valid chunk

Install

$ npx -y skills add reason-machines/trending-skills --skill translate-book-parallel -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Translate Book (Parallel Subagents)

Skill by ara.so — Daily 2026 Skills collection.

A Claude Code skill that translates entire books (PDF/DOCX/EPUB) into any language using parallel subagents. Each chunk gets an isolated context window — preventing truncation and context accumulation that plague single-session translation.

Pipeline Overview

Input (PDF/DOCX/EPUB)
  │
  ▼
Calibre ebook-convert → HTMLZ → HTML → Markdown
  │
  ▼
Split into chunks (~6000 chars each)
  │  manifest.json tracks SHA-256 hashes
  ▼
Parallel subagents (8 concurrent by default)
  │  each: read chunk → translate → write output_chunk*.md
  ▼
Validate (manifest hash check, 1:1 source↔output match)
  │
  ▼
Merge → Pandoc → HTML (with TOC) → Calibre → DOCX / EPUB / PDF

Prerequisites

# 1. Calibre (provides ebook-convert)
# macOS
brew install --cask calibre
# Linux
sudo apt-get install calibre
# Or download from https://calibre-ebook.com/

# 2. Pandoc
brew install pandoc        # macOS
sudo apt-get install pandoc # Linux

# 3. Python dependencies
pip install pypandoc beautifulsoup4

Verify all tools are available:

Details

Repository
github.com/reason-machines/trending-skills
Categories
Writing & Content, AI Agents & LLM Apps, Office Files & Slides
First seen
Apr 16, 2026

More from reason-machines/trending-skills

All 163

Similar to Translate Book Parallel

More Writing & Content