aradotso avatar

Translate Book Parallel

This tackles the context window problem that kills most book translation attempts. Instead of feeding a 300-page PDF into one session and watching it choke or lose coherence halfway through, it splits the book into ~6000 character chunks, spins up 8 parallel Claude subagents that each translate one chunk in isolation, then validates and merges everything back into DOCX, EPUB, and PDF. The manifest.json tracks SHA-256 hashes so you can resume if something fails without re-translating finished chunks. Requires Calibre and Pandoc locally, which is a bit of setup friction, but the pipeline design is solid. Works with PDF, DOCX, and EPUB inputs. If you've ever tried to translate technical documentation or a full book and hit the context limit wall, this is the workaround.

skills.sh installs
1.3K
GitHub stars
61
last updated
Jul 14, 2026

Install

$ npx -y skills add aradotso/trending-skills --skill translate-book-parallel --agent claude-code

Installs into .claude/skills of the current project.

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:

Sponsors

Details

Repository
github.com/aradotso/trending-skills
Category
Automation & Workflows
First seen
Apr 16, 2026

More from aradotso/trending-skills

All 251
1aradotso avatarfabro-workflow-factoryaradotso/trending-skillsfabro workflow factory1.2Kskills.sh installs
2ruvnet avatarswarm-orchestrationruvnet/rufloMulti-agent swarm coordination for complex tasks. Uses hierarchical topology with specialized agents to break down and execute complex work across multiple file1.2Kskills.sh installs
3neolabhq avatarcreate-workflow-commandneolabhq/context-engineering-kitCreate a workflow command that orchestrates multi-step execution through sub-agents with file-based task prompts1.2Kskills.sh installs
4am-will avatarparallel-taskam-will/codex-skillsOnly to be triggered by explicit /parallel-task commands.1.2Kskills.sh installs
5ruvnet avataragent-automation-smart-agentruvnet/rufloAgent skill for automation-smart-agent - invoke with $agent-automation-smart-agent1.1Kskills.sh installs
6mindrally avatargitlab-workflowmindrally/skillsGitLab best practices for merge requests, CI/CD pipelines, issue tracking, and DevOps workflows1.1Kskills.sh installs