dsh-np-ppt
DSH 原生 PPT 演示文稿专家插件:内置 PPTD DSL 解析、55173 所见即所得可视化编辑器服务、Python-PPTX 高保真离线编译内核与一键导出 PPTX 功能。
AI Analysis
核心用途是辅助生成和编辑 PPT 演示文稿。适合需要快速制作幻灯片、进行可视化调整并导出标准 PPTX 文件的办公用户。
Install
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:z953218350/dsh-np-pptREADME
Read the full README ↗方式二:手动配置到 DSH 配置文件
在 ~/.dsh/profiles/web/cordis.patch.yml 中添加:
- insert:
- id: dsh-np-ppt
name: 'dsh-np-ppt'
并在 ~/.dsh/profiles/web/node_modules/ 下建立指向 `` 的符号链接(Windows 用 Junction / mklink /J,macOS·Linux 用 ln -s)。
安装完成后,重启当前 web profile(在运行 dsh web 的终端按 Ctrl+C 后重新执行 dsh web)即可加载插件。
🚀 使用指南
插件装载成功后,DSH Web GUI 中会新增一个自定义 Agent 预设 —— 「PPT 演示文稿专家」。该预置内置了完整的 PPTD DSL 编写规范、9 大风格主题说明、本地编译与 55173 编辑器联动指引,并自动注入到系统提示词,使 AI 直接具备演示文稿创作能力;脚本同时把预设文件复制到 ~/.dsh/.agent-presets/np-ppt/ 以便离线复用。
1. 对话驱动生成
在 DSH Web GUI 中切换到 PPT 演示文稿专家 预设,直接与 AI 对话:
"帮我用科技蓝风格做一份 8 页的《微服务架构重构技术方案》"
2. 本地可视化编辑与导出
- 在浏览器中打开
http://127.0.0.1:55173/; - 点击「打开 PPTD 文件夹」,授权选择包含
deck.pptd的项目目录; - 直接在页面中进行文字修改、排版调整;
- 点击右上角「导出」-> 选择 PPT -> 点击「下载」,即可下载高保真 PPTX 幻灯片。
3. 命令行直接编译
在 PPTD 项目目录下直接运行内置编译器:
py -3 /compiler/export_pptx.py deck/deck.pptd --output deck/deck.pptx --force
macOS / Linux 下请使用
python3:python3 /compiler/export_pptx.py deck/deck.pptd --output deck/deck.pptx --force首次运行若无pyyaml/python-pptx,脚本会自动通过 pip 安装。
🚀 Usage
Once the plugin is loaded, a custom Agent preset — "Presentation Expert" — is added to the DSH Web GUI. It bundles the full PPTD DSL authoring spec, 9 visual style themes, and local compiler / 55173 editor orchestration guidance, and is auto-injected into the system prompt so the AI can draft presentations out of the box; the preset files are also copied to ~/.dsh/.agent-presets/np-ppt/ for offline reuse.
1. Conversation-driven generation
Switch to the Presentation Expert preset in the DSH Web GUI and just talk to the AI:
"Make an 8-page Microservice Refactoring proposal in Tech-Blue style."
2. Local visual editing & export
- Open
http://127.0.0.1:55173/in your browser. - Click "Open PPTD folder" and authorize the directory containing
deck.pptd. - Edit text and layout directly on the page.
- Click the top-right "Export" → choose PPT → "Download" to get a high-fidelity PPTX.
3. CLI compilation
Run the built-in compiler inside your PPTD project directory:
py -3
/compiler/export_pptx.py deck/deck.pptd --output deck/deck.pptx --force
On macOS/Linux use
python3. First run auto-installspyyaml/python-pptxvia pip.