Index of every page on this site: llms.txt
All skills
aktsmm avatar

/html-pdf-slides

@9bedf91
by yamapanaktsmm/agent-skills27 stars
5
Run it yourself

Make good-looking slide-style PDFs fast with HTML + headless Chrome instead of PowerPoint: a ready 1280x720 template (Microsoft-style cover / content slide / ending), a render script that outputs PDF + per-page PNG and detects overflow, and design rules for dense one-page slides. Use when asked to quickly create a PDF slide deck, one-page explainers, customer handouts, or "PowerPoint-less" slides, or to bundle cards/info into a branded PDF. Not for editing existing .pptx files or template-based PPTX generation.

Use this Skill: https://skilld.dev/gh/aktsmm/agent-skills/html-pdf-slides

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈133 tokens for metadata: the name and description. ≈590 when used: this file. ≈426 more on demand in 1 file.

Description uses 6.7% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈534 characters, or 6.7%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

HTML → PDF Slides

Write each slide as HTML, render with Chrome. You get precise layout, selectable text, live links, and no PowerPoint automation. Pitfalls and merge/font details: Rendering Notes.

When to Use

  • 「PDF でスライドをさっと作りたい」「1 枚で完結する解説ページ」「顧客向けに綺麗な PDF」
  • 元データ(JSON など)から同じ見た目のページを大量に作りたい
  • PPTX の編集は不要で、配布物は PDF(+任意で PNG)でよい

Quick Start

  1. Copy assets/deck-template.html; keep one <section class="page"> per page (1280×720 px). Page kinds: cover, content (page slide), ending.
  2. Fill content. Content slides need data-key (for reports), a .ft footer, and use .card blocks so overflow can be measured.
  3. Render: node scripts/render-deck.mjs deck.html out (needs playwright-core + a Chrome/Edge; set CHROME_PATH if not auto-found). Output: out/<name>.pdf, out/<name>-pN.png, out/<name>-report.json. Exit code 1 = a slide overflows.
  4. Look at the PNGs (cover, a dense slide, ending) before reporting done.

Design Rules

  • One slide = one question and one takeaway; title states the claim, a one-line subtitle supports it.
  • Fixed 3-box info strip under the title for explainers: 誰に関係するか (bold the target) / 嬉しい点 / 対応の要否.
  • Fill the page with useful content in cards (what changes, how it works, limits, glossary); avoid empty bands. Keep body ≥ 12.5 px, preferably 14–16 px; when it does not fit, cut wording or split to a continuation page rather than shrinking further.
  • Palette: white field, brand blue accents, navy footer band; one accent colour per meaning (green good, red caution). Do not make every card equally loud.
  • Visible text is final copy: no internal-memo wording (未確認 / 記載なし / 要確認 / 推定). Confirmed → write; unconfirmable → omit.
  • Put IDs, categories and links in the footer; per-page creation dates and credits only on cover/ending.
  • Every link https://, escaped; cite official sources for facts.

Done Criteria

  • Render exits 0 with zero overflow, PNGs inspected, links clickable in the PDF, Japanese glyphs visible (view an image; text extraction alone can hide missing glyphs).

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No alerts12d3 checks · Risk SAFE
  • Gen Agent Trust Hub12d

    This skill provides a template and a Node.js script to generate PDF slide decks from HTML using the Playwright library. It involves running local scripts, installing external dependencies, and processing potentially untrusted HTML content.

  • Socket12d

    No alerts

  • Snyk12d

    Risk: LOW · No issues

Signed by skilld at 9bedf91. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 15 hours ago.

Activeupdated last month
argument-hint
スライドの目的・読者・枚数と、載せたい内容(または元データ)
user-invocable
true
metadata
{
  "author": "yamapan (https://github.com/aktsmm)"
}

README badge

README badge for aktsmm/agent-skills/html-pdf-slides