pptgen-drawio
Agent skill fromxstongxue/best-skills
根据论文或汇报内容生成多页 Draw.io 格式 PPT,支持论文答辩与通用汇报两种模式,自动导出为 .pptx。当用户提到论文答辩 PPT、答辩幻灯片、通用 PPT、汇报 PPT、根据模板生成 PPT、drawio2pptx 时使用。
How to install pptgen-drawio
install pptgen-drawio
# install the best-skills pack with the skills CLI
npx skills add xstongxue/best-skills# or add only this skill to Claude Code: copy the folder
skills/pptgen-drawio/
# into
~/.claude/skills/pptgen-drawio/ (all projects)
.claude/skills/pptgen-drawio/ (one project)
1# PPT 多页 Draw.io 生成(论文答辩 + 通用汇报)23本 skill 支持两种模式,**共用** `ppt_template/`、`scripts/`、`reference/` 目录,以及 **Step 0 自定义模板**、**Step 1 确定内容与风格**、**Step 3 & 4 输出与导出** 全流程。45---67## 模式识别89| 模式 | 使用时机 | 内容来源 | 默认页序 | 输出文件 |10|------|----------|----------|----------|----------|11| **论文答辩** | 学位论文答辩、开题、预答辩 | paper-write 结构化提取 | 封面→目录→背景→现状→方法→创新点→实验→结论→致谢→Q&A | `paper-defense.drawio` |12| **通用汇报** | 工作汇报、产品介绍、演讲 | 用户消息提取/生成 | 封面→目录→节标题→内容页→总结→致谢→Q&A | `general-presentation.drawio` |1314---1516## Step 0:用户自定义模板(可选,两种模式共用)1718若用户提供了自己的 `.pptx` 模板文件:19201. **模板放置**:将 `.pptx` 放入 `ppt_template/` 目录212. **运行样式提取**:在 skill 根目录下执行:22 ```23 python scripts/analyze_pptx.py ppt_template/xxx.pptx reference/style-custom.md24 ```253. 读取 `reference/style-custom.md` 作为「自定义风格」继续2627**目录约定**:`ppt_template/` 存放模板、`scripts/analyze_pptx.py` 样式提取、`reference/` 风格文件2829---3031## Step 1:确定内容与风格(两种模式共用)3233### 1.1 确定内容3435- **论文答辩**:若用户只有论文全文:先调用 paper-write 的「结构化信息提取」;若已提供结构化信息:从消息中提取【论文题目】【学科方向】【答辩时长】【论文结构/目录】【各章核心内容】【创新点/贡献】等,缺失则追问36- **通用汇报**:从用户消息中提取幻灯片大纲及内容,或根据核心需求扩展为完整结构3738### 1.2 选择风格3940两种模式均可选择以下风格之一,**读取对应 reference 文件**获取配色、字体、版式规则与 XML 样式片段:4142| # | 风格 | 主色 | 强调色 | 有无顶栏装饰 | reference 文件 |43|---|------|------|--------|---|---------------|44| 1 | 经典学术 / 商务严谨 | `#1B2A4A` | `#C9A84C` | 有:顶栏 150px + 金线 8px | `reference/style1-classic-academic.md` |45| 2 | 现代极简 / 大字报感 | `#231F20` | `#F5C638` | **无**,靠留白和字号差 | `reference/style2-minimal-bigtype.md` |46…
Excerpt shown under the repository's Apache-2.0 license.
