HTML to PPTX

将 html-ppt 演示文稿一键转换为 PPTX。触发词:导出 PPTX、转成 PPT、HTML 变 PPTX、convert to pptx、导出给同事、PPTX 导出。当用户有一份 html-ppt 生成的 HTML 演示文稿(index.html),想要转换为 .pptx 格式时使用。也适用于用户说'把这个 HTML 发给同事'、'他们只接受 PPT'等场景。

11 stars 3 forksDocuments & Office Files

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add nlj626/html-to-pptx --skill html-to-pptx
Manual install
git clone --depth 1 https://github.com/nlj626/html-to-pptx.git /tmp/html-to-pptx
mkdir -p ~/.claude/skills
cp -r /tmp/html-to-pptx/. ~/.claude/skills/html-to-pptx

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# html-to-pptx — HTML 演示文稿转 PPTX

将 html-ppt 生成的 HTML 演示文稿一键转换为 .pptx 文件。

## Agent 使用指南

当用户说"导出 PPTX"、"转成 PPT"、"HTML 变 PPTX"或类似的话时:

1. **确认 HTML 文件路径** — 通常在 `~/.claude/skills/html-ppt/examples/<deck-name>/index.html`,或用户指定的路径
2. **运行转换命令**:
   ```bash
   bash ~/.claude/skills/html-to-pptx/scripts/html-to-pptx.sh <html文件路径>
   ```
3. **报告结果** — 告诉用户 PPTX 文件的路径和大小
4. **可选参数**:
   - `--ratio 4:3` — 指定宽高比(支持 16:9、4:3、3:4、1:1)
   - `-- --quality 80` — 指定 JPEG 质量(1-100,默认 92)
   - `-- --quality png` — 强制 PNG 格式(无损但文件较大)

## 工作原理

1. **headless Chrome 截图**:逐页将 HTML 渲染为 PNG 图片(支持 `#/N` 深度链接)
2. **pptxgenjs 组装**:将图片按顺序嵌入 PPTX,每张铺满整页

因为是截图方式,PPTX 会 **100% 还原 HTML 的视觉效果**,包括字体、颜色、布局、渐变等。

## 命令参考

```bash
# 自动检测页数
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 格式的同事/客户
Read the full skill on GitHub

Details

Skill name
html-to-pptx
License
MIT
Repo updated
18 April 2026

FAQ

What does the HTML to PPTX skill do?

将 html-ppt 演示文稿一键转换为 PPTX。触发词:导出 PPTX、转成 PPT、HTML 变 PPTX、convert to pptx、导出给同事、PPTX 导出。当用户有一份 html-ppt 生成的 HTML 演示文稿(index.html),想要转换为 .pptx 格式时使用。也适用于用户说'把这个 HTML 发给同事'、'他们只接受 PPT'等场景。

How do I install the HTML to PPTX skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add nlj626/html-to-pptx --skill html-to-pptx. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is HTML to PPTX popular?

It lives in nlj626/html-to-pptx, which has 11 GitHub stars and 3 forks.

Related skills

Paper Jiedu Latex

11

tianhanz/paper-jiedu-latex

把一篇论文做成 LaTeX 中文解读 PDF。本地 PDF / arXiv 取原文 → MinerU 全文解析 → 深读 → 填固化 LaTeX 模板(ctexart+fandol,含 keybox / 图块宏 / 我的评价结构)→ xelatex 出 PDF。硬规则:原文关键图必须嵌入,自画示意图只能补充不能替代。当用户要把某篇论文 / PDF 做成"解读 PDF / 论文解读 / LaTeX 解读",或要一份可打印分享的论文导读 PDF 时用。

Documents & Office Files

Resume Strategist

11

artbyjazi/resume-strategist

Act as a certified-level resume strategist for students and early-career candidates (0–5 years). Use this whenever someone shares a resume, a job posting, an internship/co-op/new-grad listing, or asks to tailor, rewrite, review, score, or "fix" a resume or cover letter — even if they just paste a job description and say "help me apply." Covers intake, a short strategy conversation, job-posting decoding, resume tailoring, cover letter writing, ATS/AI-detection checks, and a final quality gate. Evidence-based (recruiter eye-tracking, ATS recruiter interviews, 2025–26 hiring surveys). Works in an

Documents & Office Files

Gamma Watermark Remover

12

gammaremover/gamma-watermark-remover-skill

Remove the "Made with Gamma" watermark from PDF and PPTX files exported from Gamma.app. Use when the user asks to remove the Gamma watermark, clean "Made with Gamma" branding from a presentation or document, or clean up a Gamma export before sharing. Works on files the user created; structural and lossless.

Documents & Office Files

Manuweave

14

jiassia/manuweave

Format native academic Word and LaTeX manuscripts and Chinese official documents 公文排版, using explicit rules or reference documents; preserve native objects and check rendered pages.

Documents & Office Files

Modern Ppt

12

lainshao/modern-ppt

生成现代分享/投屏风格的单文件网页 PPT(横向翻页·专业极简风·干净排版·3 套可切配色)。当用户要做线下分享、演讲、发布会的网页 deck,或提到「modern ppt」「做个分享 PPT」「投屏 deck」「网页 PPT」「把这段做成 slides」时使用。内置 12 个版式 + 交互动效(count-up / Chart.js 图表) + 3 套配色(默认安全橙,可切明亮蓝/柔和粉)+ 一套排版硬规范(单一 body 字号 token、标题靠分隔线、正文不上色、底部安全区等),产出一致、可直接投屏放映。

Documents & Office Files

CV Review

14

karmenti/cv-review-skill

Review and give actionable feedback on CVs/resumes. Use whenever a user shares a CV, resume, or job application document and asks for feedback, review, suggestions, or help making it stronger, even if they don't explicitly ask for "review". Also triggers when users mention they're job hunting, applying to roles, want to improve their CV, ask "is this CV good?", attach a PDF/doc that looks like a resume, or paste resume content. Works in Estonian or English. Especially useful for //kood students, career-changers, and tech roles.

Documents & Office Files

Browse the most popular Claude skills, all documents & office files skills, or write your own with the skills generator.