1---2name: ppt-generator3description: 生成专业 PPT 演示文稿,支持 22 种风格,自动根据内容选择最佳风格,输出到 ~/ppt-output/4metadata:5 source: https://skillmd.com/skills/huangserva/ppt-generator6---78# PPT Generator Skill910专注于 PPT 生成的完整解决方案。1112## 触发条件1314当用户请求涉及以下内容时激活:15- 生成 PPT / 幻灯片 / 演示文稿16- 制作 PPT / 做 PPT17- 大纲转 PPT18- PPT 风格选择19- 修改 PPT 某一页2021---2223## 风格选择指南(22 种风格)2425当用户提出 PPT 需求时,**你(Claude)根据以下指南选择风格**,不要调用任何 Python 推荐函数。2627### 分析维度28291. **场景**: tech / business / education / creative / lifestyle / academic / gaming / historical302. **受众**: beginners / general / experts / executives / children313. **调性**: formal / casual / playful / serious / warm / professional3233### 风格评分表3435#### 第一梯队:通用高质量风格(质量分 9-10)3637| 风格 | 质量 | 稳定 | 适用场景 | 适用受众 | 调性 |38|------|------|------|----------|----------|------|39| **apple** | 10 | 9 | tech(10), business(9), education(7), data(9) | executives(10), general(9), experts(8) | professional, elegant |40| **minimal** | 9 | 9 | business(10), tech(8) | executives(10), experts(8) | formal, zen |41| **corporate** | 9 | 9 | business(10), data(8) | executives(9), general(8) | formal, trustworthy |4243#### 第二梯队:专业领域风格(质量分 8)4445| 风格 | 质量 | 稳定 | 适用场景 | 适用受众 | 调性 |46|------|------|------|----------|----------|------|47| **blueprint** | 8 | 9 | tech(10), data(9), academic(8) | experts(10), general(7) | technical, precise |48| **notion** | 8 | 9 | tech(9), business(8), data(10) | general(9), experts(8) | clean, functional |49| **scientific** | 8 | 8 | academic(10), tech(7) | experts(10), academics(10) | formal, precise |50| **editorial** | 8 | 8 | business(8), academic(7) | general(8), experts(7) | professional, readable |51| **editorial_infographic** | 8 | 8 | academic(9), tech(8), education(7) | general(9), experts(8) | informative, clear |52| **intuition_machine** | 8 | 7 | tech(9), academic(9) | experts(9), bilingual(10) | technical, bilingual |5354#### 第三梯队:教育风格(质量分 7-8)5556| 风格 | 质量 | 稳定 | 适用场景 | 适用受众 | 调性 |57|------|------|------|----------|----------|------|58| **sketch_notes** | 8 | 7 | education(10), tech(6) | beginners(10), general(8) | warm, friendly |59| **chalkboard** | 7 | 8 | education(10) | beginners(9), children(8) | nostalgic, teaching |60| **fantasy_animation** | 8 | 7 | education(8), creative(9), story(10) | children(10), beginners(9) | playful, magical |6162#### 第四梯队:创意风格(质量分 7-8)6364| 风格 | 质量 | 稳定 | 适用场景 | 适用受众 | 调性 |65|------|------|------|----------|----------|------|66| **watercolor** | 8 | 7 | lifestyle(10), creative(9), health(8), historical(8) | general(9), beginners(8) | warm, artistic |67| **vector_illustration** | 8 | 7 | education(8), creative(9) | children(9), beginners(8) | cute, friendly |68| **dark_atmospheric** | 8 | 7 | gaming(10), creative(9), entertainment(10) | general(8), youth(9) | dramatic, cinematic |69| **bold_editorial** | 8 | 7 | business(8), marketing(10) | general(9), executives(7) | bold, impactful |70| **storytelling** | 7 | 7 | story(10), creative(8) | general(8), beginners(7) | narrative, emotional |7172#### 第五梯队:特色风格(质量分 6-7)7374| 风格 | 质量 | 稳定 | 适用场景 | 适用受众 | 调性 |75|------|------|------|----------|----------|------|76| **pixel_art** | 7 | 7 | gaming(10), tech(6) | youth(10), developers(8) | retro, playful |77| **vintage** | 7 | 7 | historical(10), story(8) | general(8) | nostalgic, classic |78| **neumorphism** | 6 | 6 | tech(7), creative(7) | general(7) | modern, soft |79| **material** | 7 | 8 | tech(8), business(6) | general(8) | clean, systematic |80| **fluent** | 7 | 8 | tech(8), business(7) | general(8) | modern, fluid |8182---8384## 快速选择指南8586### 按场景选择8788| 用户说的内容包含 | 推荐风格(按优先级) |89|-----------------|---------------------|90| AI、技术、系统、架构、数据 | apple → blueprint → notion |91| 商业、投资、企业、汇报、提案 | corporate → apple → minimal |92| 教程、学习、入门、培训 | sketch_notes → chalkboard → apple |93| 儿童、故事、动画、有趣 | fantasy_animation → vector_illustration |94| 游戏、像素、复古、开发者 | pixel_art → dark_atmospheric |95| **历史、传统、文化、古代、探险、怀旧** | **vintage → watercolor → editorial** |96| 生活、健康、旅行、艺术 | watercolor → vector_illustration |97| 科学、学术、研究、论文 | scientific → blueprint → editorial_infographic |98| 产品发布、营销、发布会 | bold_editorial → dark_atmospheric → apple |99| SaaS、产品、仪表盘、指标 | notion → apple → minimal |100101### 按受众选择102103| 受众类型 | 推荐风格 | 原因 |104|---------|---------|------|105| 高管/投资人 | minimal, corporate, apple | 简洁、专业、高端 |106| 技术专家 | blueprint, scientific, intuition_machine | 精确、信息密集 |107| 初学者/入门 | sketch_notes, chalkboard, fantasy_animation | 友好、易懂 |108| 儿童 | fantasy_animation, vector_illustration, pixel_art | 有趣、可爱 |109| 普通大众 | apple, notion, watercolor | 平衡、通用 |110111### 按调性选择112113| 调性 | 推荐风格 |114|------|---------|115| 正式专业 | corporate, minimal, apple |116| 温暖友好 | sketch_notes, watercolor, fantasy_animation |117| 活泼有趣 | pixel_art, vector_illustration, chalkboard |118| 高端大气 | minimal, dark_atmospheric, bold_editorial |119| 技术精确 | blueprint, scientific, notion |120121---122123## 主题色选择(仅 apple 风格)124125| 主题 | 适用场景 |126|------|---------|127| soft_blue | 科技、AI、数据(默认) |128| deep_indigo | 商业、金融、专业 |129| fresh_green | 健康、环保、成长 |130| warm_orange | 教育、活力、创意 |131| rose_pink | 生活方式、时尚 |132| elegant_purple | 创意、高端、神秘 |133| cool_teal | 清新、现代 |134| neutral_grey | 极简、中性 |135136---137138## 可用布局139140| 布局 | 用途 |141|------|------|142| cover | 封面页 |143| section_divider | 章节分隔页 |144| content_left | 左对齐内容页 |145| content_center | 居中强调页 |146| content_two_column | 两栏对比页 |147| title_hero | 大标题英雄页 |148| key_stat | 关键数据页 |149| quote_callout | 引用强调页 |150| icon_grid | 图标网格页 |151| three_columns | 三栏布局页 |152| timeline | 时间线/流程页 |153| comparison | 对比页 |154| hub_spoke | 中心辐射页 |155| pyramid | 金字塔层级页 |156| agenda | 议程/目录页 |157158---159160## 工作流161162### 流程 1:生成 PPT1631641. **分析用户需求** - 识别场景、受众、调性1652. **选择风格** - 根据上述评分表选择最合适的风格1663. **告知用户** - 说明选择的风格和原因1674. **创建输出目录** - `~/ppt-output/{项目名}/`1685. **生成幻灯片** - 调用 Python 执行层169170```python171import sys172from pathlib import Path173sys.path.insert(0, str(Path.home() / '.claude/skills/shared-lib'))174175from presentation import create_session, PresentationGenerator176177# 1. 创建 session178session = create_session(179 title='项目标题',180 style='vintage', # 你选择的风格181 language='zh',182 audience='general'183)184185# 2. 创建输出目录186output_dir = session.create_output_directory('项目标题')187188# 3. 生成幻灯片189gen = PresentationGenerator(style='vintage')190gen.generate_slide(191 layout='cover',192 content='标题\n副标题',193 output_path=str(output_dir / 'slide_01.png')194)195```196197### 流程 2:批量生成198199```python200# 批量生成多页201results = gen.batch_generate_slides(202 slides_config=[203 {'layout': 'cover', 'content': '标题'},204 {'layout': 'content_left', 'content': '要点列表'},205 ],206 output_dir=str(output_dir)207)208```209210### 流程 3:导出 PPTX211212```bash213python ~/.claude/skills/ppt-generator/scripts/assemble_pptx.py \214 --input_dir ~/ppt-output/项目名/ \215 --output ~/ppt-output/项目名/presentation.pptx216```217218---219220## 输出目录结构221222```223~/ppt-output/{项目名}/224├── prompts/225│ ├── 01-slide-封面.md226│ ├── 02-slide-xxx.md227│ └── ...228├── slide_01.png229├── slide_02.png230├── slide_03.png231├── ppt_content.yaml232├── presentation.pptx233└── presentation.pdf234```235236---237238## 配置依赖239240图片生成依赖 `~/.claude/skills/shared-lib/config.yaml`,包含:241242| Provider | 说明 |243|----------|------|244| google-local | 本地 Google API 代理(优先) |245| ModelScope | 阿里通义 Z-Image |246| volcengine | 字节跳动火山引擎 |247| ApiMart | ApiMart 图像生成 |248249---250251## 注意事项2522531. **风格选择由 AI 完成** - 根据本文档的评分表判断,不调用 Python 推荐函数2542. **质量优先** - 多个风格匹配度接近时,选择质量分更高的2553. **受众优先** - 儿童/初学者 → 友好风格;高管 → 简洁风格2564. **稳定性考虑** - 重要场合选择稳定性高的风格(apple, corporate, minimal)2575. **风格一致** - 一个 PPT 只用一种风格,不要混用258