跳到正文
cccskills
免费在 GitHub 公开

epub-pro

EPUB ebook creation and processing — structure, metadata, validation — use when generating or parsing ebooks.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md3.9 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Overview

EPUB is the open ebook standard: a zipped package of XHTML content, CSS, images, and metadata (OPF). Creating valid, good-looking EPUBs means understanding that package structure — and that "renders in my reader" is not the same as "valid EPUB". This skill covers authoring, generation, and parsing.

When to use

  • Generating ebooks from Markdown, HTML, or structured content
  • Fixing or validating EPUB files (EpubCheck)
  • Designing reflowable layouts that work across readers (Kindle, Apple Books, Kobo)
  • Extracting text and metadata from EPUBs for indexing
  • Handling covers, TOCs (NCX/nav), and embedded fonts

Core concepts

EPUB is a zip with rules. mimetype file first and uncompressed, then META-INF/container.xml, then the OPF package document listing every resource in the manifest with a spine defining reading order. Violate the packaging rules and some readers refuse the file even if the content is fine.

Reflowable is the default; fixed-layout is the exception. Reflowable EPUBs adapt to screen size and user font settings — right for novels, non-fiction, docs. Fixed-layout (page-precise) suits children's books and comics but sacrifices accessibility and adaptability. Choose deliberately.

CSS support varies by reader. Keep stylesheets simple: basic typography, margins, and page-break controls work everywhere; floats, absolute positioning, and web fonts are inconsistently supported. Embedded fonts work if subsetted and declared properly — but increase file size and may be overridden by reader settings anyway.

Navigation documents matter. EPUB 3 uses an XHTML nav document for the TOC; EPUB 2 used NCX. Include both for maximum compatibility. A proper hierarchical TOC (parts → chapters → sections) is the difference between a professional ebook and an amateur one.

Metadata is discoverability. Title, creator, language, identifier, and cover image in the OPF — plus schema.org refinements for series info. Validate with EpubCheck; it's the industry gatekeeper for distribution channels.

Practical workflow

  1. Author in a simple source format (Markdown or semantic HTML) — one chapter per file keeps the pipeline clean.
  2. Convert with a real toolchain (Pandoc-style converters or dedicated EPUB libraries) using a checked-in CSS file and metadata config; don't hand-roll the zip packaging.
  3. Set the cover, TOC depth, and metadata explicitly — these are the first things readers and stores check.
  4. Validate with EpubCheck and fix every error (warnings: triage, but fix most); validation failures block distribution on major stores.
  5. Test on multiple readers — at minimum one Kindle, one Apple Books/Kobo, and one generic EPUB reader; check the cover, TOC navigation, images, and a long chapter's typography.
  6. For parsing/extraction: unzip, read the OPF for spine order, extract XHTML in spine order, strip to text preserving chapter boundaries and image references.

Common pitfalls

  • Skipping validation — "opens in Calibre" ≠ valid; stores and some devices reject invalid EPUBs.
  • Absolute positioning and complex CSS — renders unpredictably across readers; keep it simple and reflowable.
  • Huge unoptimized images — bloat file size and crash low-memory readers; resize and compress images for ebook dimensions.
  • Missing or flat TOC — a 300-page book with a 3-entry TOC is nearly unnavigable; generate the TOC from real heading structure.
  • DRM confusion — standard EPUBs have no DRM; adding DRM requires specific vendor toolchains (and locks out readers); decide distribution strategy before production.
  • Hardcoded font sizes in px — ignore user preferences and break accessibility; use relative units (em/%) and let readers control base size.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Master 1Password: vaults, Watchtower, passkeys, SSH agent, CLI, and family/team administration. Use when getting full value from 1Password personally or administering it for others.

中文简介正在准备中。当前显示原文说明。

aicodedecode/awesome-muse-skills252026年10月10日 更新

Create 3D visuals with modeling, texturing, lighting, rendering, and optimization for web and product.

中文简介正在准备中。当前显示原文说明。

aicodedecode/awesome-muse-skills252026年10月10日 更新

Create 3D web experiences: scene setup, models, materials, lighting, animation, scroll-driven scenes, and performance budgets. Use when adding 3D to websites beyond basic demos.

中文简介正在准备中。当前显示原文说明。

aicodedecode/awesome-muse-skills252026年10月10日 更新

Writing abstracts that get papers read — structured content, the 5-sentence core, and journal-specific constraints.

中文简介正在准备中。当前显示原文说明。

aicodedecode/awesome-muse-skills252026年10月10日 更新

Learn effectively from courses and academies: choosing programs, studying actively, and converting courses into skills. Use when investing time/money in structured learning.

中文简介正在准备中。当前显示原文说明。

aicodedecode/awesome-muse-skills252026年10月10日 更新

Audit designs for accessibility with WCAG checklists covering color, type, focus, motion, and content.

中文简介正在准备中。当前显示原文说明。

aicodedecode/awesome-muse-skills252026年10月10日 更新

查看 aicodedecode 的全部技能

报告此技能的问题