首页 / Skills / 办公与文档 / PPT 演示文稿生成 PowerPoint Deck Builder
办公与文档

PPT 演示文稿生成 PowerPoint Deck Builder

AIBarsMITSkill 语言: 英文
协议已核对不含脚本中风险
演示真实运行记录 · claude-sonnet-5-5 · 2026年10月
Create a 5-slide PowerPoint called q3-update.pptx for a fictional company's quarterly update to its team, 16:9: a title slide, a slide with three bullet points, a slide with a small table of 3 regions and their sample sales, a slide with a column chart of the same numbers, and a closing slide. Add speaker notes to the bullet slide. Mark all numbers as sample. Then re-open the file and tell me what you verified.
Skill: powerpoint-deck-builder

I built the 5-slide deck and re-opened it to check it. Appearance is unchecked, because there's no renderer here (LibreOffice isn't installed) and python-pptx can't draw slides. I haven't seen how the slides look, including whether any text overflows, so open it once in PowerPoint or Keynote.

File: q3-update.pptx in the working folder. The build script is build_deck.py, and the re-open check is verify_deck.py.

# Layout Title
1 Title Slide Q3 Update
2 Title and Content Q3 in three points
3 Title Only Q3 sales by region (sample data)
4 Title Only Q3 sales by region – chart (sample data)
5 Title Slide Thank you

What I verified after re-opening:

  • Slide count and size: There are 5 slides at 16:9 (13.333 × 7.5 in, ratio 1.778).
  • Titles: Each slide's title matches the list above.
  • Bullets: Slide 2 has exactly 3 bullets.
  • Speaker notes: Slide 2 has notes, and no other slide does.
  • Table: Slide 3 is a native 4×2 table with a header row. It holds North 120, South 95 and West 140, in $K.
  • Chart: Slide 4 is a native clustered column chart with one series, "Sales ($K, sample)", and the same three values as the table.
  • Sample labels: "Sample" appears on the title slide, in each bullet, in the table header, in both slide titles, in the chart title and series name, in the notes, and on the closing slide.

Assumptions to confirm:

  • The company name "Acme Co." and the numbers are made up, as you asked.
  • The bullet wording ("West led", "Q4 focus: lift South") is mine, chosen to match the sample numbers.
  • The deck uses python-pptx's default theme, which is plain white.

Test run: a five-slide sample deck built with python-pptx in a temporary folder, allowed to write files and run python3 only. I re-opened the file myself: 5 slides at 16:9, a native table, a native chart and notes on slide 2. LibreOffice was not installed, so appearance and text overflow were not checked. All content and numbers are sample.

它做什么

编写并运行一个 Python 脚本来创建或修改演示文稿,让它能在 PowerPoint 里正常打开。它填写模板自带的版式和占位符,所以主题得以保留,之后可以在幻灯片母版里统一改样式;每张幻灯片只讲一件事,标题简短、要点不多,细节放进演讲者备注。它会添加原生表格、根据你提供的数据生成原生图表,以及你提供的图片文件。修改已有演示文稿时,先输出幻灯片和形状的大纲,只改你要求的部分,逐段替换文字以保留格式,并另存为新文件名。它也能提取文字、表格、图表系列和备注。保存后它会重新打开文件,报告幻灯片数量、标题、备注以及表格和图表的内容,并明确说明外观、动画和 SmartArt 不在检查范围内。

输出

.pptx 文件、脚本、幻灯片清单、核对报告,以及需要你确认的占位内容。

适合什么场景

把提纲或数据变成演示文稿草稿,更新模板里的文字,或把已有演示文稿的内容提取出来。

说明与风险

中风险:纯指令文件,自身没有脚本,但它会编写并运行 Python,在你的工作目录里创建文件,也可能建议在虚拟环境里安装 python-pptx。它不会覆盖你的原文件,不创建宏,也不获取远程媒体。已在临时目录用示例数字试用一次:生成了含表格、图表和备注的五页演示文稿,并由我重新打开确认;因为没装 LibreOffice,外观和文字是否溢出没有检查。演示前请在 PowerPoint 里看一遍。AIBars 原创(MIT)。

SKILL.md 原文包内共 2 个文件