Individual skill
epub-translate
Translate EPUB (.epub) ebooks to another language by unpacking the EPUB container, extracting XHTML block-level fragments into JSONL translation units, translating them via the OpenAI Responses API (e.g. gpt-5.1 / gpt-5-mini) while preserving markup, updating language metadata, and repackaging a valid EPUB (mimetype-first and uncompressed). Use when Codex needs to translate and rebuild EPUB files.
epub-translate/SKILL.md
Source commit c68b078bdf270d81272face3b8bebcd707bb3ecc
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Not checked yet
- Last checked
- Nov 11, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 11
- Repository last updated
- Feb 15, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- agent-skill Repository topic
- agent-skills Repository topic
- claude Repository topic
- codex Repository topic
- skills Repository topic
- engineering Derived category
- devops Derived category
- devops-containers Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
.gitignoreasset · 57 bytesLICENSEasset · 1,073 bytesREADME.mddoc · 2,225 bytesSKILL.mdcore · 4,466 bytesscripts/epub-translateruns · 561 bytesscripts/epub_translate.pyruns · 45,250 bytes
Read excerpt
# EPUB Translate
## Workflow
1. One-time setup (writes `.skills-data/epub-translate/.env`): `scripts/epub-translate setup`
2. Extract translation units: `scripts/epub-translate extract --epub /path/book.epub`
3. Translate via OpenAI API: `scripts/epub-translate translate --job-dir <job-dir> --target-lang <bcp47> [--fraction 0.1]`
4. Apply + repack: `scripts/epub-translate apply --job-dir <job-dir> --translations <job-dir>/translations.jsonl --target-lang <bcp47> --out-epub /path/book.<bcp47>.epub`
5. Optional: validate output: `scripts/epub-translate validate --epub /path/book.<bcp47>.epub`
## Commands
- `scripts/epub-translate setup`:
- Prompts for `OPENAI_API_KEY` (saved to `.skills-data/epub-translate/.env`).
- Prompts for default `OPENAI_MODEL` (e.g. `gpt-5.1`, `gpt-5-mini`).
- `scripts/epub-translate extract ...`: