dsh-plugin-ppt
A DeepSeek Harness plugin that adds a generate_ppt tool for generating PPT presentations from professional templates.
基于专业 PowerPoint 模板生成演示文稿。AI 自动生成封面、目录与结束页,正文通过有序的 pages 数组严格按顺序生成,支持 4 种基础页面与 9 种图示页面(subtitle / content1 / content2 / number / mindmap / timeline / quadrant / process / cards / arrows / diamond-list / left-diamond / bar-list)。
Installation
Via npm (recommended)
# Install as a dependency in your dsh profile
dsh plugin --profile <name> add dsh-plugin-ppt
Or manually:
npm install dsh-plugin-ppt
Via tarball
pnpm pack
dsh plugin --profile <name> add ./dsh-plugin-ppt-0.1.0.tgz
Requirements
- Python 3
- Python 包:
python-pptx、lxml
Configuration
If you installed via dsh plugin add, the bundle is already registered. The plugin config lives in your profile's cordis.patch.yml:
- insert:
- id: dsh-plugin-ppt
name: 'dsh-plugin-ppt'
config:
pythonPath: 'python'
templatePath: '' # 可选:自定义专业模板路径
outputDir: '' # 可选:输出目录(默认当前工作目录)
Configuration Options
| Option | Type | Default | Description |
|---|
pythonPath | string | python | Python 可执行文件路径 |
templatePath | string | '' | 专业 PPT 模板路径(默认使用内置的「攸信PPT模版16:9版V2.4.pptx」) |
outputDir | string | '' | 输出目录(默认当前工作目录) |
Usage
Once installed, the AI agent will have access to the generate_ppt tool. 使用前 AI 会先调用 ask_user_question 收集基础信息(汇报人姓名、所属部门、PPT 主标题),再生成 PPT:
"帮我生成一份项目汇报 PPT"
"生成一份技术研发部的年度汇报演示文稿"
调用前 AI 会强制先阅读包内附带的 python/read.md 与 PPT生成工具使用指南.md,确保页面字段与数据格式符合模板要求。
License
MIT