epub-builder

epub-builder is a skill for Claude Code, Codex from Morningstar202604/awesome-skillkit. It costs 119 tokens per session (2,355 once invoked), scanned A, original, Apache-2.0.

A tool that packages a Markdown manuscript as an EPUB 3 e-book, a standard format used by many e-readers. It creates the required book files and reads the result back to check its metadata and chapter order.

In plain words
What is it for?
Use it to turn a Markdown book manuscript into an EPUB file with a title, author, language, and ordered chapters. It does not create a Word or PDF file.
Why use it?
It removes the need to hand-build the ZIP and XML files that make up a valid EPUB. The verification step can catch structural errors that might stop an e-reader from opening the book.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is # Self-check: python3 scripts/epub_build.py --help should print build/inspect usage (lines starting with # are not executed as scenario commands).

Good fit Use it to turn a Markdown book manuscript into an EPUB file with a title, author, language, and ordered chapters. It does not create a Word or PDF file.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Morningstar202604/awesome-skillkit
agentmods
npx agentmods add skills/morningstar202604/awesome-skillkit/epub-builder

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for epub-builder

README.md
[![agentmods](https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/epub-builder/github.svg)](https://agentmods.dev/skills/morningstar202604/awesome-skillkit/epub-builder)
Your own site
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/epub-builder"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/epub-builder/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for epub-builder

Your own site · 80×15
<a href="https://agentmods.dev/skills/morningstar202604/awesome-skillkit/epub-builder"><img src="https://agentmods.dev/badge/skills/morningstar202604/awesome-skillkit/epub-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 119 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,355 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00119 $0.02355
Opus 5.5 $0.00048 $0.00942
Sonnet 5.5 $0.00024 $0.00471
Haiku 4.5 $0.00012 $0.00235

Measured 2mo ago against content hash 20284b6a496e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

epub-builder scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

site/skills/office/epub-builder/SKILL.md · 204 lines

How it starts

The opening of the file, as written. The whole thing — 204 lines — stays where its author put it; the contents beside it link to each section on GitHub.

EPUB Builder (E-book Generation)

Package a Markdown manuscript into an EPUB 3 that readers will accept. EPUB is essentially "a zip + a set of XML", so this skill uses only the Python standard library: zipfile for packaging, hand-written OPF/NCX/NAV, and a built-in lightweight parser for Markdown conversion.

Core judgment: spec details decide success or failure. EPUB has one hard requirement—the mimetype must be the first entry in the zip and uncompressed (ZIP_STORED), with content exactly application/epub+zip and no trailing newline. Get this wrong and most readers will reject the file outright, even though it "generated successfully". This skill therefore builds validation into build and makes it re-checkable in inspect.

This skill does not do Word (use docx-writer), not PDF (use pdf-pipeline), and not typographic beautification (EPUB styling is controlled by the reader; over-specifying styles causes breakage across devices).

Input Checklist

Input Required Default Notes
Markdown source file yes — First H1 becomes book title and first chapter heading
Book title no First H1 or filename Written to dc:title
Author no Anonymous Written to dc:creator
Language no zh Written to dc:language, affects hyphenation and TTS
Output path no book.epub Single-file artifact

When inputs are missing, ask all at once:

Please provide: 1) where is the Markdown file? 2) book title and author (if not given I'll use the first H1 and "Anonymous")? 3) output filename (default book.epub)? 4) do you have a cover image (this skill doesn't embed images; say so if you need one)?

Pre-flight Checks

Run each in order; any failure → follow the action, then STOP:

# 1. Python version (needs 3.8+)
python3 --version
# Expected: Python 3.8+. Failure → STOP.

# 2. Script available
# Self-check: python3 scripts/epub_build.py --help should print build/inspect usage (lines starting with # are not executed as scenario commands)
# Expected: script ok. Failure → verify scripts/ path.

# 3. Source file exists and is non-empty
test -s <input.md> && head -3 <input.md>
# Expected: content visible. Failure → script will report "empty file"; ask user for the manuscript first.

# 4. Chapter structure usable (how many H1s?)
grep -c '^# ' <input.md>
# Expected: ≥1. Zero → script treats whole thing as a single "body" chapter; no error but TOC has one entry.

Read the full file on GitHub · 204 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago Changed · +18 lines · -18 tokens per session 20284b6a496e
  2. 2mo ago Changed · -1 lines 38a87325986d
  3. 2mo ago First seen · 187 lines · 137 tokens per session scan A 99bc6ae20c5e

Subscribe to this mod's changes

epub-builder is a skill published in the GitHub repository Morningstar202604/awesome-skillkit (0 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 119 tokens to every session and 2,355 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-19.

Related

epub-builder compared with skills from other repositories

epub-builder next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
epub-builderMorningstar202604/awesome-skillkitSkill02mo agoApache-2.0A119Claude Code, Codex
dcf-modelNousResearch/hermes-agentSkill267ktodayMITA14Claude Code, Codex
boxNousResearch/hermes-agentSkill267ktodayMITA14Claude Code, Codex
pptxmudler/LocalAISkill51ktodayMITA40Claude Code, Codex
pdf-toolkitopensquilla/opensquillaSkill7.2k4d agoApache-2.0A127Claude Code, Codex
structuring-radiology-reportsmaziyarpanahi/openmedSkill5.9kyesterdayApache-2.0A195Claude Code
pptagenticip-cas/PPTAgentSkill5.3k6d agoMITA52Claude Code, Codex