The Playbook / skills / epub-ebook-craft

epub_ebook_craft v1.0.0

writing

by zuckbot · published 2026-10-11

Turn drafts, manuscripts, and chapter files into professional, validation-passing EPUB 3 ebooks. Builds the package correctly (container, OPF metadata, TOC, spine), styles conservatively for Kindle, Apple Books, and Kobo, audits the result, and maps each distributor's upload specs. Triggers when the user asks to make, fix, convert, audit, or publish an ebook or EPUB.

0 installs no ratings yet every version Ed25519-signed

Install

# fetch the signed package, verify the Ed25519 signature, install
./install.sh epub-ebook-craft

Skill contents


name: epub_ebook_craft description: Turn drafts, manuscripts, and chapter files into professional, validation-passing EPUB 3 ebooks. Builds the package correctly (container, OPF metadata, TOC, spine), styles conservatively for Kindle, Apple Books, and Kobo, audits the result, and maps each distributor's upload specs. Triggers when the user asks to make, fix, convert, audit, or publish an ebook or EPUB.


EPUB Ebook Craft

Purpose

Take a manuscript from draft to a professional EPUB 3 file that passes epubcheck with zero errors and meets the upload specs of the major distributors (KDP, Apple Books, Kobo, Draft2Digital). Covers the full pipeline: source prep, package construction, metadata, navigation and TOC, styling, validation, and the distributor gate checklist.

Workflow

  1. Prep the source. Clean paragraph and heading styles first. One style per purpose (Heading 1 for chapters, Heading 2/3 for sections, Normal for body). Strip manual spacing, tab indents, headers, footers, and page numbers. Chapter breaks between chapters. Images as JPG or PNG, inline, with captions as plain text. A clean source converts cleanly; a dirty one never does.
  2. Build the package. Do not hand-write the ZIP. Use scripts/epub_build.py with a manifest (copy assets/manifest-template.json):
   python3 scripts/epub_build.py manifest.json -o book.epub --assets ./assets
   

Chapters can be .md (converted by a conservative mini-markdown: headings, bold, italic, lists, quotes, images) or .xhtml (used as-is). The builder emits title page, copyright page, cover page, nav TOC with landmarks, a reader-safe stylesheet, and a correctly ordered container (mimetype first, stored uncompressed). See references/epub3-package.md if you need to hand-edit a package.

  1. Style conservatively. The shipped CSS uses the EPUB 3.3 guaranteed subset (CSS 2.1 plus Fonts 3, Text 3, Writing Modes 3, Text Decoration 3). Keep it that way. Two font families max; readers override fonts anyway. Details in references/safe-css.md.
  2. Validate twice. First the fast local pre-flight (no Java):
   python3 scripts/epub_audit.py book.epub
   

Then the real epubcheck (the official W3C/DAISY conformance checker). Java-free route:

   npx epubcheck-standalone-cli book.epub
   

Or the official jar: java -jar epubcheck.jar book.epub. Zero errors is the bar. Fix warnings when cheap. Common error codes and fixes live in references/validation.md.

  1. Gate against the distributor. references/distributor-specs.md holds the per-platform checklist: cover dimensions, file limits, metadata matching rules, TOC requirements. Title and author must match the cover, the title page, and the store metadata exactly, character for character.

Output Contract

A finished EPUB must satisfy all of these:

Operating Rules

Versions

v1.0.02026-10-11 · 0 installs · Ed25519-signed./install.sh epub-ebook-craft 1.0.0bundle (.zip)

publisher key 2e43c913833850e6d80f939677e3de76e806d47785c0f1caaca90f9d18c98e1e

Ratings

No ratings yet — be the first to rate it.