π¦ ClawHub
EPUB to Markdown
by @yueeli
Convert EPUB books into an AI-ready Markdown library with a first-read META.md navigation index, per-chapter Markdown files, and extracted images. Use when t...
TERMINAL
clawhub install epub-to-markdownπ About This Skill
name: epub-to-markdown description: Convert EPUB books into an AI-ready Markdown library with a first-read META.md navigation index, per-chapter Markdown files, and extracted images. Use when the user wants to turn a .epub into Markdown for reading, summarization, analysis, retrieval, or downstream text processing, especially when the book should be explored chapter-by-chapter without loading the entire text at once.
EPUB to Markdown Conversion
Convert an EPUB into a structured Markdown workspace using the bundled script.
Run
uv run scripts/convert.py [output_dir]
output_dir to write beside the EPUB as {epub_stem}/.output_dir already exists, the script stops instead of deleting it.--overwrite only when the user explicitly wants to replace an existing generated directory.uv run installs them automatically on first use.Output
{output_dir}/
βββ META.md
βββ images/
βββ chapters/
βββ 001_{slug}.md
βββ 002_{slug}.md
βββ ...
META.md first. It contains book metadata, total chapter and word counts, and a chapter index pointing at the generated files.chapters/ only when the user asks about specific content.Reply Format
After a successful conversion, report:
β
Conversion completeTitle : {title}
Authors : {authors}
Chapters: {total_chapters}
Words : {total_words}
Output : {output_dir}/
If chapter titles look wrong, the TOC is sparse, or the user needs edge-case behavior details, read references/reference.md.