前言¶
在 DeepSeek Harness (DSH) 工作流中处理演示文稿通常需要手动操作或借助外部工具。dsh-plugin-easyppt 是一个面向 DSH 的演示文稿生成插件。该插件基于 DSH 原生 Univer 工具链,支持将 Markdown、JSON 或自然语言大纲输入转换为可编辑的 .pptx 文件。
核心功能¶
安装后,插件向模型注册了 4 个工具:
- ppt_create:生成 PPT。
- ppt_themes:查看所有可用主题。
- ppt_template_list:查看所有可用模板。
- ppt_template_upload:上传自定义模板。
输出文件包括:
- <name>.pptx:标准 16:9,可在 PowerPoint / Keynote / WPS 中打开。
- build/<name>.html:自包含的网页放映版。
- build/<name>.manifest.json:结构化清单。
安装¶
依赖 DeepSeek Harness(含 dsh-univer-office 提供的 univer_* 工具链)。peer 依赖由 DSH 宿主自动解析。
dsh plugin --profile web add https://github.com/<你的用户名>/easyppt
卸载:
dsh plugin --profile web remove easyppt
使用¶
- 命令行/一次性指令:使用
ppt_create工具。
ppt_create {
"title": "AI 产品发布",
"content": "# AI 产品发布\n## 市场机会\n- 市场空间大\n- 增速快",
"theme": "data",
"lang": "zh"
}
- Web 界面:新建会话,选择“EasyPPT”预设(如果已配置)。输入标题、大纲和插图。模型将生成 .pptx、.html 和 manifest。
主题与模板¶
插件包含 10 套内置视觉主题(data, business, executive, warm, minimal, education, finance, health, startup, academic)。
要使用自定义模板:
1. 使用 ppt_template_upload 上传 .pptx(限制 20 MiB)。
2. 插件校验文件。
3. 使用 ppt_create template:<id> 生成。
注意事项¶
- 上传的模板必须是 .pptx 格式,位于会话工作区内。
- 插图仅支持工作区内的 PNG/JPG/GIF。
- 许可证:MIT。
更多信息¶
GitHub: https://github.com/HenryPhoebe/dsh-plugin-easyppt
Catalog: https://www.skillhub.cn/plugins/HenryPhoebe/dsh-plugin-easyppt