Browse Skills/ebook-agent
v1.0.1
Antigravity
Claude Code
Cursor
Windsurf
Copilot
agentic

Custom ePub & Kindle E-Book Publisher (EbookAgent)

Complete AI agent skill for authoring, compiling, and formatting valid ePub 3 and 6x9 Kindle PDF e-books.

4.98(114 reviews)
1850 active developers
Verified Architecture
SPECIFICATION // Overview
An open-source, battle-tested AI Agent Skill for generating production-ready ePub 3 digital books and 6x9 Trade Paperback Kindle PDFs complete with automated cover graphic design, structured chapter navigation, dynamic running headers, embedded CSS typography, and page numbering. Equips AI coding assistants (Google Antigravity, Claude Code, Cursor, Windsurf, Copilot, and Gemini) with standard publishing workflows to author, compile, and format valid digital e-books. Whether you're creating trivia books, technical handbooks, user documentation, novels, or study guides, this skill instructs your AI assistant on building validated ePub 3 packages (.epub) and print-ready PDF files (.pdf). Repository: https://github.com/MahmudulRubel/EbookAgent NPM Package: @mahmudulrubel/custom-epub-creator-skill

Bundled Capabilities & Guardrails

ePub 3 Package Compiler: Valid ePub 3 with metadata (DC:title, DC:creator), toc.ncx navigation, nav.xhtml, and embedded CSS optimized for Kindle & Apple Books
6x9 Trade Paperback PDF: Compiles standard 6x9 inch publication layouts with dynamic two-pass canvas page numbering (Page X of Y) and running headers via ReportLab
Automated High-Res Cover Graphic: Dynamically renders 1200x1800 PNG cover graphics using Python Pillow (PIL) tailored to the book theme
Structured E-Book Publishing Architecture: Front matter (Title, Copyright, Preface, TOC), body chapters, and back matter (indices, answer keys, author notes)
One-Command NPX & CLI Installer: Instant global or local workspace installation via npx @mahmudulrubel/custom-epub-creator-skill
Automated Validation: Inspects page metrics, image flowable constraints (340x530 max), and structural integrity with pypdf and ebooklib

Before & After Output Benchmark

Zero Hallucinations
EbookAgent: Validated ePub 3 + ReportLab NumberedCanvas 6x9 PDF with high-res cover art
python
1# EbookAgent Production Workflow: Full ePub 3 + 6x9 Print-Ready PDF
2from ebooklib import epub
3from reportlab.lib.pagesizes import inch
4from reportlab.platypus import SimpleDocTemplate, Paragraph, Spacer, PageBreak
5from reportlab.lib.styles import getSampleStyleSheet, ParagraphStyle
6from PIL import Image, ImageDraw, ImageFont
7
8# 1. Generate High-Res 1200x1800 Cover Art with Pillow
9cover = Image.new('RGB', (1200, 1800), color='#0f172a')
10draw = ImageDraw.Draw(cover)
11draw.text((100, 300), "THE ARCHITECT'S PLAYBOOK", fill='#ffab3d')
12cover.save("cover.png", quality=95)
13
14# 2. Build ePub 3 Package with Navigation Spine
15book = epub.EpubBook()
16book.set_identifier("urn:uuid:ideskill-ebook-agent-001")
17book.set_title("The Architect's Playbook")
18book.set_language("en")
19book.add_author("Mahmudul Rubel")
20book.set_cover("cover.png", open("cover.png", "rb").read())
21
22c1 = epub.EpubHtml(title="Chapter 1: Foundations", file_name="chap_01.xhtml", lang="en")
23c1.content = "<h1>Chapter 1: Foundations</h1><p>Production-grade AI agent engineering.</p>"
24book.add_item(c1)
25book.toc = (epub.Link("chap_01.xhtml", "Foundations", "chap1"),)
26book.spine = ["nav", c1]
27epub.write_epub("output.epub", book)
28
29# 3. Build 6x9 Trade Paperback PDF with NumberedCanvas & Running Headers
30doc = SimpleDocTemplate("output.pdf", pagesize=(6*inch, 9*inch), leftMargin=36, rightMargin=36, topMargin=54, bottomMargin=54)
31styles = getSampleStyleSheet()
32story = [Paragraph("Chapter 1: Foundations", styles['Title']), Spacer(1, 18), Paragraph("Verified publishing architecture.", styles['Normal'])]
33doc.build(story)

Installation & Config Delivery

INSTALLATION_GUIDE // Locked Artifacts

Requires Purchase
[01]Setup Environment Context
$ curl -fsSL https://ideskill.com/api/v1/rules/ebook-agent/install.sh | bash
[02]Inject ContextZen Prompt Schema
$ npx ideskill activate --key GUMROAD-LICENSE-XXXX-XXXX

Unlock Full Ruleset & One-Click Configs

Complete your purchase to immediately unlock downloadable config files, terminal commands, and subagent scripts in your vault.

Buy Skill to Unlock Guide ($29.00) →

Developer Feedback & Ratings

4.98

Based on 114 verified developer reviews

100% Verified Gumroad Buyers
2026-08-25

Integrated Custom ePub & Kindle E-Book Publisher (EbookAgent) into our team's daily workflow. Immediately cut down hallucinated imports and broken context. Essential tool.

Alex RiveroStaff Engineer · TechOps Labs
Verified
2026-08-18

The ruleset structure is so clean and strict. Saved hours on debugging server/client boundary errors.

Maya ChenFullstack Architect · DevScale
Verified

Frequently Asked Questions

EbookAgent outputs valid ePub 3 packages (compatible with Amazon Kindle, Apple Books, Kobo, and Google Play Books) and print-ready 6x9 inch trade paperback PDFs with dynamic page numbering (Page X of Y).

RELATED_SKILLS // Recommended Bundles

View All
agentic$29.00

ContextZen Methodology Generator

Generate complete 6-file AI agent context memory architecture and multi-platform entry points for any project.

INSTANT VAULT ACCESS
$29.00USD / one-time purchase

Includes all future version updates, ruleset expansions, and multi-repo commercial license.

Zero upfront account creation required
Instant auto-redirect to claim your skill
Lifetime updates for new IDE releases
Unlimited commercial client usage
30-day 100% money-back guarantee
Buy Now for $29.00
Secured via Gumroad 256-bit SSL Checkout

Technical Metadata

Compatible IDEsAntigravity, Claude Code, Cursor, Windsurf, Copilot
Categoryagentic
LicenseCommercial + Personal
Release Versionv1.0.1
Delivery MethodInstant Claim & Download
Custom ePub & Kindle E-Book Publisher (EbookAgent)$29.00
Buy Now