smithery.ai

epub-chapter-extractor

Extract all chapters from an EPUB file into separate markdown files. Use when the user wants to split an EPUB into individual chapter files, extract EPUB chapters, or convert an ebook to separate markdown documents.

First seen Mar 21, 2026

Installation

$ npx skills add https://smithery.ai

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery.ai · top by installs.

npx skills add https://smithery.ai

Browse all from smithery.ai

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Skill metadata

Parsed from SKILL.md frontmatter.

Declared agents claude-code

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,403 B
  • docs SUMMARY.md 245 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 3 installs

SKILL.md

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:

cd ~/.claude/skills/epub-chapter-extractor && uv run --with ebooklib --with beautifulsoup4 --with html2text --with lxml python 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 /Users/yourname/Books/mybook.epub"

cd ~/.claude/skills/epub-chapter-extractor && uv run --with ebooklib --with beautifulsoup4 --with html2text --with lxml python extract_chapters.py "/Users/yourname/Books/mybook.epub"

Output files will be at /Users/yourname/Books/mybook/:

  • 01_introduction.md
  • 02chapterone.md
  • etc.

After extraction, open the output folder:

open /Users/yourname/Books/mybook

Output Format

Each chapter file contains:

# Chapter Title

[Chapter content in markdown format]

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