前言¶
在 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