Agent skill
markdown-to-epub
Convert Markdown documents to EPUB ebooks with styling, metadata, and table of contents
Install this agent skill to your Project
npx add-skill https://github.com/ljchg12-hue/dotfiles/tree/main/skills/markdown-to-epub
SKILL.md
Markdown to EPUB Converter Skill
Convert Markdown documents into properly formatted EPUB ebooks.
When to Use
- Ebook creation
- Documentation distribution
- Reading on e-readers
- Self-publishing
Core Capabilities
- Markdown to EPUB conversion
- Metadata embedding (title, author, publisher)
- Table of contents generation
- CSS styling
- Image embedding
- Cover image support
Tools
# Pandoc (recommended)
pandoc -s input.md -o output.epub --toc --epub-cover-image=cover.jpg
# With metadata
pandoc input.md -o output.epub \
--metadata title="My Book" \
--metadata author="John Doe" \
--toc
# Calibre ebook-convert
ebook-convert input.md output.epub --authors="John Doe" --title="My Book"
# Gitbook
gitbook epub ./ mybook.epub
Metadata
---
title: "My Book Title"
author: "Author Name"
language: "en"
---
Best Practices
- Use proper Markdown hierarchy (h1, h2, h3)
- Include cover image (1600x2400px recommended)
- Add metadata for discoverability
- Test on multiple e-readers
- Validate EPUB with epubcheck
Resources
- Pandoc: https://pandoc.org/
- EPUBCheck: https://github.com/w3c/epubcheck
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
random-selection
Randomly select items from lists using various algorithms for fair and unbiased selection
threat-hunting
Proactive threat detection using Sigma rules, IOCs, and behavioral analytics
auth-implementation-patterns
Master authentication and authorization patterns including JWT, OAuth2, session management, and RBAC to build secure, scalable access control systems. Use when implementing auth systems, securing APIs, or debugging security issues.
debugging-strategies
Master systematic debugging techniques, profiling tools, and root cause analysis to efficiently track down bugs across any codebase or technology stack. Use when investigating bugs, performance issues, or unexpected behavior.
sql-optimization-patterns
Master SQL query optimization, indexing strategies, and EXPLAIN analysis to dramatically improve database performance and eliminate slow queries. Use when debugging slow queries, designing database schemas, or optimizing application performance.
monorepo-management
Master monorepo management with Turborepo, Nx, and pnpm workspaces to build efficient, scalable multi-package repositories with optimized builds and dependency management. Use when setting up monorepos, optimizing builds, or managing shared dependencies.
Didn't find tool you were looking for?