跳到正文

omdsh-dev/dsh-office

72最近提交 2026年8月16日

dsh-office DSH 插件

本插件提供 14 个工具,用于在 DeepSeek Harness 中处理办公文档。支持创建、读取和编辑电子表格、PDF、演示文稿和 Word 文档。这些工具移植自天枢终端编码代理,并适配为 DSH cordis 工具模型。

如何安装 dsh-office DSH 插件

dsh plugin --profile <name> add @huiliyi37/dsh-office

来源命令需要人工核对。复制不会执行命令。

dsh-office DSH 插件数据来源

dsh-office DSH 插件快照日期:2026年8月16日

discovered

dsh-office DSH 插件能做什么

  • 读取、写入、编辑、重新计算和审计 Excel (.xlsx) 电子表格
  • 创建、读取、合并和拆分 PDF 文件,支持 CJK 文本
  • 创建、读取和编辑 PowerPoint (.pptx) 演示文稿,支持幻灯片定义和演讲者备注
  • 创建和读取 Word (.docx) 文档,支持表格、代码块和水印
  • 通过配置选择性启用/禁用工具家族,减少工具表面

dsh-office DSH 插件适合哪些场景

  • 生成包含表格、标题和页码的季度报告 PDF
  • 读取 Excel 电子表格并将其转换为 Markdown 表格以供上下文使用
  • 将多个发票合并为一个 PDF 文件
  • 通过查找和替换文本编辑现有的 PowerPoint 演示文稿
  • 创建带有表格和对角线水印的 Word 文档

dsh-office DSH 插件适合谁

  • 需要在 DSH 工作流中自动化办公文档生成的开发者
  • 希望在 DSH 对话中处理电子表格数据的数据分析师
  • 任何使用 DSH 并需要生成或操作办公文档的用户

dsh-office DSH 插件的限制

  • 需要 dsh v0.1.0-rc.5 或更高版本;在旧版本上安装会导致工具调用崩溃
  • xlsx_read 对大文件有范围限制;公式文本保留但大数据可能被截断
  • PDF 的 CJK 渲染依赖于系统字体检测;可能无法在所有系统上工作

dsh-office DSH 插件的仓库 README 摘录

以下文字摘自 dsh-office DSH 插件的上游仓库 omdsh-dev/dsh-office 的 README,版权归原作者,仅作引用。

English | [中文](README.zh.md) Office document tools for [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) (`dsh`): generate, read, and edit spreadsheets (`.xlsx`), PDFs, presentations (`.pptx`), and Word documents (`.docx`). Ported from the office plugins of the [Tianshu](https://github.com/Tianshu-Tui) terminal coding agent (Apache-2.0 licensed upstream), adapted to the dsh cordis tool model. ## Tools | Tool | What it does | | --- | --- | | `xlsx_read` | List sheets of a `.xlsx`, or read one sheet as a markdown table (range-limited for large files; formula text preserved) | | `xlsx_write` | Write a 2D array to a new `.xlsx` (formula cells, header bold, column widths, number formats) | | `xlsx_edit` | Edit an existing `.xlsx`: add sheets, update cells (value or formula), append rows | | `xlsx_recalc` | Recalculate every formula with a lightweight pure-TS engine and report error values (`#REF!`, `#DIV/0!`, `#VALUE!`, `#N/A`, `#NAME?`, `#NUM!`) with locations | | `xlsx_audit` | Statically audit formula structure: array-formula traps, aggregation ranges missing rows, formulas overwritten by hardcoded values, inconsistent formulas in a column, self-references, divi

阅读完整 README仓库许可: Apache-2.0

dsh-office DSH 插件常见问题

如何安装 @huiliyi37/dsh-office?

使用命令 `dsh plugin --profile <profile名称> add @huiliyi37/dsh-office`,然后启动该 profile。确保你的 dsh 版本至少为 0.1.0-rc.5,否则工具调用会崩溃。

如何只加载电子表格工具,而不加载 PDF 或 PPT 工具?

在 profile 的 cordis.patch.yml 中,为插件添加 config 部分,设置 `enable: { xlsx: true, pdf: false, ppt: false, docx: true }`。未指定的家族默认启用。

这个插件在生成 PDF 时支持中文吗?

是的,PDF 创建功能会自动检测系统字体来渲染 CJK 文本。如果字体检测失败,你需要确保系统中有可用的 CJK 字体。

如何卸载插件?

运行 `dsh plugin --profile <profile名称> remove @huiliyi37/dsh-office`。这会从 profile 的 bundles 列表中移除该插件。

技能文件是什么?如何使用?

插件包含一个技能文件 (skills/SKILL.md),用于教导模型处理大文件和文档生成的最佳实践。要使用它,将技能目录复制到技能发现根目录:`mkdir -p ~/.dsh/skills && cp -r node_modules/@huiliyi37/dsh-office/skills/dsh-office ~/.dsh/skills/`。