/brief-pdf:brief-pdffrom brief-pdf
Builds polished A4 brief PDFs (company/product briefs, proposals, one-pagers) from HTML via headless Chrome. Measures every page for overflow to prevent clipped content.
Ships in brief-pdf. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
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.
| 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 |
Everything brand-specific is a token in the template's <head>:
: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.<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).Reg. No. …) and the cover/contact band; put your real registration text and
contact details there once.<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.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..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.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.sent on exactly that. Verify by reading the sent copy back (body length,
attachment name + byte count), never by trusting the sent line.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub sunflowerslwtech/sunkit --plugin brief-pdfOther plugins' skills for the same job