brief-pdf

brief-pdf is a skill for Claude Code from SunflowersLwtech/sunkit. It costs 122 tokens per session (1,117 once invoked), scanned A, original, Apache-2.0.

A workflow for creating polished A4 PDF briefs from HTML, such as company profiles, proposals, applications, and one-page documents. It renders the HTML with headless Chrome and checks the result for layout problems.

In plain words
What is it for?
Turning an HTML document into a printable brief, proposal, application, product sheet, or one-pager, with controlled branding and page layout.
Why use it?
It reduces common PDF production errors such as clipped footers, page overflow, and outdated cached renders. The template keeps page layout and brand settings consistent.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the brief-pdf plugin — 1 skill shipped together

Good fit Turning an HTML document into a printable brief, proposal, application, product sheet, or one-pager, with controlled branding and page layout.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sunflowerslwtech/sunkit/brief-pdf
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 SunflowersLwtech/sunkit --skill brief-pdf
Clone the repo
git clone --depth 1 https://github.com/SunflowersLwtech/sunkit

Made for: Claude Code.

Or install brief-pdf, the plugin that ships this one along with the rest of its 1 skill.

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 brief-pdf

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/sunflowerslwtech/sunkit/brief-pdf"><img src="https://agentmods.dev/badge/skills/sunflowerslwtech/sunkit/brief-pdf.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 122 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,117 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.00122 $0.01117
Opus 5.5 $0.00049 $0.00447
Sonnet 5.5 $0.00024 $0.00223
Haiku 4.5 $0.00012 $0.00112

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

Security

Grade A, and why

brief-pdf 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 19d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/build.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

plugins/brief-pdf/skills/brief-pdf/SKILL.md · 73 lines

How it starts

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

brief-pdf — A4 brief from HTML, proven not to clip

A house style for one-page-per-topic briefs: white header, ruled fact rows, one idea per page, everything a reviewer can check. The template and the build script enforce the two things hand-built PDFs get wrong — a footer silently clipped by page overflow, and a stale cached render.

What's here

Thing Path
Skeleton with every block type assets/template.src.html
Build + proof bash scripts/build.sh <X.src.html> [out.pdf]
Block vocabulary and per-page capacity references/blocks.md — read when composing a page you have not built before

Configuration (do this once per brand)

Everything brand-specific is a token in the template's <head>:

  • Palette — the :root block (--brand-*, --page-ground, --note-accent, …). Change these; do not restyle individual rules, the layout math below assumes the current type sizes and spacing.
  • Brand name + logo — the <b> wordmark wherever the header/footer/cover print it. The .ring logo is pure CSS; swap <span class="ring"></span> for a small <img> if you have a mark (keep it ~3.4 mm so the header height does not move).
  • Footer entity line and contact line — placeholders in the template footer (Reg. No. …) and the cover/contact band; put your real registration text and contact details there once.

Workflow

  1. Source of truth is <Name>.src.html, never the PDF. New brief: copy assets/template.src.html (or, for a second brief in the same style, the <head> of the nearest existing brief verbatim — the head is the style; do not restyle). Name it <Topic>_Brief.src.html next to where the PDF will live.
  2. Every fact traceable. Entity/registration/domains from your own records, stack facts from the repo or docs, dates from git log. Mark each claim running or planned — the "stated honestly" framing survives review, and a reviewer can check the running ones. Prices/quotas carry a month. Before printing a contact name or email, check whose it actually is.
  3. Build with the script, not with Chrome by hand. Two failures make a hand-run Chrome print a wrong PDF that looks right. Each .page is a fixed 297 mm flex column with overflow:hidden, so too much content pushes the footer off the page while the PDF still renders with the right page count and reads fine at a glance; the script measures every page and refuses to write on overflow (fix by trimming words or dropping a row, never by shrinking type). And Chrome caches file:// URLs, so re-rendering the same path after an edit can print the previous draft — exit 0, a fresh file, last draft's words. The script renders every pass through a URL that has never been fetched, so the page it measured and the page it printed are the same bytes.
  4. Look at every preview PNG the script prints. What the probe cannot see: an h1 wrapping to three lines, a long ID or URL breaking mid-token, a row with one orphan word. Then read the PDF back with pdftotext -layout once — the last line of each page should be its footer.
  5. Decide delivery before writing "see attached". Application forms often have no upload field — know where the PDF will actually go before you reference it. Hosting the PDF on a public site is a deploy and outward-facing — the owner decides. If it goes out by email, use your own mail tooling and write the letter — a brief arriving with no covering text is half a delivery, and mail automation has reported sent on exactly that. Verify by reading the sent copy back (body length, attachment name + byte count), never by trusting the sent line.

Read the full file on GitHub · 73 lines

Files

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.

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. 19d ago First seen · 73 lines · 122 tokens per session scan A be6232c2f2be

Subscribe to this mod's changes

brief-pdf is a skill published in the GitHub repository SunflowersLwtech/sunkit (15 stars, last pushed yesterday), licensed Apache-2.0. It adds 122 tokens to every session and 1,117 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-11-12.

Related

brief-pdf compared with skills from other repositories

brief-pdf next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
brief-pdfSunflowersLwtech/sunkitSkill15yesterdayApache-2.0A122Claude Code
pdf-document-generation-expertroedyrustam/vibes-plugSkill1304d agoMITA35Cursor
alterlab-markitdownAlterLab-IEU/AlterLab-Academic-SkillsSkill8620d agoMITA204Claude Code
alterlab-open-notebookAlterLab-IEU/AlterLab-Academic-SkillsSkill8620d agoMITA196Claude Code
alterlab-treatment-plansAlterLab-IEU/AlterLab-Academic-SkillsSkill8620d agoMITA107Claude Code
doc-convertzwolf25/tokenminningSkill36yesterdayMITA175Claude Code, Codex
alterlab-pdf-exploreAlterLab-IEU/AlterLab-Academic-SkillsSkill8620d agoMITA150Claude Code