mcpField
P
pptx-creator

pptx-creator

github.com/pedronauck文档处理644226 次安装1 周前更新
代码仓库

关于 pptx-creator

pptx-creator 是一项从大纲、主题或结构化数据创建 PowerPoint 演示文稿的技能。它支持内置与自定义模板、图表、表格、版式及图像生成指令。

主要功能

  1. 01从大纲、主题或 JSON 创建演示文稿
  2. 02选择内置样式模板
  3. 03保存并分析自定义模板
  4. 04创建图表与表格幻灯片
  5. 05指定版式和生成图像

适用场景

  1. 01将 Markdown 大纲转为演示文稿
  2. 02根据主题制作融资演示文稿
  3. 03用 CSV 或内联数据创建幻灯片
  4. 04复用现有 PowerPoint 模板

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/pedronauck/skills --skill pptx-creator

安装后在 Claude Code 中输入/pptx-creator确认已加载。

包含的文件

除 SKILL.md 外,安装时一起下载的参考资料和脚本。

_meta.json
references/
outline-format.md
scripts/
analyze_template.py
create_pptx.py
create_template.py
use_template.py
templates/
templates.json

详细介绍

PowerPoint 制作工具

根据大纲、主题或数据源创建专业演示文稿。

快速开始

根据大纲/Markdown 创建
uv run {baseDir}/scripts/create_pptx.py --outline outline.md --output deck.pptx
根据主题创建
uv run {baseDir}/scripts/create_pptx.py --topic "Q4 Sales Review" --slides 8 --output review.pptx
使用样式模板
uv run {baseDir}/scripts/create_pptx.py --outline outline.md --template corporate --output deck.pptx
根据 JSON 结构创建
uv run {baseDir}/scripts/create_pptx.py --json slides.json --output deck.pptx

大纲格式(Markdown)

# Presentation Title
subtitle: Annual Review 2026
author: Your Name

## Introduction
- Welcome and agenda
- Key objectives for today
- ![image](generate: modern office building, minimalist style)

## Market Analysis
- chart: bar
- data: sales_by_region.csv
- Market grew 15% YoY
- Strong competitive position

## Financial Summary
- table: quarterly_results
- Strong Q4 performance
- Revenue targets exceeded

JSON 结构

{
  "title": "Quarterly Review",
  "subtitle": "Q4 Performance",
  "author": "Your Name",
  "template": "corporate",
  "slides": [
    {
      "title": "Introduction",
      "layout": "title_and_content",
      "bullets": ["Welcome", "Agenda", "Goals"],
      "notes": "Speaker notes here"
    },
    {
      "title": "Revenue Chart",
      "layout": "chart",
      "chart_type": "bar"
    },
    {
      "title": "Team",
      "layout": "image_and_text",
      "image": "generate: professional team collaboration, corporate style",
      "bullets": ["Leadership", "Sales", "Operations"]
    }
  ]
}

内置样式模板

  • minimal — 简洁白色、Helvetica Neue、蓝色点缀(默认)
  • corporate — 专业蓝色、Arial,适合商务场景
  • creative — 醒目的橙色点缀、Avenir,风格现代
  • dark — 深色背景、SF Pro、青色点缀
  • executive — 金色点缀、Georgia/Calibri,优雅精致
  • startup — 紫色点缀、Poppins/Inter,适合路演演示文稿
生成所有模板
uv run {baseDir}/scripts/create_template.py --all
列出模板
uv run {baseDir}/scripts/create_pptx.py --list-templates

自定义模板

将现有 PPTX 保存为模板
uv run {baseDir}/scripts/create_pptx.py --save-template "my-brand" --from existing.pptx
分析模板结构
uv run {baseDir}/scripts/analyze_template.py existing.pptx
uv run {baseDir}/scripts/analyze_template.py existing.pptx --json
使用自定义模板构建
uv run {baseDir}/scripts/use_template.py \
  --template my-brand \
  --slides content.json \
  --keep-slides 2 \
  --output presentation.pptx

数据源

CSV/Excel
## Regional Sales
- chart: pie
- data: sales.csv
- columns: region, revenue
内联数据
## Quarterly Comparison
- chart: bar
- data:
  - Q1: 120
  - Q2: 145  
  - Q3: 132
  - Q4: 178

图像生成

使用兼容的图像生成技能在文中生成图像:

## Our Vision
- ![hero](generate: futuristic cityscape, clean energy, optimistic)
- Building tomorrow's solutions

或通过 JSON 生成:

{
  "title": "Innovation",
  "image": {
    "generate": "abstract technology visualization, blue tones",
    "position": "right",
    "size": "half"
  }
}

布局

  • title — 标题页
  • title_and_content — 标题 + 项目符号列表(默认)
  • two_column — 并排内容
  • image_and_text — 图像和文本
  • chart — 整页图表
  • table — 数据表
  • section — 章节分隔页
  • blank — 用于自定义内容的空白幻灯片

图表类型

  • bar / bar_stacked
  • column / column_stacked
  • line / line_markers
  • pie / doughnut
  • area / area_stacked
  • scatter

示例

路演演示文稿
uv run {baseDir}/scripts/create_pptx.py \
  --topic "Series A pitch for tech startup" \
  --slides 10 \
  --template startup \
  --output pitch-deck.pptx
高管报告
uv run {baseDir}/scripts/create_pptx.py \
  --outline report.md \
  --template executive \
  --output board-report.pptx
营销演示文稿
uv run {baseDir}/scripts/create_pptx.py \
  --outline campaign.md \
  --template creative \
  --output marketing-deck.pptx

评论

支持 Markdown