html-slides

html-slides is a skill for Claude Code, Codex from phanghonghao/THU-Awesome-Skills. It costs 54 tokens per session (2,457 once invoked), scanned A, original, MIT.

A tool that turns a Markdown file into a self-contained 16:9 HTML slide presentation and then exports it as a PDF.

In plain words
What is it for?
Use it to create HTML and PDF presentations from Markdown, including titles, sections, text blocks, tables, and images.
Why use it?
It gives notes or reports a fixed presentation layout without requiring a separate slide application, while keeping the Markdown file as the source.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create HTML and PDF presentations from Markdown, including titles, sections, text blocks, tables, and images.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/phanghonghao/thu-awesome-skills/html-slides
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 phanghonghao/THU-Awesome-Skills --skill html-slides
Clone the repo
git clone --depth 1 https://github.com/phanghonghao/THU-Awesome-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 html-slides

README.md
[![agentmods](https://agentmods.dev/badge/skills/phanghonghao/thu-awesome-skills/html-slides/github.svg)](https://agentmods.dev/skills/phanghonghao/thu-awesome-skills/html-slides)
Your own site
<a href="https://agentmods.dev/skills/phanghonghao/thu-awesome-skills/html-slides"><img src="https://agentmods.dev/badge/skills/phanghonghao/thu-awesome-skills/html-slides/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 html-slides

Your own site · 80×15
<a href="https://agentmods.dev/skills/phanghonghao/thu-awesome-skills/html-slides"><img src="https://agentmods.dev/badge/skills/phanghonghao/thu-awesome-skills/html-slides.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,457 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.00054 $0.02457
Opus 5 $0.00027 $0.01229
Sonnet 5 $0.00011 $0.00491
Haiku 4.5 $0.00005 $0.00246

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

Security

Grade A, and why

html-slides 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 10d ago.

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/html-slides/SKILL.md · 158 lines

How it starts

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

html-slides

Markdown 源文件 转为 16:9 HTML 演示文稿,再用浏览器导出 PDF。输出单个自包含 .html + .pdf,采用 Beamer 式简洁排版骨架(标题栏 + 细分隔线 + 圆角块 + 无页脚导航),保留清华紫配色。

流程固定为:.md.html.pdf.md 是唯一源,不可省。

When to Use

User mentions: html-slides, html ppt, HTML 演示文稿, HTML 幻灯片, 生成 PPT, 生成幻灯片, md 转 ppt, markdown 幻灯片, slide, slides, 演示文稿, presentation, 或要把笔记/报告 .md 转成可视化幻灯片。

Core Principles

  1. .md 是唯一源,不可省 — 必须先有一个 .md(用户提供路径或内容)。无 .md要求用户提供,不要凭空生成。重新运行即反映对 .md 的编辑。
  2. 排版骨架 = Beamer 式简洁 — 每页由固定要素构成:粗体紫标题栏(左对齐)+ 其下全宽紫色细分隔线 + 圆角浅紫块 + 无页脚无导航 + 大留白。这是向 latex-beamer 靠拢的核心。
  3. 读模板 + 填充生成,不从零手写 HTML — 必须读取 templates/default.template,只替换 {{TITLE}} / {{SLIDES}} 两个占位符。
  4. 配色保留清华紫 — 默认 --accent #660874 / --accent-strong #9B30FF(分隔线) / --block-bg #F9F5FC。用户可改 accent(「蓝色」/ #3366CC 等):只改 :root 里几个 CSS 变量,骨架不动
  5. 浅底强制 — 所有页用浅/白底(#FEFEFF#F9F5FC),永不深色。
  6. 16:9.slide 固定 1280px × 720px
  7. 字号下限 ≥ 20px — 标题 28–36px,正文 20–24px,封面标题 56–68px。
  8. 最多 10 页 — 内容密则多块分栏,不要塞爆。
  9. 自包含 HTML — CSS/JS 全内联,除 Noto Sans SC 字体 CDN 外无外部依赖。

.md → 幻灯片 映射规则

对齐 latex-beamer 的标题层级语义(#→section##→frametitle###→textbf),落到 HTML:

Markdown 幻灯片
文档首个 # 标题 封面页cover-title + 副标题(标题下首个段落)+ tags/团队
## 二级标题 一页frametitle = 该 ## 文本,正文取到下一个 ## 为止
### 三级标题 当前页内一个圆角块.block),.block-title = 该 ### 文本
---(水平线) 强制分页(新 .slide
**粗体** <strong>(紫色强调)
- 列表 / 1. 有序 块内 <ul> / <ol>
` 表格
![alt](path) <img>(split 布局放 .media,否则入块)
`代码` / 代码块 块内 <code> / <pre>
$…$ 行内公式 保留文本(PDF 由浏览器渲染,简单符号 OK;复杂公式建议截图)

单个 ## 章节内容过多(超 720px)→ 拆成多页(用 --- 或自然断点),不要缩到看不清

Layout 原型(均用 Beamer 骨架元素构建)

  • Cover.slide-cover:浅紫渐变底 + 大标题 + 副标题 + tag 胶囊。
  • Standard.titlebar > .frametitle + .divider + 若干 .block / .columns
  • Split(图+文)— .slide-split:左 .media(460px 图,object-fit cover)+ 右标题栏+块。
  • Step/Grid.grid 4 列:每个 .step .block 顶部紫色条,用于时间线/路线图。
  • Conclusion — Standard + 底部 .conclude 渐变紫横幅。

Read the full file on GitHub · 158 lines

Files

What ships with it

1 file 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. 10d ago First seen · 158 lines · 54 tokens per session scan A aa836c3ce505

Subscribe to this mod's changes

html-slides is a skill published in the GitHub repository phanghonghao/THU-Awesome-Skills (8 stars, last pushed 1mo ago), licensed MIT. It adds 54 tokens to every session and 2,457 once invoked, about $0.0003 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

wowerpoint

Turn one document into a kawaii NotebookLM slide-deck PDF. Use for "wowerpoint this", "make a deck about ", "turn this report into slides", or any request to render a single document as shareable narrative slides.

thedotmack/claude-mem · 55 tokens

pptx-posters

Create research posters using HTML/CSS that can be exported to PDF or PPTX. Use this skill ONLY when the user explicitly requests PowerPoint/PPTX poster format. For standard research posters, use latex-posters instead. This skill provides modern web-based poster design with responsive layouts and easy visual…

foryourhealth111-pixel/Vibe-Skills · 66 tokens

slides

Create and edit presentation slide decks (.pptx) with PptxGenJS, bundled layout helpers, and render/validation utilities. Use when tasks involve building a new PowerPoint deck, recreating slides from screenshots/PDFs/reference decks, modifying slide content while preserving editable output, adding…

fcakyon/claude-codex-settings · 83 tokens

pptx

Create and validate Microsoft PowerPoint presentations (.pptx), including structured slide decks, tables, workflows, metadata, and reproducible generation scripts. Use for presentation, slides, PowerPoint, PPT, or PPTX creation and verification tasks.

agents-flex/agents-flex · 50 tokens

utility-slideshow-creator

Generates professional presentations from a JSON deck specification using 18 slide types with dark/light variants, content-to-layout decision logic, and calibrated character limits. Ships with a default professional theme.

product-on-purpose/pm-skills · 43 tokens

timecode-audio-edit-workflow

The patch comprehensively addresses all identified issues.

HKUDS/OpenSpace · 0 tokens