epub-chapter-extractor

epub-chapter-extractor is a skill for Claude Code from Abilityai/cornelius. It costs 46 tokens per session (496 once invoked), scanned A, original, MIT.

An EPUB ebook chapter extractor that converts each chapter into a separate Markdown file.

In plain words
What is it for?
Use it to turn an EPUB into numbered Markdown files, one for each chapter.
Why use it?
It saves you from manually copying and splitting an ebook when you need to work with chapters as individual documents.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths.

Good fit Use it to turn an EPUB into numbered Markdown files, one for each chapter.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/abilityai/cornelius/epub-chapter-extractor
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Abilityai/cornelius --skill epub-chapter-extractor
Clone the repo
git clone --depth 1 https://github.com/Abilityai/cornelius

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for epub-chapter-extractor

README.md
[![agentmods](https://agentmods.dev/badge/skills/abilityai/cornelius/epub-chapter-extractor/github.svg)](https://agentmods.dev/skills/abilityai/cornelius/epub-chapter-extractor)
Your own site
<a href="https://agentmods.dev/skills/abilityai/cornelius/epub-chapter-extractor"><img src="https://agentmods.dev/badge/skills/abilityai/cornelius/epub-chapter-extractor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for epub-chapter-extractor

Your own site · 80×15
<a href="https://agentmods.dev/skills/abilityai/cornelius/epub-chapter-extractor"><img src="https://agentmods.dev/badge/skills/abilityai/cornelius/epub-chapter-extractor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 496 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00046 $0.00496
Opus 5.5 $0.00018 $0.00198
Sonnet 5.5 $0.00009 $0.00099
Haiku 4.5 $0.00005 $0.00050

Measured 5d ago against content hash a8ef78969633, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

epub-chapter-extractor scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (extract_chapters.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/epub-chapter-extractor/SKILL.md · 53 lines

What it actually says

EPUB Chapter Extractor

Extract each chapter from an EPUB file into its own markdown file.

Instructions

When the user wants to extract chapters from an EPUB, run the extraction script with uv (run from the agent root - the script is called by its project path, no cd, so relative book paths still resolve; uv is ~/.local/bin/uv on the Trinity server, installed by .trinity/setup.sh):

UV="$(command -v uv || echo "$HOME/.local/bin/uv")"
"$UV" run --with ebooklib --with beautifulsoup4 --with html2text --with lxml python "$(git rev-parse --show-toplevel)/.claude/skills/epub-chapter-extractor/extract_chapters.py" "/path/to/book.epub" [output_dir]

If output_dir is omitted, creates a folder named after the EPUB in the same directory.

Example

User: "Extract chapters from ~/books_raw/mybook.epub"

UV="$(command -v uv || echo "$HOME/.local/bin/uv")"
"$UV" run --with ebooklib --with beautifulsoup4 --with html2text --with lxml python "$(git rev-parse --show-toplevel)/.claude/skills/epub-chapter-extractor/extract_chapters.py" "$HOME/books_raw/mybook.epub"

Output files will be at ~/books_raw/mybook/:

  • 01_introduction.md
  • 02_chapter_one.md
  • etc.

After extraction, report the output folder (on the Mac, open it).

Output Format

Each chapter file contains:

# Chapter Title

[Chapter content in markdown format]

Files are numbered for proper sorting: 01_, 02_, etc.

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago Changed · +3 lines a8ef78969633
  2. 3mo ago First seen · 50 lines · 46 tokens per session scan A 6fc1abc9c6f6

Subscribe to this mod's changes

epub-chapter-extractor is a skill published in the GitHub repository Abilityai/cornelius (123 stars, last pushed 2d ago), licensed MIT. It adds 46 tokens to every session and 496 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

epub-chapter-extractor compared with skills from other repositories

epub-chapter-extractor next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
epub-chapter-extractorAbilityai/corneliusSkill1232d agoMITA46Claude Code
orbit-notionnexu-io/open-designSkill110ktodayApache-2.0A117Claude Code, Codex
instrument-data-to-allotropeanthropics/knowledge-work-pluginsSkill37ktodayApache-2.0A123Claude Code
legal-holdanthropics/claude-for-legalSkill10ktodayApache-2.0A68Claude Code
report-to-pdfasgeirtj/system_prompts_leaksSkill74k2d agoCC0-1.0A17Claude Code, Codex
artifact-template-minimal-letterheadasgeirtj/system_prompts_leaksSkill74k2d agoCC0-1.0A54Claude Code, Codex
feishuHmbown/CodeWhaleSkill41k2d agoMITA33Claude Code, Codex