by smerchek (community) Claude, Python, Kindle, Apple Books, Google Play Books, Kobo, любой EPUB-ридер
Claude Skill для конвертации markdown-документов, саммари чатов или исследовательских отчётов в скачиваемый epub-файл, который можно отправить на Kindle.
Фреймворк агентных навыков и методология разработки ПО для Claude Code — набор SKILL.md-инструкций, охватывающих полный цикл …
Конвертирует сайты документации, GitHub-репозитории и PDF в skills для Claude AI с автоматическим обнаружением конфликтов.
45+ советов по эффективному использованию Claude Code — от основ до продвинутых техник, включая кастомный статус-лайн …
Даёт Claude Code возможность напрямую общаться с вашими блокнотами Google NotebookLM: запросы к загруженным документам, ответы …
pip install -r markdown-to-epub/requirements.txt python test_epub_skill.py
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: - Apple Books - Amazon Kindle (via Kindle reading apps) - Google Play Books - Kobo - Any standard EPUB reader
✨ Markdown Processing - Automatic chapter detection from H1 headers - Automatic section parsing from H2-H6 headers - Full markdown formatting support (bold, italic, links, lists, code blocks, etc.) - Enhanced code blocks with premium monospace fonts and syntax highlighting support - Professional tables with styled headers and alternating row colors
📚 EPUB Generation - EPUB3 standard compliance - Automatic table of contents with proper navigation - Responsive, device-agnostic styling - Proper document structure and metadata - Beautiful code formatting for technical documents
🎯 Smart Input Handling - Accept raw markdown text directly - Process markdown files by path - Extract metadata from YAML frontmatter - Handle edge cases gracefully
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:
bash
pip install -r markdown-to-epub/requirements.txt
Verify installation:
bash
python test_epub_skill.py
You should see all tests pass: - ✓ Markdown processing: PASSED - ✓ EPUB generation: PASSED - ✓ Edge cases: PASSED
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](https://github.com/smerchek/claude-epub-skill/blob/main/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 title
- author - Author name
- language - Language code (default: en)
- date - Publication date
markdown_processor.py)epub_generator.py)Run the comprehensive test suite:
python test_epub_skill.py
Tests include: - Markdown parsing with various header structures - EPUB file generation and validation - Edge cases (empty content, plain text, special characters) - Long documents (10+ chapters) - Table of contents generation - Metadata extraction
🎨 Cover Page Generation - Auto-generate title pages with styling - Custom cover images with MCP integration
📱 Kindle Support - .mobi and .azw3 format generation - Kindle-specific optimizations - Direct Kindle device upload capability
🎨 Advanced Styling - Custom CSS per user preferences - Custom fonts - Advanced typography controls
📚 Мульти-документ - Объединять несколько markdown-файлов - Перекрестные ссылки между документами - Расширенная организация глав
EPUB не открывается - Проверьте, что markdown использует правильный синтаксис - Проверьте сбалансированность скобок в ссылках - Убедитесь, что главы имеют заголовки H1
Отсутствует оглавление - Добавьте заголовки H1 для обозначения границ глав - Проверьте, что после заголовков следует содержимое
Форматирование выглядит иначе - Это нормально! Читалки EPUB применяют свои шрифты и стили - Структура сохраняется во всех читалках
Большой размер файла - При необходимости сжимайте с помощью внешних инструментов - При наличии удаляйте большие встроенные материалы
Этот навык использует ту же лицензию, что и проект Claude Cookbooks.
Приветствуются вклад! Области для улучшения: - Дополнительные возможности markdown (таблицы, сноски) - Расширенные возможности стилизации - Оптимизация производительности - Поддержка дополнительных форматов
Создан: 2025-01-16 Версия: 1.0.0 Статус: Готов к работе