- Shell 100%
CLAUDE.md pin-bump checklist no longer says edit the test (the test derives the SHA from the script since
|
||
|---|---|---|
| .claude-plugin | ||
| commands | ||
| scripts | ||
| skills/epub-for-agents | ||
| test | ||
| .gitignore | ||
| CLAUDE.md | ||
| LICENSE | ||
| README.md | ||
epub-for-agents
A Claude Code plugin that makes EPUBs token-efficient to read for agents.
It converts an EPUB to a single Markdown file whose YAML frontmatter lists every chapter with its absolute line and byte offset. Claude then reads the frontmatter and seeks straight to a chapter, instead of loading the whole book into context.
Credit and upstream
The conversion is done entirely by books-for-bots by prime-radiant-inc. This plugin does not copy or modify that tool. It is an independent wrapper that provisions a pinned build of it.
This plugin pins upstream commit 7f47fd923c45f4cadbdc4ee2ab92d5bb81e1b8b2.
License status of the upstream tool
At the pinned commit, the upstream README states MIT but the repository ships no LICENSE file and GitHub detects no license. That makes the upstream license technically unclear. This plugin therefore copies no upstream code and only provisions a build on your own machine. A request for license clarification has been raised with the upstream project. For authoritative terms, refer to the upstream repository directly.
This plugin's own wrapper code is MIT, see LICENSE.
Prerequisite
The Rust toolchain (cargo) must be installed. The plugin builds the pinned upstream binary from source on first use. Install Rust from https://rustup.rs if you do not have it. The first conversion can take a few minutes to compile. Later runs are instant from a per-commit cache.
Use
Point Claude at an .epub, or run the command.
/convert-epub path/to/book.epub
Then ask questions about the book. Claude seeks to the relevant chapters by offset rather than reading the whole file.
What it does not do
No summarization, no content judgment, no cleanup. The upstream tool is a deterministic, faithful structural translation of the book. Garbage in, garbage out.