/install epub-read
\x3Cobjective> Provide a strict, auditable EPUB workflow that safely handles long books through explicit task routing instead of loading full-book text by default. \x3C/objective>
\x3Cuse_when>
- The user mentions an
.epubfile or ebook - The user wants a quick structural overview
- The user wants chapter-specific or chunk-specific reading
- The user wants full-book sequential reading with chunking
- The user wants structured extraction
- The user wants to inspect images, tables, or other complex content
- The user wants to batch-process multiple EPUB files \x3C/use_when>
\x3Cprocess>
STEP 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
- Check whether the output directory already exists and contains
manifest.json. - If not, run
parse_epub.py. - After parsing, report:
- title
- author
- chapter count
- chunk count if available
- image count
- table count
- output directory
STEP 2 - Build an execution plan
Use task_router.py to decide whether parsing, chunking, or state updates are required:
python3 task_router.py \x3Cbook_dir> --mode \x3Cmode> [params...]
The plan should tell you:
- whether parsing is required
- whether chunking is required
- which files are recommended to read
- whether session state must be updated
STEP 3 - Mode-specific behavior
overview
- Read only metadata, TOC, reading index, and other structural outputs
- Do not load the whole book body by default
- Return:
- title
- author
- chapter count
- TOC structure
- theme overview
- suggested next actions
targeted_read
Support:
--chapter--chapter-id--chunk-start--chunk-end--keyword
Return:
- the requested section
- short context
- concise summary
full_read
- Prefer chunk-based reading for long books
- Support continue, previous, next, and jump flows
- Always update
session_state.json - Never pretend progress exists if the session state is missing
extract
Support extracting:
- keywords
- definitions
- quotes
- examples
- action_items
- names
- locations
- organizations
- tables
- lists
Return a hit list with chapter references and short context.
complex_content
Inspect:
- images
- SVG
- tables
- image-heavy sections
- low-text / high-resource sections
Return a structured report. OCR is not required by default.
batch
Support:
- multiple EPUB file paths
- directory scanning
- batch planning
- batch extraction requests
Return success / failure counts and a concise overview.
STEP 4 - Long-book safety rules
- Never push the full body of a long book into context at once
- Prefer
chunks/over chapter markdown for full sequential reading - When chunking is required, run
chunk_book.pyfirst - Use
reading_index.jsonto map chapters to chunk ranges
STEP 5 - State management rules
When running full_read or any progress-sensitive flow:
- Read
session_state.jsonfirst - Update it after every progress-changing action
- Respect existing saved progress unless the user explicitly asks to restart
STEP 6 - Output style
Be explicit about:
- what files were used
- what mode was selected
- why a long book was chunked instead of loaded fully
- what the user can do next
When possible, point the user toward the safest next step:
- continue reading
- jump to a chapter
- inspect a chunk range
- extract a structure
- review complex content
\x3C/process>
\x3Cvalidation>
Before considering the task complete, check:
- parsing outputs exist
- chunk files exist when required
- reading index and session state are coherent
- extraction targets match the requested type
- complex-content reports are generated from real parsed outputs
\x3C/validation>
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install epub-read - 安装完成后,直接呼叫该 Skill 的名称或使用
/epub-read触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
EPUB Read 是什么?
Task-mode-driven EPUB reading and analysis skill with overview, targeted reading, chunked full reading, extraction, complex-content inspection, and batch pro... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 200 次。
如何安装 EPUB Read?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install epub-read」即可一键安装,无需额外配置。
EPUB Read 是免费的吗?
是的,EPUB Read 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
EPUB Read 支持哪些平台?
EPUB Read 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(linux, darwin, win32)。
谁开发了 EPUB Read?
由 INF-Lucas(@inf-lucas)开发并维护,当前版本 v2.0.0。