design-blog-hero
Generate a blog post hero artifact — TWO pixel-exact HTML canvases in a single file: an Open Graph card (1200×630) for social meta tags AND an in-page hero…
Exports document-flow HTML to a PAGINATED PDF at a real paper size (Letter/A4), with a running folio footer (title · page X / Y). The long-form sibling to pdf-html: where pdf-html renders each .canvas to one tall auto-height page (right for social artifacts and audit reports),
$ npx -y skills add slogsdon/skills-design --skill pdf-paginated --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/pdf-paginatedContext preview
The summary Claude sees to decide when to auto-load this skill.
Exports document-flow HTML to a PAGINATED PDF at a real paper size (Letter/A4), with a running folio footer (title · page X / Y). The long-form sibling to pdf-html: where pdf-html renders each .canvas to one tall auto-height page (right for social artifacts and audit reports),
name: pdf-paginated description: > Exports document-flow HTML to a PAGINATED PDF at a real paper size (Letter/A4), with a running folio footer (title · page X / Y). The long-form sibling to pdf-html: where pdf-html renders each .canvas to one tall auto-height page (right for social artifacts and audit reports), this paginates a whole document across pages — right for essays, field guides, specs, and anything meant to be read or printed as pages. Trigger on: "paginated PDF", "print PDF", "PDF with pages", "Letter/A4 PDF", "multi-page PDF", "PDF of this essay/guide/doc". For single-canvas design artifacts (LinkedIn, Instagram, business card, audit report), use pdf-html or screenshot-html instead.
Paginated document PDF via headless Chromium `page.pdf({format, margin})`. No `.canvas` targeting — the whole document flows across paper pages. A folio footer (title left, `page X / Y` right, JetBrains Mono) is rendered in the bottom margin.
spec, a report body, a letter.
single tall canvas.
Skip if:
hero, audit-report canvas). Use `pdf-html` — it sizes the PDF to the canvas.
Plain document-flow HTML, NOT the `.canvas` convention:
put the page surface color on `body` (it prints because `printBackground` is on).
margins via `--format` / `--margin`. A CSS `@page` margin would double up.
`h2, li { break-inside: avoid; }` and `h2 { break-after: avoid; }`.
load fine (the script waits for `document.fonts.ready`).
node skills/pdf-paginated/scripts/pdf-paginated.mjs <dir> [--output <dir>] [--format Letter|A4] [--margin <css>] [--bleed <color>] [--no-footer]
Flags:
`screenshots/`, `pdfs/`, and hidden dirs are skipped.
Default mode gives white paper margins. If the document has a **committed background color** (e.g. a cream editorial page), that background floats as a card on white — the margins show through. `--bleed <color>` fixes this: it zeroes the left/right margins so the HTML background reaches the side edges, and paints the top and bottom margin strips `<color>` so every page is that color edge-to-edge, with a per-page inset and no white bands. The folio still renders in the bottom strip.
In bleed mode the HTML owns **only its side text insets** (via `body` padding); the top/bottom insets are the painted strips. So the HTML should:
# cream editorial essay, full-bleed node skills/pdf-paginated/scripts/pdf-paginated.mjs . --output ./pdfs --bleed '#fbfaf9'
**None — self-bootstraps on first run**, installing Playwright + Chromium into its own `node_modules` next to the script (shared pattern with `pdf-html` / `screenshot-html`). First run ~10–60s; subsequent runs are fast.
| | pdf-html | pdf-paginated | |---|---|---| | Output | one auto-height page per `.canvas` | document paginated across paper pages | | Sizes to | canvas pixel dimensions | Letter / A4 + margins | | Footer | none | folio (title · page X / Y) | | Use for | social artifacts, audit-report canvases | essays, field guides, specs, reports |
Brand-agnostic design system and artifact generators for Claude Code, plus a figure-worth audit and PDF and HTML-to-PNG export utilities. 19 skills total. Install via the slogsdon-claude-code-config marketplace.
Repo: slogsdon/skills-design
Generate a blog post hero artifact — TWO pixel-exact HTML canvases in a single file: an Open Graph card (1200×630) for social meta tags AND an in-page hero…
Generate a printable business card — pixel-exact 1050×600 front canvas + 1050×600 back canvas in a single HTML file. Standard 3.5×2 inch card at 300dpi. Front…
Generate a LinkedIn / Instagram multi-slide carousel — single HTML file with N square 1080×1080 .canvas divs, each representing one slide. Default N=5 (cover +…
Generate an Instagram post artifact — pixel-exact HTML canvas at 1080×1350 (portrait, default — Instagram's max-real-estate format) with opt-in 1080×1080…
Generate a deliverable landing-page HTML file (NOT a screenshot artifact). 1440px design width, mobile-responsive (CSS-only, no JS). Sections: hero…
Generate a minimal single-column standalone HTML page — mobile-first at 375px width — for use as a link-in-bio destination. Contains: name/wordmark, short…