Agent skill
aippt
AIPPT - 基于模板定制化生成 PPT。垫图约束风格 → 提示词替换内容 → AI 生图 → 打包 PPTX。
Install this agent skill to your Project
npx add-skill https://github.com/aiskillstore/marketplace/tree/main/skills/ceeon/aippt
SKILL.md
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 # 打包脚本
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
perigon-backend
Perigon ASP.NET Core + EF Core + Aspire conventions
perigon-agent
Pointers for Copilot/agents to apply Perigon conventions
perigon-angular
Angular 21+ standalone/Material/signal conventions for Perigon WebApp
fastapi-mastery
Comprehensive FastAPI development skill covering REST API creation, routing, request/response handling, validation, authentication, database integration, middleware, and deployment. Use when working with FastAPI projects, building APIs, implementing CRUD operations, setting up authentication/authorization, integrating databases (SQL/NoSQL), adding middleware, handling WebSockets, or deploying FastAPI applications. Triggered by requests involving .py files with FastAPI code, API endpoint creation, Pydantic models, or FastAPI-specific features.
context7-efficient
Token-efficient library documentation fetcher using Context7 MCP with 86.8% token savings through intelligent shell pipeline filtering. Fetches code examples, API references, and best practices for JavaScript, Python, Go, Rust, and other libraries. Use when users ask about library documentation, need code examples, want API usage patterns, are learning a new framework, need syntax reference, or troubleshooting with library-specific information. Triggers include questions like "Show me React hooks", "How do I use Prisma", "What's the Next.js routing syntax", or any request for library/framework documentation.
browser-use
Browser automation using Playwright MCP. Navigate websites, fill forms, click elements, take screenshots, and extract data. Use when tasks require web browsing, form submission, web scraping, UI testing, or any browser interaction.
Didn't find tool you were looking for?