Skip to content
Back to skills

Book Reader

ASecurity

Read and search digital books (PDF, EPUB, MOBI, TXT). Use when answering questions about a book, finding quotes or passages, navigating to specific pages or chapters, or extracting information from documents.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
documentationgobashgitdocumentation

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill book-reader --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Book Reader?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Book Reader
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-book-reader/badge)](https://www.skillsdirectory.com/skills/david-li0406-book-reader)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: book-reader
description: Read and search digital books (PDF, EPUB, MOBI, TXT). Use when answering questions about a book, finding quotes or passages, navigating to specific pages or chapters, or extracting information from documents.
---

# Book Reader

Read and query digital book formats from the command line using BM25 search.

## Quick Start

```bash
# Get book metadata
uv run ~/.claude/skills/book-reader/book.py info ~/Books/mybook.pdf

# Show table of contents
uv run ~/.claude/skills/book-reader/book.py toc ~/Books/mybook.epub

# Read a specific chapter
uv run ~/.claude/skills/book-reader/book.py read ~/Books/mybook.pdf --chapter 3

# Read a specific page
uv run ~/.claude/skills/book-reader/book.py read ~/Books/mybook.pdf --page 42

# Search for content (BM25 ranked)
uv run ~/.claude/skills/book-reader/book.py search ~/Books/mybook.pdf "query"

# Extract full text
uv run ~/.claude/skills/book-reader/book.py extract ~/Books/mybook.txt
```

## Supported Formats

| Format | Extensions               | Features                              |
| ------ | ------------------------ | ------------------------------------- |
| PDF    | `.pdf`                   | Page numbers, TOC detection, metadata |
| EPUB   | `.epub`                  | Chapters from spine, full metadata    |
| MOBI   | `.mobi`, `.azw`, `.azw3` | Basic extraction                      |
| Text   | `.txt`, `.text`, `.md`   | Chapter pattern detection             |

## When to Use

- User provides a book file and asks questions about its content
- Need to find specific quotes, passages, or information
- Navigating to specific pages or chapters in a document
- Researching topics across digital books
- Extracting text for further processing

## How It Works

1. **First access**: Extracts and caches the book content
2. **Subsequent access**: Uses cached version (invalidates on file change)
3. **Search**: BM25 algorithm ranks results by relevance
4. **Results**: Include chapter/page location for reference

## See Also

See REFERENCE.md for complete command documentation.

Files in this skill

  • REFERENCE.md4.7 KB
  • SKILL.md2 KB
  • book.py22 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…