Read and extract content from EPUB ebook files...
Read EPUB ebook files and extract content as clean Markdown.
Use the epub-reader CLI tool to interact with EPUB files. The tool is located at:
~/.claude/skills/epub/scripts/epub-reader/dist/index.js
Get book information (title, author, publisher, date, description).
node ~/.claude/skills/epub/scripts/epub-reader/dist/index.js metadata "<path-to-epub>"
View all chapters and their structure. Each entry shows [ch: N] indicating the chapter number to use with the chapter command.
node ~/.claude/skills/epub/scripts/epub-reader/dist/index.js toc "<path-to-epub>"
Read a single chapter by number (1-indexed).
node ~/.claude/skills/epub/scripts/epub-reader/dist/index.js chapter "<path-to-epub>" <chapter-number>
Extract the complete book as Markdown.
node ~/.claude/skills/epub/scripts/epub-reader/dist/index.js full "<path-to-epub>"
Find text occurrences with surrounding context.
node ~/.claude/skills/epub/scripts/epub-reader/dist/index.js search "<path-to-epub>" "<search-query>"
For broad or conceptual queries like "what are the main themes in this book?" or "find all references to the protagonist's childhood", use query expansion:
This approach leverages Claude's domain knowledge to catch synonyms, related concepts, and terminology variations that a simple keyword search would miss.
User asks: "What does the book say about the author's research methodology?"
Expand to searches:
Then consolidate the results into a comprehensive answer.
All output is clean Markdown:
#, ##, etc.# What book is this?
node ~/.claude/skills/epub/scripts/epub-reader/dist/index.js metadata "/path/to/book.epub"
# Show me the chapters
node ~/.claude/skills/epub/scripts/epub-reader/dist/index.js toc "/path/to/book.epub"
# Read chapter 3
node ~/.claude/skills/epub/scripts/epub-reader/dist/index.js chapter "/path/to/book.epub" 3
# Find all mentions of "democracy"
node ~/.claude/skills/epub/scripts/epub-reader/dist/index.js search "/path/to/book.epub" "democracy"
[ch: N] reference from the TOC output to find the correct chapter numberfull command