aippt
AIPPT - AI PPT 生成工作流
核心理念:用垫图约束风格,用提示词替换内容,AI 生成每一页。
什么时候用
- 有现成 PPT 模板,想快速生成新内容
- 需要批量生成多页 PPT
- 希望每页风格一致但内容不同
工作流程
导出图片 → 分析模板 → 内容分段 → 表达形式设计 → 内容映射 → 上传图床 → 调用API → 下载保存 → 打包PPTX
↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓
垫图 布局库 页面规划 最佳表达形式 提示词 URL 生成图片 PNG文件 .pptx
快速开始
Step 1: 准备垫图
读 01_导出方法.md — PPT 导出为图片
Step 2: 分析模板
读 02_PPT模板分析方法.md — 输出布局库
Step 3: 规划内容
读 03_内容分段方法.md — 确定每页放什么
Step 3.5: 表达形式设计(关键)
对每页内容问:最佳表达形式是什么?
- 模板有合适布局 → 用模板
- 模板没有 → 用创意页面(风格不变,表达自由)
详见 04_内容映射方法.md 的"表达形式设计"章节
Step 4: 映射+提示词
读 04_内容映射方法.md — 内容匹配布局,生成提示词
提示词规范见
02_PPT模板分析方法.md第六章
Step 5: 生成图片
上传垫图 → 调用 API → 下载保存
Step 6: 打包 PPT
node scripts/images2pptx.js <图片目录> output.pptx
文件索引
| 文件 | 地位 | 功能 |
|---|---|---|
01_导出方法.md |
阶段1 | PPT 导出为图片(垫图) |
02_PPT模板分析方法.md |
阶段2 | 分析模板,输出布局库 |
03_内容分段方法.md |
阶段3 | 内容拆分为页面 |
04_内容映射方法.md |
阶段4 | 内容匹配布局,生成提示词 |
05_图床上传方法.md |
工具 | 图床上传获取 URL |
config/secrets.md |
配置 | API Key |
scripts/images2pptx.js |
工具 | 图片打包成 PPTX |
API 调用
读取配置
从 config/secrets.md 获取 API Key
调用生图 API
curl -s -X POST "https://api.apicore.ai/v1/images/generations" \
-H "Authorization: Bearer API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "gemini-3-pro-image-preview-4k", "prompt": "提示词", "size": "16:9", "n": 1}'
模型选择
| 模型 | 说明 |
|---|---|
gemini-3-pro-image-preview |
标准版 |
gemini-3-pro-image-preview-2k |
2K 高清 |
gemini-3-pro-image-preview-4k |
4K 超清(默认) |
下载图片
curl -s -o "输出.png" "图片URL"
打包 PPTX
# 首次使用安装依赖
npm install pptxgenjs
# 打包
node scripts/images2pptx.js <图片目录> [输出文件名]
- 自动识别 jpg/png/gif/webp
- 按文件名数字排序
- 输出 16:9 比例
目录结构
AIPPT2/
├── SKILL.md # 入口(本文件)
├── README.md # 总览
├── 01_导出方法.md
├── 02_PPT模板分析方法.md
├── 03_内容分段方法.md
├── 04_内容映射方法.md
├── 05_图床上传方法.md
├── config/
│ └── secrets.md # API Key
└── scripts/
└── images2pptx.js # 打包脚本
More from aiskillstore/marketplace
skill-creator
Guide for creating effective skills. This skill should be used when users want to create a new skill (or update an existing skill) that extends Codex's capabilities with specialized knowledge, workflows, or tool integrations.
502xlsx
Comprehensive spreadsheet creation, editing, and analysis with support for formulas, formatting, data analysis, and visualization. When Claude needs to work with spreadsheets (.xlsx, .xlsm, .csv, .tsv, etc) for: (1) Creating new spreadsheets with formulas and formatting, (2) Reading or analyzing data, (3) Modify existing spreadsheets while preserving formulas, (4) Data analysis and visualization in spreadsheets, or (5) Recalculating formulas
220frontend-design
Create distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
218pptx
Presentation creation, editing, and analysis. When Claude needs to work with presentations (.pptx files) for: (1) Creating new presentations, (2) Modifying or editing content, (3) Working with layouts, (4) Adding comments or speaker notes, or any other presentation tasks
209docx
Comprehensive document creation, editing, and analysis with support for tracked changes, comments, formatting preservation, and text extraction. When Claude needs to work with professional documents (.docx files) for: (1) Creating new documents, (2) Modifying or editing content, (3) Working with tracked changes, (4) Adding comments, or any other document tasks
202skill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill content", or needs guidance on skill structure, progressive disclosure, or skill development best practices for Claude Code plugins.
183