Documents

PPT Generator

Try it

Generate editable PowerPoint decks from a JSON description with 11 slide layouts and 5 color themes.

What it does

Define slides, charts, tables, and timelines in a JSON file and run one CLI command to produce a standard .pptx. The generator ships with 11 slide types (cover, section, agenda, content, two_column, table, chart, timeline, quote, image, summary, contact) and 5 color schemes (business_blue, academic_white, creative_purple, tech_dark, minimal_gray). Features include auto page numbers, footers, gradient backgrounds, multi-level lists, a 10-role color palette, and per-slide error skipping so a single bad slide does not abort the deck.

When to use it

  • Building a business report deck from structured JSON data
  • Producing recurring status decks from a reusable JSON template
  • Creating academic or technical talks with charts and timelines
  • Turning a script's structured output into a shareable PPTX

The skill document

PPT Generator

专业 PPT 生成器。通过 JSON 描述生成标准、可编辑的 PowerPoint 演示文稿。

用法

python3 scripts/generate_pptx.py slides.json --out output.pptx

JSON 结构

{
  "style": "business_blue",
  "footer": "机密",
  "page_numbers": true,
  "output": "report.pptx",
  "slides": [
    {"type": "cover", "title": "标题", "subtitle": "副标题", "variant": "centered"},
    {"type": "section", "title": "第一部分"},
    {"type": "agenda", "title": "目录", "topics": ["主题1", "主题2"], "highlight": 0},
    {"type": "content", "title": "内容页", "items": ["要点1", "要点2"], "columns": 1},
    {"type": "two_column", "title": "双栏", "left": ["左栏"], "right": ["右栏"]},
    {"type": "table", "title": "表格", "headers": ["A","B"], "rows": [[1,2]]},
    {"type": "chart", "title": "图表", "chart_type": "bar|line|pie",
     "categories": ["Q1","Q2"], "series": [{"name":"S1","values":[10,20]}]},
    {"type": "timeline", "title": "时间线",
     "milestones": [{"label":"阶段1","desc":"描述"}]},
    {"type": "quote", "title": "", "quote": "内容", "attribution": "作者"},
    {"type": "image", "title": "图片", "image_path": "img.png", "overlay": false},
    {"type": "summary", "title": "总结", "points": ["要点"], "conclusion": "结论"},
    {"type": "contact", "title": "联系我们", "info": "邮箱/电话"}
  ]
}

幻灯片类型(11 种)

类型功能
cover封面,3 种变体:centered / left / split
section过渡页/章节分隔
agenda目录页,支持高亮当前章节
content内容页,支持单栏/双栏、多级列表
two_column双栏对比
table表格(隔行变色)
chart图表(柱状/折线/饼图)
timeline时间线/里程碑
quote引用/强调
image图片页,支持普通/全屏叠加两种模式
summary总结页,底部结论框
contact结尾/联系信息页

配色方案(5 套)

风格适用场景
business_blue商业汇报,专业稳重
academic_white学术论文,简洁规范
creative_purple创意展示,时尚活力
tech_dark技术分享,现代高端
minimal_gray通用场景,简约百搭

能力变更(v2.0.0)

  • 修复: 副标题与标题共用 textbox 导致重叠
  • 修复: layout 参数声明但未使用
  • 修复: 图片幻灯片不检查文件是否存在
  • 修复: 标题栏硬编码 10 英寸宽度
  • 新增: 11 种幻灯片类型(原 7 种 → 11 种)
  • 新增: 分页目录页(agenda)
  • 新增: 封面 3 种变体(居中/居左/分割)
  • 新增: 图表支持(柱状图/折线图/饼图)
  • 新增: 时间线/里程碑
  • 新增: 引用/强调页
  • 新增: 结尾/联系信息页
  • 新增: 自动页码 + 页脚
  • 新增: 渐变色背景
  • 新增: 多级列表支持
  • 新增: 10 色完整调色板(原 5 色 → 10 色角色)
  • 新增: JSON 驱动生成管线
  • 新增: 错误跳过 + 逐页报告

Questions people ask

What input format does it expect?
A single JSON file that describes each slide's type, content, and optional style. Run `python3 scripts/generate_pptx.py slides.json --out output.pptx` to produce the file.
Are the generated PPTX files editable?
Yes. The output is a standard .pptx that opens in PowerPoint and other editors; each slide uses a normal layout rather than flattened images.
Can it render charts and tables?
Yes. The chart slide type supports bar, line, and pie charts driven by categories and series; the table slide type renders alternating row colors.

Related skills

Generate and edit Draw.io, Mermaid, and Excalidraw diagrams from natural language using a structured JSON spec.

by nssa.io1.0k installs47 stars

Find why your productivity system keeps failing, then apply the smallest fix — capacity math, bottleneck routing, durable local notes.

by Iván855 installs69 stars

Join a video meeting as an AI bot with voice, avatar, and screenshare across four operating modes.

by johnpatternai22 installs8 stars

Stores durable facts in a categorized, plain-markdown vault on disk, alongside your agent's built-in memory.

by Iván559 installs18 stars

Fetch raw ad creative, app, ranking, and revenue data from AdMapix as structured JSON.

by fly0pants4.3k installs296 stars

More from ToBeWin

Browse all skills

Translate Word, PDF, Excel, PowerPoint, HTML, Markdown, and TXT files into another language while preserving the original layout.

by tobewin36 installs1 stars

Professional Excel spreadsheet generator. Use when user needs to create data tables, reports, charts, financial models, or any structured data in Excel forma...

by ToBeWin82 installs3 stars

中国新闻资讯聚合工具。Use when user wants to get latest news from Chinese sources. Supports multiple news sites (Sina, Sohu, NetEase, Tencent) via browser automation an...

by ToBeWin57 installs3 stars

Data analysis tool for Excel, CSV, Word, PDF, TXT, Markdown files. Use when user needs to analyze, summarize, or compare data from multiple files. Supports f...

by ToBeWin68 installs1 stars

Marketing plan generator with web research and Word output. Use when user needs to create marketing plans, promotional campaigns, social media strategies. Fe...

by ToBeWin31 installs1 stars

Data visualization chart generator. Use when user needs to create charts from data for reports, presentations, or documents. Supports bar, line, pie, scatter...

by tobewin43 installs1 stars