Book Reader - Learn & Grow Every Day
by @josharsh
Read EPUB, PDF, or TXT books from multiple sources with progress tracking, smart chunking, and summary extraction for efficient learning.
clawhub install book-readerπ About This Skill
book-reader
Read books (epub, pdf, txt) from various sources with progress tracking.
Purpose
Enable AI agents to read full-length books for learning, summarization, and knowledge extraction.
Features
Tools Required
curl or wget - Download bookspandoc - Convert EPUB to text (optional, fallback to python)pdftotext (poppler-utils) - Extract PDF textebooklib and beautifulsoup4 (for EPUB parsing)Usage
Search for a book
./book-reader.sh search "Thinking Fast and Slow"
Download a book
./book-reader.sh download [output-file]
Read a book (with progress tracking)
./book-reader.sh read [--from-page N] [--pages N]
Show reading progress
./book-reader.sh status
Installation
# Install dependencies
sudo apt-get install poppler-utils pandoc # Linux
brew install poppler pandoc # macOS
pip3 install ebooklib beautifulsoup4 lxml
Make executable
chmod +x book-reader.sh
Book Sources
1. Project Gutenberg (70k+ public domain books) - API: https://gutendex.com - Free, legal, no DRM
2. Anna's Archive (shadow library) - Millions of books, papers, comics - Legal gray area depending on jurisdiction - Use responsibly
3. Local files (your own epub/pdf collection)
Reading State
Progress tracked in ~/.openclaw/workspace/memory/reading-state.json:
{
"currentBook": "Thinking, Fast and Slow",
"file": "/path/to/book.epub",
"totalPages": 499,
"pagesRead": 127,
"lastRead": 1770957900,
"bookmarks": [50, 200],
"notes": "Interesting insight about System 1 vs System 2..."
}
Example Workflow
# Find the book
./book-reader.sh search "Daniel Kahneman Thinking"Download it
./book-reader.sh download 12345 ~/books/thinking-fast-slow.epubStart reading
./book-reader.sh read ~/books/thinking-fast-slow.epub --pages 50Continue later
./book-reader.sh read ~/books/thinking-fast-slow.epub --pages 50Check progress
./book-reader.sh status
Privacy & Ethics
Limitations
Use responsibly. Support authors when possible.
π‘ Examples
Search for a book
./book-reader.sh search "Thinking Fast and Slow"
Download a book
./book-reader.sh download [output-file]
Read a book (with progress tracking)
./book-reader.sh read [--from-page N] [--pages N]
Show reading progress
./book-reader.sh status