epub-ebooklib

epub-ebooklib is a skill for Claude Code, Codex from agentforce314/clawcodex. It costs 26 tokens per session (203 once invoked), scanned A, original, MIT.

A Python ebook workflow for creating EPUB files, which are reflowable digital books. It explains how to add non-empty chapters, navigation, and correctly encoded HTML.

In plain words
What is it for?
Use it when generating .epub books with Python and ebooklib, especially when adding chapters and checking the output.
Why use it?
It prevents ebooklib from silently creating empty chapters when chapter content is formatted incorrectly. It also provides a final check that the generated EPUB contains real chapter files.

Skill for Claude CodeCodex

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

Good fit Use it when generating .epub books with Python and ebooklib, especially when adding chapters and checking the output.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/agentforce314/clawcodex/epub-ebooklib
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add agentforce314/clawcodex --skill epub-ebooklib
Clone the repo
git clone --depth 1 https://github.com/agentforce314/clawcodex

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-ebooklib

README.md
[![agentmods](https://agentmods.dev/badge/skills/agentforce314/clawcodex/epub-ebooklib/github.svg)](https://agentmods.dev/skills/agentforce314/clawcodex/epub-ebooklib)
Your own site
<a href="https://agentmods.dev/skills/agentforce314/clawcodex/epub-ebooklib"><img src="https://agentmods.dev/badge/skills/agentforce314/clawcodex/epub-ebooklib/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-ebooklib

Your own site · 80×15
<a href="https://agentmods.dev/skills/agentforce314/clawcodex/epub-ebooklib"><img src="https://agentmods.dev/badge/skills/agentforce314/clawcodex/epub-ebooklib.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 203 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.00026 $0.00203
Opus 5.5 $0.00010 $0.00081
Sonnet 5.5 $0.00005 $0.00041
Haiku 4.5 $0.00003 $0.00020

Measured 16d ago against content hash 9ae2165d0ada, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

epub-ebooklib 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 16d 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.

docs/examples/skills/epub-ebooklib/SKILL.md · 13 lines

What it actually says

Building EPUBs with ebooklib

  • Run with /usr/bin/python3 if the default python lacks ebooklib.
  • Set chapter content as BYTES with no XML declaration: ch.content = html.encode("utf-8"), where html starts with <html ...> and NOT <?xml ...?>. A str starting with <?xml silently serializes as an empty chapter.
  • Escape text (html.escape) and wrap paragraphs in <p>.
  • Add every chapter to book.spine and a epub.EpubNcx() / epub.EpubNav().
  • Right after epub.write_epub, verify once: unzip the file, check each chapter xhtml is larger than ~500 bytes. Fix at once if not, then stop; do not re-verify repeatedly.
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. 16d ago First seen · 13 lines · 26 tokens per session scan A 9ae2165d0ada

Subscribe to this mod's changes

epub-ebooklib is a skill published in the GitHub repository agentforce314/clawcodex (927 stars, last pushed yesterday), licensed MIT. It adds 26 tokens to every session and 203 once invoked, about $0.0001 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-10-22.

Related

epub-ebooklib compared with skills from other repositories

epub-ebooklib next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
epub-ebooklibagentforce314/clawcodexSkill927yesterdayMITA26Claude Code, Codex
csv-workbenchopenai/openai-agents-pythonSkill31ktodayMITA17Claude Code, Codex
docxopensquilla/opensquillaSkill7.1k6d agoApache-2.0A111Claude Code, Codex
pdf-toolkitopensquilla/opensquillaSkill7.1k6d agoApache-2.0A127Claude Code, Codex
xlsxopensquilla/opensquillaSkill7.1k6d agoApache-2.0A108Claude Code, Codex
pptxMODSetter/SurfSenseSkill17kyesterdayApache-2.0A14Claude Code, Codex
biopythonsynthetic-sciences/openscienceSkill4.3k2d agoApache-2.0A76Claude Code, Codex