Install
openclaw skills install @inf-lucas/epub-readTask-mode-driven EPUB reading and analysis skill with overview, targeted reading, chunked full reading, extraction, complex-content inspection, and batch pro...
openclaw skills install @inf-lucas/epub-read<use_when>
.epub file or ebookSTEP 0 - Choose exactly one task mode before doing anything else
| Mode | Purpose | Use when |
|---|---|---|
overview | Fast structural overview | Metadata, TOC, themes, structure only |
targeted_read | Focused reading | Specific chapters, chunk ranges, or keyword hits |
full_read | Sequential reading | Long-book chunked reading with saved progress |
extract | Structured extraction | Keywords, definitions, quotes, examples, action items, entities, tables, lists |
complex_content | Complex-layout inspection | Images, tables, SVG, low-text sections |
batch | Multi-book planning | Multiple EPUB files or folders |
Default to overview or targeted_read when the user intent is ambiguous. Never load a long book's full body text by default.
STEP 1 - Parse if needed
manifest.json.parse_epub.py.STEP 2 - Build an execution plan
Use task_router.py to decide whether parsing, chunking, or state updates are required:
python3 task_router.py <book_dir> --mode <mode> [params...]
The plan should tell you:
STEP 3 - Mode-specific behavior
Support:
--chapter--chapter-id--chunk-start--chunk-end--keywordReturn:
session_state.jsonSupport extracting:
Return a hit list with chapter references and short context.
Inspect:
Return a structured report. OCR is not required by default.
Support:
Return success / failure counts and a concise overview.
STEP 4 - Long-book safety rules
chunks/ over chapter markdown for full sequential readingchunk_book.py firstreading_index.json to map chapters to chunk rangesSTEP 5 - State management rules
When running full_read or any progress-sensitive flow:
session_state.json firstSTEP 6 - Output style
Be explicit about:
When possible, point the user toward the safest next step:
Before considering the task complete, check: