A Claude Skill for converting markdown documents, chat summaries, or research reports into a downloadable epub file that can be sent to kindle
npx skills add https://github.com/smerchek/claude-epub-skill --skill markdown-to-epub-converterInstala esta habilidad con la CLI y comienza a usar el flujo de trabajo SKILL.md en tu espacio de trabajo.
A Claude agent skill that converts markdown documents and chat summaries into professional EPUB ebook files. Perfect for creating portable, device-agnostic ebooks from research documents, blog posts, articles, or conversation summaries.
This skill transforms markdown content into EPUB3 format ebooks that work across all major reading platforms:
✨ Markdown Processing
📚 EPUB Generation
🎯 Smart Input Handling
markdown-to-epub/
├── SKILL.md # Skill definition with YAML frontmatter
├── requirements.txt # Python dependencies
├── scripts/
│ ├── markdown_processor.py # Markdown parsing & structure extraction
│ ├── epub_generator.py # EPUB file creation & formatting
└── resources/
└── default_styles.css # (future) Custom EPUB styling
test_epub_skill.py # Test suite with sample content
Install dependencies:
pip install -r markdown-to-epub/requirements.txt
Verify installation:
python test_epub_skill.py
You should see all tests pass:
from markdown_to_epub.scripts.epub_generator import create_epub_from_markdown
markdown_content = """
# My Book
## Chapter 1
Content here...
"""
# Generate EPUB
create_epub_from_markdown(
markdown_content,
output_path="my_book.epub",
title="My Book",
author="John Doe"
)
When registered as a Claude skill, simply ask Claude to convert markdown to EPUB:
"Convert this markdown to an EPUB ebook:
# Research Summary
## Introduction
...content..."
Or provide a file path:
"Convert the markdown file at research_notes.md to an EPUB file"
| Element | Example | Support | Styling |
|---|---|---|---|
| Headers | # H1 through ###### H6 |
Full | Optimized sizes for e-readers |
| Bold | **bold** or __bold__ |
Full | Strong emphasis |
| Italic | *italic* or _italic_ |
Full | Subtle emphasis |
| Links | [text](url) |
Full | Clickable |
| Lists | - item or 1. item |
Full | Proper indentation |
| Code Blocks | ```language |
Enhanced | Monospace fonts, styled backgrounds, blue accent |
| Inline Code | `code` |
Enhanced | Gray background, subtle border |
| Tables | Markdown tables | Enhanced | Blue headers, zebra striping, responsive |
| Blockquotes | > quote |
Full | Blue left border |
| Horizontal Rule | --- or *** |
Full | Subtle divider |
| Paragraphs | Text with blank lines | Full | Justified text |
Add metadata to your markdown using YAML frontmatter:
---
title: My Ebook
author: John Doe
language: en
date: 2025-01-15
---
# Chapter 1
...
Supported fields:
title - Book titleauthor - Author namelanguage - Language code (default: en)date - Publication datemarkdown_processor.py)epub_generator.py)Run the comprehensive test suite:
python test_epub_skill.py
Tests include:
🎨 Cover Page Generation
📱 Kindle Support
🎨 Advanced Styling
📚 Multi-Document
EPUB won't open
Missing table of contents
Formatting looks different
Large file size
This skill follows the same license as the Claude Cookbooks project.
Contributions are welcome! Areas for improvement:
Created: 2025-01-16
Version: 1.0.0
Status: Production Ready