Menu
将 deck_dir 中的 HTML 页面导出为可编辑的 PPTX 文件,使用 DOM 解析重建方式生成原生 PPTX 元素(文本框、图片、形状、表格等)。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Professional data visualization using Python (matplotlib, seaborn, plotly). Create publication-quality static charts, statistical visualizations, and interactive plots. Use when generating charts/graphs/plots from data, creating infographics with data components, or producing scientific/statistical visualizations. Supports PNG/SVG (static) and HTML (interactive) export.
Generate professional PDFs from Markdown, HTML, data, or code. Reports, invoices, contracts, and documents with best practices.
Generate, edit, and read PowerPoint presentations. Create from scratch with PptxGenJS (cover, TOC, content, section divider, summary slides), edit existing PPTX via XML workflows, or extract text with markitdown. Triggers: PPT, PPTX, PowerPoint, presentation, slide, deck, slides.
当 storyboard 中存在图片或视觉资产缺口,需要为页面或槽位生成可追踪的资产计划,并优先落地本地图片文件时使用。
当需要根据 style-spec、storyboard 和 asset-plan 逐页生成 1280×720 HTML 幻灯片时使用。
当 `ppt-task-pack` 判定存在内容缺口、`task-pack.json.research_required` 为真时使用;上传报告、事实数据案例和长文档只是 `ppt-task-pack` 计算 `research_required` 的信号,不是独立入口。
将已生成的 HTML slides 导出为可编辑的 .pptx 文件。
.pptx
deck_dir/pages/
page_*.html
${deck_dir}/<目录名>.pptx
review.md
review.json
data-layer
real-photo
deck_dir
pages/
--force
style-spec.json
storyboard.json
{ success, output, pages, converted, failed, fileSize }
导出前默认逐项确认;使用 --force 时,阻塞项会降级为警告:
npm install
npx playwright install chromium
data-layer="bg-motif"
data-layer="fg-motif"
data-motif-key
asset-plan.json
通过 bash_command 执行:
bash_command
node skills/ppt-export-pptx/html_to_pptx.mjs --deck-dir <deck_dir路径>
可选参数:
--output <文件名>
AI_产品发布会_20260318_154500.pptx
--output-dir <目录>
--pages-dir <目录>
--batch
http/https
deck_dir/images/
background-image: url(...)
#bg
::before
::after
mix-blend-mode
background-size
opacity < 1
脚本会自动尝试读取以下文件以增强输出质量(非必需):
slide 背景按以下优先级解析:
background-image
<img>
background-color
.wrapper
body
FFFFFF
#bg 的兄弟 overlay 元素(如 #bg-image、.bg-grid)通过 flattenIRToElements 独立处理,其 background-image: url(...) 会被提取为图片元素。
#bg-image
.bg-grid
flattenIRToElements
<deck_dir>/<目录名>.pptx
下一步