beautiful-pdfs

beautiful-pdfs is a skill for Claude Code, Codex from aduermael/herm. It costs 20 tokens per session (994 once invoked), scanned A, original, MIT.

A workflow for creating polished PDF documents from structured HTML and CSS. It covers documents such as reports, invoices, handouts, forms, and one-page briefs.

In plain words
What is it for?
Use it to build printable reports, invoices, forms, handouts, briefs, and similar visual documents. The output is a rendered PDF based on HTML and CSS.
Why use it?
It helps turn semantic web content into a printable PDF with controlled typography, spacing, page breaks, tables, and other document structure. It also checks whether PDF rendering is available before doing the full job.

Skill for Claude CodeCodex

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

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /home/herm/report.pdf.

Good fit Use it to build printable reports, invoices, forms, handouts, briefs, and similar visual documents. The output is a rendered PDF based on HTML and CSS.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

There is no command for this one: it runs only inside a plugin, and the catalogue could not identify which plugin ships it. The source is linked below.

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 beautiful-pdfs

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/aduermael/herm/beautiful-pdfs"><img src="https://agentmods.dev/badge/skills/aduermael/herm/beautiful-pdfs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 994 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.00020 $0.00994
Opus 5 $0.00010 $0.00497
Sonnet 5 $0.00004 $0.00199
Haiku 4.5 $0.00002 $0.00099

Measured 11d ago against content hash f1d528fe4f1c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

beautiful-pdfs 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 11d 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.

app/apple/herm/Skills/beautiful-pdfs/SKILL.md · 83 lines

How it starts

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

Beautiful PDFs

Use this skill when the user asks for a PDF, printable report, invoice, brief, handout, form, one-pager, or visual document.

Workflow

  1. Use the available Luau globals directly. Do not call require; use fs.read, fs.write, and doc.renderFile.
  2. Confirm HTML-to-PDF rendering is available before investing in a long document. If unsure, create a tiny HTML file in /tmp and run:
    fs.write("/tmp/pdf-smoke.html", "<!doctype html><meta charset=\"utf-8\"><h1>PDF smoke test</h1>")
    doc.renderFile({source="/tmp/pdf-smoke.html", target="/tmp/pdf-smoke.pdf"})
    print(fs.exists("/tmp/pdf-smoke.pdf"))
    
  3. If rendering reports platform not supported, policy denial, or another capability error, stop PDF-generation work. Tell the user that PDF creation is unavailable in this session; do not try image-based PDF, font fetching, network downloads, package installs, browser printing, external renderers, or OS tools.
  4. Create semantic HTML. Use real document structure: headings, sections, tables, figures, captions, footers, and page-break rules.
  5. Put presentation in CSS. Prefer restrained typography, clear spacing, durable contrast, and print-safe colors. Avoid huge hero layouts unless the user explicitly asks for a cover page.
  6. Write source HTML to a temporary or hidden build path unless the user explicitly asks for editable source files.
  7. Render HTML to PDF with the available document module. Start by checking help() and doc.help() if the exact API is not already visible in context.
  8. Prefer doc.renderFile({source="/tmp/report.html", target="/home/herm/report.pdf"}) for saved HTML-to-PDF output. It detects html -> pdf from the file extensions.
  9. Inspect the resulting PDF metadata or page count when practical before telling the user it is ready.

Luau Snippets

Read and adapt the bundled print baseline when useful:

local css = fs.read("/skills/beautiful-pdfs/print.css")

Build source HTML in /tmp so the user only sees the PDF unless they ask for source files:

Read the full file on GitHub · 83 lines

Files

What ships with it

1 file 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.

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. 11d ago First seen · 83 lines · 20 tokens per session scan A f1d528fe4f1c

Subscribe to this mod's changes

beautiful-pdfs is a skill published in the GitHub repository aduermael/herm (232 stars, last pushed 29d ago), licensed MIT. It adds 20 tokens to every session and 994 once invoked, about $0.0001 per session on Opus 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.

Related

Other skills, from other repositories