Borrowing it
Nothing to install: this file belongs to lowtidebuild/ebook-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/lowtidebuild/ebook-writer/main/.claude/skills/pdf-builder/SKILL.mdgit clone --depth 1 https://github.com/lowtidebuild/ebook-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/lowtidebuild/ebook-writer/pdf-builder)<a href="https://agentmods.dev/skills/lowtidebuild/ebook-writer/pdf-builder"><img src="https://agentmods.dev/badge/skills/lowtidebuild/ebook-writer/pdf-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.
<a href="https://agentmods.dev/skills/lowtidebuild/ebook-writer/pdf-builder"><img src="https://agentmods.dev/badge/skills/lowtidebuild/ebook-writer/pdf-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00000 | $0.00810 |
| Opus 5.5 | $0.00000 | $0.00324 |
| Sonnet 5.5 | $0.00000 | $0.00162 |
| Haiku 4.5 | $0.00000 | $0.00081 |
Grade A, and why
pdf-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.
How it starts
The opening of the file, as written. The whole thing — 77 lines — stays where its author put it; the contents beside it link to each section on GitHub.
PDF Builder Skill
Purpose
Convert markdown chapters into a professionally typeset PDF book using WeasyPrint. This skill takes the authored chapter files (Markdown) and produces a print-ready PDF complete with cover page, table of contents, page numbers, headers/footers, syntax-highlighted code blocks, and properly placed images.
Script
scripts/build_pdf.py
Features
- Cover page -- Rendered from an HTML template with title, subtitle, author, and date placeholders.
- Table of contents -- Auto-generated from chapter headings (H1 and H2) with page references.
- Page numbers -- Centered in the footer on every page except the cover.
- Headers and footers -- Configurable via CSS
@pagerules; suppressed on the cover page. - Code highlighting -- Fenced code blocks are syntax-highlighted using Pygments (friendly theme).
- Image placement -- Images are resolved to absolute paths so WeasyPrint can locate them, centered with constrained width.
- Multilingual support --
--languageflag switches between Korean (ko) and English (en) typographic defaults.
Dependencies
| Package | Purpose |
|---|---|
weasyprint |
HTML/CSS to PDF rendering engine |
markdown |
Markdown to HTML conversion |
pymdown-extensions |
Extended Markdown syntax (superfences) |
Pygments |
Syntax highlighting for code blocks |
Install all at once:
.venv/bin/pip install weasyprint markdown pymdown-extensions Pygments
Reference Files
| File | Description |
|---|---|
references/book_styles.css |
Professional book layout CSS |
references/cover_template.html |
HTML template for the cover page |
Usage
.venv/bin/python3 .claude/skills/pdf-builder/scripts/build_pdf.py \
--chapters output/chapters/ko/ \
--images output/images/ \
--output output/final/book_ko.pdf \
--language ko \
--styles .claude/skills/pdf-builder/references/book_styles.css \
--cover .claude/skills/pdf-builder/references/cover_template.html \
--title "Book Title" \
--author "Author Name" \
--citations output/research/citations.json
What ships with it
3 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.
- 2mo ago First seen · 77 lines · 0 tokens per session scan A 9caff30b65c2
pdf-builder is a skill published in the GitHub repository lowtidebuild/ebook-writer (6 stars, last pushed 4mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 810 tokens. 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-31.
pdf-builder compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pdf-builderlowtidebuild/ebook-writer | Skill | 6 | 4mo ago | Apache-2.0 | A | 0 | 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 |