Borrowing it
Nothing to install: this file belongs to tobyilee/book-writer. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/tobyilee/book-writer/main/.claude/skills/epub-build/SKILL.mdgit clone --depth 1 https://github.com/tobyilee/book-writerWrote 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.
[](https://agentmods.dev/skills/tobyilee/book-writer/epub-build)<a href="https://agentmods.dev/skills/tobyilee/book-writer/epub-build"><img src="https://agentmods.dev/badge/skills/tobyilee/book-writer/epub-build/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.
<a href="https://agentmods.dev/skills/tobyilee/book-writer/epub-build"><img src="https://agentmods.dev/badge/skills/tobyilee/book-writer/epub-build.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00100 | $0.03171 |
| Opus 5.5 | $0.00040 | $0.01268 |
| Sonnet 5.5 | $0.00020 | $0.00634 |
| Haiku 4.5 | $0.00010 | $0.00317 |
Grade A, and why
epub-build 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 1mo 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.
How it starts
The opening of the file, as written. The whole thing — 122 lines — stays where its author put it; the contents beside it link to each section on GitHub.
EPUB Build
통합 원고·표지·매니페스트를 입력받아 EPUB 3 파일을 생성하고, 같은 폴더에 책 소개 markdown을 함께 만든다. EPUB 변환은 결정적 빌드를 위해 scripts/build_epub.sh 스크립트에 위임하고, 책 소개 markdown은 epub-builder 에이전트가 매니페스트·계획·통합 원고를 읽어 직접 작성한다.
절차
- 입력 검증 — 세 파일이 모두 존재하는지
{slug}/04_manuscript.md{slug}/cover.png{slug}/book_manifest.json
- 매니페스트 필드 점검
title비어있지 않음author필드 존재 (기본값Toby-AI, 사용자 지정 시 매니페스트 값을 그대로 사용)language존재 (ko)version존재 (예:1.0.0)identifier(옵션) — 비어 있거나 플레이스홀더urn:uuid:...이면 스크립트가urn:uuid:{uuid4}한 번 발급 후 매니페스트에 기록한다. 신간에 1회 발급되고 이후 재빌드에서 그대로 보존(불변) — version/date만 바뀐다._prev에 다른 식별자가 있으면 경고cover_alt(옵션) — 표지 대체 텍스트. 비어 있으면 기본값{title} 표지. 스크립트가 표지 xhtml에 실제 alt(또는 SVG 표지의role="img"+aria-label+<title>)로 주입해 a11y 대체 텍스트 주장을 뒷받침한다license(옵션) — 비어 있으면 하네스 기본값CC BY-NC-SA 4.0적용. 다른 라이선스를 쓰려면 명시 ("CC BY 4.0","CC0","All rights reserved"등)harness_version(옵션) — 비어 있으면 루트VERSION파일에서 자동 주입rights(옵션) — 비어 있으면© {year} {author} — Licensed under {license}로 자동 생성
- 스크립트 실행 —
scripts/build_epub.sh {slug} - 결과 검증
- 파일 존재, 크기 ≥ 50KB
epubcheck실행 결과 점검 —epubcheck실패는 빌드 실패다(각주가 아님).EPUBCHECK_STRICT(기본 켜짐1)일 때 설치+실패면 빌드 로그를 쓴 뒤 종료 코드5로 실패.epubcheck가 미설치면 EPUB은 검증되지 않은(UNVALIDATED) 상태로 산출되며brew install epubcheck안내를 stderr·빌드 로그에 남긴다 (EPUBCHECK_STRICT=0으로 실패를 경고로 강등 가능)
- 책 소개 markdown 생성 — EPUB과 같은 폴더(프로젝트 루트)에
{책-제목}-v{version}.md작성- 파일명 슬러그화 규칙은 EPUB과 동일 (공백→하이픈, 특수문자 제거)
- 콘텐츠 템플릿·작성 원칙은
epub-builder에이전트의 "책 소개 markdown" 섹션 참조 - 소스:
book_manifest.json(메타),02_plan.md(독자·아크),04_manuscript.md(실제 차례) - 같은 버전 파일이 이미 있으면
_prev/로 이동 후 신규 작성
- 기록 —
{slug}/build_log.md에 명령, 출력, 크기, 검증 결과, 책 소개 md 경로
스크립트 개요 (scripts/build_epub.sh)
pandoc을 이용해 원고와 메타데이터를 EPUB으로 변환한다. 요점:
pandoc {manuscript} \
--from markdown \
--to epub3 \
--metadata-file={manifest_yaml} \
--resource-path={slug} \
--epub-cover-image={cover} \
--css={styles/epub.css} \
--toc --toc-depth=2 \
--output {output_path}
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 1mo ago Changed 21dcacc95b20
- 2mo ago First seen · 122 lines · 100 tokens per session scan A 72c9cf9c76d9
epub-build is a skill published in the GitHub repository tobyilee/book-writer (85 stars, last pushed 3d ago), licensed MIT. It adds 100 tokens to every session and 3,171 once invoked, about $0.0004 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-08-30.
epub-build compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| epub-buildtobyilee/book-writer | Skill | 85 | 3d ago | MIT | A | 100 | Claude Code |
| apify-youtube-transcript-scrapersickn33/agentic-awesome-skills | Skill | 49k | yesterday | MIT | A | 48 | Claude Code |
| foundry-hosted-agent-validationmicrosoft/agent-framework | Skill | 15k | yesterday | MIT | A | 82 | Claude Code, Codex |
| skill-doc-deliverynyldn/claude-octopus | Skill | 4.4k | yesterday | MIT | A | 29 | Claude Code |
| meta-web-to-pdf-briefingopensquilla/opensquilla | Skill | 7.1k | 6d ago | Apache-2.0 | A | 45 | Claude Code, Codex |
| paper-readerhuangkiki/dailypaper-skills | Skill | 1.3k | 4d ago | Apache-2.0 | A | 135 | Claude Code, Codex |
| chat-complex-documentsvellum-ai/vellum-assistant | Skill | 1.5k | 2d ago | MIT | A | 90 | Claude Code, Codex |