Generate new content based on PPT templates. Automatically convert PDFs to images → analyze template style → split article content → generate prompts → AI image generation → assemble into PPTX.
定位: 完全自动化 PPT 生成工作流 依赖: pw-image-generation skill 核心: 垫图约束风格 + 提示词替换内容 + AI 生图 + 打包 PPTX
mkdir my-ppt-project && cd my-ppt-project
mkdir -p template prompts images
方法 1: PDF 自动转换(推荐)
node ~/.claude/skills/pw-aippt/scripts/pdf-to-images.js template.pdf ./template 150
需要安装 poppler: brew install poppler
方法 2: PowerPoint/Keynote 导出
导出为 PNG 图片,保存到 template/ 目录。详见 references/01_导出方法.md
# 在 Claude Code 中执行
/pw-aippt https://example.com/article
# 或
/pw-aippt "文章内容..."
skill 会自动分析模板、拆解内容、生成提示词文件到 prompts/ 目录。
node ~/.claude/skills/pw-image-generation/scripts/generate-image.js
node ~/.claude/skills/pw-image-generation/scripts/merge-to-pptx.js ./images output.pptx
导出图片 → 风格提取 → 分析模板 → 内容分段 → 内容映射 → 生成提示词 → 生成图片 → 打包PPTX
↓ ↓ ↓ ↓ ↓ ↓ ↓ ↓
垫图 风格定义 布局库 页面规划 提示词文件 prompts/ PNG文件 .pptx
新增步骤说明:
## 提示词
参考这张 PPT 模板图片: {垫图URL}
生成新的内容页。
【风格约束】(严格遵守)
{从模板分析中提取的设计美学描述}
{从模板分析中提取的颜色表格}
{装饰元素列表}
【不可改区域】(严格保持原样)
【可改区域】
【生成指令】 保持专业风格,内容清晰易读。 absolutely no watermark, clean output only
详细示例见 references/05_提示词模板示例.md
风格库使用:
references/styles/ 目录选择预定义的风格模板系列图最常见的问题是风格不一致。必须保持一致的要素:
实现方法:
常见问题:
页面数量:
文件命名: 使用序号前缀,如 01_封面页.md, 02_目录页.md
| 文件 | 说明 |
|------|------|
| references/01_导出方法.md | PPT 导出为图片(垫图) |
| references/02_PPT模板分析方法.md | 分析模板,输出布局库和风格定义 |
| references/03_内容分段方法.md | 内容拆分为页面 |
| references/04_内容映射方法.md | 内容匹配布局,生成提示词 |
| references/05_提示词模板示例.md | 提示词格式示例(推荐) |
| references/styles/README.md | 风格库使用说明 |
| references/styles/corporate.md | 商务风格模板 |
| references/styles/minimal.md | 简约风格模板 |
| references/styles/technical.md | 技术风格模板 |
| references/styles/creative.md | 创意风格模板 |
**加粗** 等格式标记Google Workspace CLI for Gmail, Calendar, Drive, Contacts, Sheets, and Docs.
Manage Apple Notes via the `memo` CLI on macOS (create, view, edit, delete, search, move, and export notes). Use when a user asks OpenClaw to add a note, list notes, search notes, or manage note folders.
Work with Obsidian vaults (plain Markdown notes) and automate via obsidian-cli.
Use when you need to control Slack from OpenClaw via the slack tool, including reacting to messages or pinning/unpinning items in Slack channels or DMs.
Manage Apple Reminders via remindctl CLI (list, add, edit, complete, delete). Supports lists, date filters, and JSON/plain output.
Manage Trello boards, lists, and cards via the Trello REST API.
Category:productivity