···11+# EPUB Reader Skill for Claude Code
22+33+A Claude Code skill that enables efficient reading of EPUB ebook files.
44+55+## Features
66+77+- **Metadata extraction** - title, author, publisher, date, language
88+- **Table of contents** - view chapter structure
99+- **Chapter reading** - read specific chapters by number
1010+- **Full extraction** - extract entire book as markdown
1111+- **Search** - find text with surrounding context
1212+1313+## Installation
1414+1515+The skill is installed at `~/.claude/skills/epub/`. Restart Claude Code after installation for the skill to be discovered.
1616+1717+## Usage
1818+1919+Just ask Claude naturally about EPUB files:
2020+2121+- "What's in this EPUB file?"
2222+- "Show me the table of contents"
2323+- "Read chapter 5"
2424+- "Search for 'democracy' in the book"
2525+- "Extract the entire book as markdown"
2626+2727+Claude will automatically use this skill when it detects EPUB-related requests.
2828+2929+## CLI Commands
3030+3131+The skill uses a TypeScript CLI tool under the hood:
3232+3333+```bash
3434+# View metadata
3535+node ~/.claude/skills/epub/scripts/epub-reader/dist/index.js metadata "book.epub"
3636+3737+# List table of contents
3838+node ~/.claude/skills/epub/scripts/epub-reader/dist/index.js toc "book.epub"
3939+4040+# Read specific chapter (1-indexed)
4141+node ~/.claude/skills/epub/scripts/epub-reader/dist/index.js chapter "book.epub" 3
4242+4343+# Extract entire book
4444+node ~/.claude/skills/epub/scripts/epub-reader/dist/index.js full "book.epub"
4545+4646+# Search for text
4747+node ~/.claude/skills/epub/scripts/epub-reader/dist/index.js search "book.epub" "query"
4848+```
4949+5050+## Technology Stack
5151+5252+- **TypeScript** - main implementation language
5353+- **jszip** - extract EPUB contents (EPUBs are ZIP archives)
5454+- **xml2js** - parse OPF/NCX metadata files
5555+- **turndown** - convert HTML content to Markdown
5656+- **commander** - CLI argument parsing
5757+5858+## Development
5959+6060+To modify and rebuild:
6161+6262+```bash
6363+cd ~/.claude/skills/epub/scripts/epub-reader
6464+npm install
6565+npm run build
6666+```
6767+6868+Restart Claude Code after any changes to `SKILL.md`.
6969+7070+## License
7171+7272+MIT