Xpersona
E

EPUB Read

CLAWHUB · Unverified

Task-mode-driven EPUB reading and analysis skill with overview, targeted reading, chunked full reading, extraction, complex-content inspection, and batch pro...

62
Rank
84
Safety
966
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 966 downloads reported by the source. Last updated 10/12/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s175mmm7vyds4m7sckts11fygs83m6qw:epub-read
  1. Install using `clawhub skill install s175mmm7vyds4m7sckts11fygs83m6qw:epub-read` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/inf-lucas/epub-read before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-inf-lucas-epub-read/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

19,028 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: "epub-read"
slug: "epub-read"
version: "2.0.0"
description: "Task-mode-driven EPUB reading and analysis skill with overview, targeted reading, chunked full reading, extraction, complex-content inspection, and batch processing."
changelog: "English-source release for GitHub and international ClawHub publishing."
metadata: {"clawdbot":{"emoji":"📚","os":["linux","darwin","win32"],"requires":{"bins":["python3"]}}}
---

<objective>
Provide a strict, auditable EPUB workflow that safely handles long books through explicit task routing instead of loading full-book text by default.
</objective>

<use_when>
- The user mentions an `.epub` file 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
</use_when>

<process>

**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**

1. Check whether the output directory already exists and contains `manifest.json`.
2. If not, run `parse_epub.py`.
3. 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:

```bash
python3 task_router.py <book_dir> --mode <mode> [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 c

README.md

# epub-read

`epub-read` is a task-mode-driven EPUB reading and analysis skill for AstronClaw, ClawHub, and GitHub distribution. Its main goal is to make long-book workflows safe and inspectable by splitting EPUB work into explicit modes instead of trying to load an entire book into context at once.

It supports overview, targeted reading, continuous chunked reading, structured extraction, complex-content inspection, and batch processing.

## Highlights

- Task-mode routing: six explicit modes for different reading goals
- Safer long-book handling: chunk-first workflows for full-book reading
- Persistent reading state: supports continue, previous, next, and chapter jumps
- Rich output artifacts: metadata, TOC, book-level markdown, chapter files, chunk files, reading index, and complex-content report
- Backward-compatible outputs: keeps existing parse and chunk outputs usable for older workflows

## Supported Modes

### A. overview

Read metadata, structure, and table of contents without loading the full body text.

### B. targeted_read

Read by chapter, chapter ID, chunk range, or keyword match.

### C. full_read

Read a long book sequentially in chunks while maintaining reading progress.

### D. extract

Extract structured information such as keywords, definitions, quotes, examples, action items, names, locations, organizations, tables, and lists.

### E. complex_content

Inspect images, tables, SVG content, and low-text / high-resource sections.

### F. batch

Process multiple EPUB files from one or more directories.

## Typical Use Cases

- Get a quick structural overview of an ebook
- Read only selected chapters or chunk ranges
- Safely continue through a long book without loading the full text
- Extract concepts, definitions, quotes, or action items from a parsed EPUB
- Review image-heavy or table-heavy sections
- Batch-scan a library of EPUB files

## Dependencies

- `python3`
- `beautifulsoup4`
- `lxml`

Install dependencies:

```bash
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
```

## Quick Start

### 1. Parse an EPUB

```bash
python3 parse_epub.py /absolute/path/to/book.epub
```

### 2. Generate an overview plan

```bash
python3 task_router.py /path/to/book_dir --mode overview
```

### 3. Chunk a long book

```bash
python3 chunk_book.py /path/to/book_dir --mode balanced
```

### 4. Start or continue full reading

```bash
python3 task_router.py /path/to/book_dir --mode full_read --start-chunk 1
python3 task_router.py /path/to/book_dir --mode full_read --continue
```

### 5. Run structured extraction

```bash
python3 task_router.py /path/to/book_dir --mode extract --extraction-types definitions quotes action_items
```

## Output Artifacts

Parsing produces a directory similar to:

```text
.epub_read_output/<book_id>/
├── metadata.json
├── toc.json
├── book.json
├── book.md
├── manifest.json
├── complex_content.json
├── reading_index.json
├── session_state.json
├── chapters/
└── chunks/
```

Key files:

-

_meta.json

{
  "ownerId": "kn7a4ez0j07fdbxz3txs0a740n82155r",
  "slug": "epub-read",
  "version": "2.0.0",
  "publishedAt": 1774493857592
}

docs/CLAWHUB_RELEASE.md

# ClawHub Release Notes

This repository is the English-source version of `epub-read`.

When building a ClawHub release bundle:

1. Keep `SKILL.md`, `README.md`, templates, and metadata aligned with this repository.
2. Exclude local artifacts such as:
   - `__pycache__/`
   - `*.pyc`
   - `.venv/`
   - generated output folders
3. Keep the published bundle lightweight and focused on:
   - the skill definition
   - scripts
   - templates
   - examples
   - license and metadata

Recommended published files:

- `SKILL.md`
- `README.md`
- `LICENSE.md`
- `agents/openai.yaml`
- scripts and templates
- examples
- `requirements.txt` where applicable

examples/sample_usage.md

# Sample Usage

## Example 1: Parse a book

```bash
python parse_epub.py ~/Books/sample.epub
```

## Example 2: Parse with custom output root and book_id

```bash
python parse_epub.py ~/Books/sample.epub \
  --output-dir ~/Desktop/epub_outputs \
  --book-id sample-book
```

## Example 3: Chunk the parsed result

```bash
python chunk_book.py .epub_read_output/sample-book
```

## Example 4: Chunk with custom settings

```bash
python chunk_book.py .epub_read_output/sample-book \
  --target-chars 3200 \
  --max-chars 4800 \
  --overlap-chars 250
```

## Example 5: Suggested AstronClaw reading workflow

1. Parse the EPUB
2. Run `task_router.py --mode overview`
3. Chunk the parsed output if the book is long
4. Read `manifest.json`
4. Report:
   - title
   - author
   - chapter count
   - chunk count
   - output directory
5. Use `toc.json` and `reading_index.json` to navigate
6. Read `chapters/*.md` for chapter-level work
7. Read `chunks/*.md` for detailed analysis

## Example prompt ideas

- Read this EPUB chapter by chapter
- Parse this ebook and show me the TOC
- Summarize chunk 12
- Compare chapter 3 and chapter 8
- Produce a full-book summary without loading the entire book at once
- Continue the next chunk from session_state.json

Sponsored

Ads related to EPUB Read and adjacent AI workflows.