html-to-pptx
Skill8 starsChanged 7 months agoMITView on GitHub
将 html-ppt 演示文稿一键转换为 PPTX。触发词:导出 PPTX、转成 PPT、HTML 变 PPTX、convert to pptx、导出给同事、PPTX 导出。当用户有一份 html-ppt 生成的 HTML 演示文稿(index.html),想要转换为 .pptx 格式时使用。也适用于用户说'把这个 HTML 发给同事'、'他们只接受 PPT'等场景。
- Installs packages
7 other projects use a version of this.
Adopted by
Most recently taken up by
- wlehd00000-cell/document-studiotheir own version, first seen Nov 8, 2026
- kiakun-collab/kiakun-skillstheir own version, first seen Nov 1, 2026
- yejy53/Editable-Designtheir own version, first seen Oct 8, 2026
- yuna78/html-to-pptxtheir own version, first seen Sep 10, 2026
- Hasasasa/html-to-editable-pptxtheir own version, first seen Jul 7, 2026
- Ajarchua/html-to-pptxtheir own version, first seen Mar 29, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- yejy53/Editable-Design★ 1.2ksame name
- Hasasasa/html-to-editable-pptx★ 60same name
- wlehd00000-cell/document-studio★ 2same name
- Ajarchua/html-to-pptx★ 1same name
- Alienxcript/html-export-skills★ 1same name
- kiakun-collab/kiakun-skills★ 1same name
- yuna78/html-to-pptx★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
The file
Files
html-to-pptx — HTML 演示文稿转 PPTX
将 html-ppt 生成的 HTML 演示文稿一键转换为 .pptx 文件。
Agent 使用指南
当用户说"导出 PPTX"、"转成 PPT"、"HTML 变 PPTX"或类似的话时:
- 确认 HTML 文件路径 — 通常在
~/.claude/skills/html-ppt/examples/<deck-name>/index.html,或用户指定的路径 - 运行转换命令:
bash ~/.claude/skills/html-to-pptx/scripts/html-to-pptx.sh <html文件路径> - 报告结果 — 告诉用户 PPTX 文件的路径和大小
- 可选参数:
--ratio 4:3— 指定宽高比(支持 16:9、4:3、3:4、1:1)-- --quality 80— 指定 JPEG 质量(1-100,默认 92)-- --quality png— 强制 PNG 格式(无损但文件较大)
工作原理
- headless Chrome 截图:逐页将 HTML 渲染为 PNG 图片(支持
#/N深度链接) - pptxgenjs 组装:将图片按顺序嵌入 PPTX,每张铺满整页
因为是截图方式,PPTX 会 100% 还原 HTML 的视觉效果,包括字体、颜色、布局、渐变等。
命令参考
# 自动检测页数
bash scripts/html-to-pptx.sh /path/to/deck/index.html
# 指定页数
bash scripts/html-to-pptx.sh /path/to/deck/index.html 8
# 4:3 宽高比
bash scripts/html-to-pptx.sh /path/to/deck/index.html all --ratio 4:3
# 指定 JPEG 质量(更小文件)
bash scripts/html-to-pptx.sh /path/to/deck/index.html all -- --quality 80
# 无损 PNG 格式
bash scripts/html-to-pptx.sh /path/to/deck/index.html all -- --quality png输出文件与 HTML 同目录,文件名相同但扩展名为 .pptx。
依赖
- Google Chrome:macOS 默认路径
/Applications/Google Chrome.app - pptxgenjs:
npm install -g pptxgenjs
注意事项
- 输出的 PPTX 中每页是一张图片,不可编辑文字(但视觉效果完美还原)
- 如果需要可编辑文字的 PPTX,应使用 pptx skill 从头创建
- 适合场景:需要将 html-ppt 作品分享给只接受 PPTX 格式的同事/客户
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

