html2deck

html2deck is a skill for Claude Code, Codex from alexagriffith/agent-skills. It costs 79 tokens per session (2,859 once invoked), scanned A, original, MIT.

A tool that turns an HTML page into presentation slides in the 16:9 format. It measures the rendered page, splits content that does not fit, and produces slide images, a contact sheet, a PowerPoint file, and a PDF.

In plain words
What is it for?
Use it to convert benchmark walkthroughs, READMEs, and written explainers into measured slide decks with consistent title bars and safe content splitting.
Why use it?
It prevents overflowing slides and keeps text above its readability limits. It also moves extra prose into speaker notes when the slide face should stay visual.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/alexagriffith/agent-skills/html2deck
Any agent
npx skills add alexagriffith/agent-skills --skill html2deck
Clone the repo
git clone --depth 1 https://github.com/alexagriffith/agent-skills

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 html2deck

README.md
[![agentmods](https://agentmods.dev/badge/skills/alexagriffith/agent-skills/html2deck.svg)](https://agentmods.dev/skills/alexagriffith/agent-skills/html2deck)
Your own site
<a href="https://agentmods.dev/skills/alexagriffith/agent-skills/html2deck"><img src="https://agentmods.dev/badge/skills/alexagriffith/agent-skills/html2deck.svg" alt="Measured on agentmods" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,859 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00079 $0.02859
Opus 5 $0.00039 $0.01430
Sonnet 5 $0.00016 $0.00572
Haiku 4.5 $0.00008 $0.00286

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

Security

Grade A, and why

html2deck 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 5d ago.

The scan reads SKILL.md. This mod also ships 7 executable files (build.py, contact_sheet.py, grade_slides.py, …), 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.

skills/html2deck/SKILL.md · 244 lines

How it starts

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

html2deck

What it does

Given an HTML page, html2deck renders it in headless Chromium at exactly 1280x720 (16:9), walks the page's top-level "units" (each --unit-selector match), projects a slide face (visual-first; excess prose → speaker notes), and decides — per unit — whether it fits on one slide or must be split. It then writes one PNG per slide, a contact sheet for approval, and finally a .pptx and .pdf.

Fixed title bar (PowerPoint-master style)

The heading is pulled OUT of the flowing content into a pinned top zone — same Y and same font size on EVERY content slide, like a PowerPoint master. Only the content below it (figure / table / lead) is scaled to fit; the title never moves or resizes from slide to slide. On a split unit the N / M part label sits top-right of that title bar.

Fit equation (hard — never overflow):

[ s_{\mathrm{fit}}=\min!\Big(1,\ \tfrac{H_c}{h},\ \tfrac{W_c}{w}\Big),\quad s=\begin{cases} s_{\mathrm{fit}} & h>H_c\ \min(s_{\max},,0.72,H_c/h) & \text{visual, under-filled}\ 1 & \text{otherwise} \end{cases} ]

Readability floors (0.90 / 0.80) decide whether to split, never whether to spill. Content is clipped in #__fit under the title; the title zone is z-stacked with an opaque background so transforms cannot paint over it. Content stays top-aligned under the title.

Title page exception: the first unit's first slide uses a PowerPoint title layout — title + optional lead stacked and centered on the full canvas (no pinned title bar). Never a graphic, table, card, or figure on a title page. If the opener needs a visual, the title page stays text-only and the visual lands on the next slide (master title bar), or under the next section header. The same title-page layout may be reused as a section header before a graphic-heavy unit — title alone (or title + one lead), then the chart/table.

Layout contract: best-fit equation

The height budget alone prevents overflow. Composition fit prevents awkward slides (sparse, text-walled, or chart-crushed-by-prose).

Read the full file on GitHub · 244 lines

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. 5d ago First seen · 244 lines · 79 tokens per session scan A d69eb50af9b2

Subscribe to this mod's changes

html2deck is a skill published in the GitHub repository alexagriffith/agent-skills (2 stars, last pushed 1mo ago), licensed MIT. It adds 79 tokens to every session and 2,859 once invoked, about $0.0004 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-31.

Related

Other skills, from other repositories

orbit-notion

Open Orbit briefing skill — selected by the Orbit pipeline when Notion is the user's only connected connector, or when the user explicitly scopes their daily digest to Notion. Pulls the past 24 hours of document edits, comments, mentions, and database row changes from the user's authenticated Notion connection and…

nexu-io/open-design · 117 tokens

instrument-data-to-allotrope

Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full…

anthropics/knowledge-work-plugins · 123 tokens

baoyu-youtube-transcript

Downloads YouTube video transcripts/subtitles and cover images by URL or video ID. Supports multiple languages, translation, chapters, and speaker identification. Caches raw data for fast re-formatting. Use when user asks to "get YouTube transcript", "download subtitles", "get captions", "YouTube字幕", "YouTube封面"…

JimLiu/baoyu-skills · 107 tokens

feishu

Work with Feishu or Lark bots, docs, sheets, bitables, approval flows, and OpenAPI/MCP setup without hardcoding credentials.

Hmbown/CodeWhale · 33 tokens

gog-slides

Google Slides operations through gog.

openclaw/gogcli · 11 tokens

read

Reads URLs and PDFs by fetching source content, defaulting to concise summaries for plain read requests and clean Markdown when asked to convert, save, quote, cite, or feed downstream work. Use when users ask in any language to read, fetch, check, summarize, quote, cite, convert, or save a URL or PDF. Not for local…

tw93/Waza · 78 tokens