epub-chapter-extractor

Extract EPUB chapters into separate markdown documents.

103|31|Updated Nov 2, 2025
One-click install
npx skills add https://github.com/Abilityai/cornelius --skill epub-chapter-extractor
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: epub-chapter-extractor
Source: https://github.com/Abilityai/cornelius/tree/main/.claude/skills/epub-chapter-extractor
Command: npx skills add https://github.com/Abilityai/cornelius --skill epub-chapter-extractor

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires ebooklib, beautifulsoup4, html2text, lxml, and includes scripts (resource) components.

What problem does it solve?

This Skill automates the process of breaking down an EPUB ebook into individual markdown files, one for each chapter, making ebook content more manageable and accessible for further processing or editing.

Core Features & Use Cases

  • Chapter Segmentation: Extracts each chapter from an EPUB file.
  • Markdown Conversion: Converts chapter content into markdown format.
  • Organized Output: Saves chapters into a dedicated output directory, numbered for easy sorting.
  • Use Case: You've downloaded an ebook in EPUB format and want to use its content in a knowledge base or for analysis. This Skill will extract each chapter into a separate markdown file, preserving the original chapter titles.

Quick Start

Use the epub-chapter-extractor skill to extract chapters from the file '/path/to/book.epub'.

Frequently Asked Questions about epub-chapter-extractor

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract chapters from an EPUB file into separate markdown files?

Extracting chapters from an EPUB into separate markdown files requires parsing the ebook structure and converting HTML content. This skill segments each chapter into its own numbered markdown document within a dedicated output directory, preserving original titles for easy sorting.

Can I convert EPUB ebook content to markdown for use in a knowledge base?

Converting EPUB ebook content to markdown for knowledge bases involves breaking down the ebook into individual chapters. This skill converts HTML chapter content into markdown format, making content accessible and manageable for further processing or digital library management.

Do I need beautifulsoup4 and ebooklib to parse EPUB structure and convert HTML to markdown?

Yes, parsing EPUB structure and converting HTML to markdown requires ebooklib, beautifulsoup4, html2text, and lxml. These dependencies handle reading the EPUB file, navigating the HTML structure, and translating the content into markdown format.

What's the best way to split an EPUB into individual chapter files for content repurposing?

The best way to split an EPUB for content repurposing is automating chapter segmentation and markdown conversion. This skill extracts all chapters into separate markdown documents, organizing numbered files in an output directory for immediate use in analysis or editing.

Why does my EPUB extraction output separate files instead of one single markdown document?

EPUB extraction outputs separate files because the process is designed for chapter segmentation. Each chapter is saved as an individual markdown document in a dedicated directory, numbered for easy sorting, to make ebook content more manageable for downstream processing.

Does html2text preserve original chapter titles when converting EPUB content to markdown?

Yes, converting EPUB content to markdown preserves original chapter titles. The skill extracts each chapter and translates the HTML content into markdown format, retaining the titles and saving each chapter into a numbered markdown file for organized output.