omdsh-dev/dsh-office 预览 preview

omdsh-dev/dsh-office

Plugin插件 Native原生 ⭐ 26 Apache-2.0 Docs & Writing文档与写作

办公三件套!DeepSeek Harness(dsh)的Office文档工具:生成、读取和编辑电子表格(.xlsx)、PDF和演示文稿(.pptx)。

Project Overview项目介绍

omdsh-dev/dsh-office is a native plugin built exclusively for DeepSeek Harness (DSH), adding support for processing four common types of office documents directly within the DSH agent workflow. It includes 14 individual tools split across four tool families, covering spreadsheets (xlsx), PDFs, PowerPoint presentations (pptx), and Word documents (docx). The plugin was originally ported from the office toolset of the Tianshu terminal coding agent, and adapted to fit DSH’s Cordis tool calling model. Installation can be done directly via the DSH CLI by adding the package to your existing DSH profile, or manually via npm install.

Users can choose to load all 14 tools at once, or selectively enable only the tool families they need via a configuration entry in cordis.patch.yml. Disabling unused tool families keeps the agent’s tool surface small, reducing unnecessary context bloat and avoiding accidental calls to unused tools. For example, you can enable just PDF and Word tools and disable spreadsheet and presentation tools if you never work with those formats. This plugin is ideal for developers and office workers who want to use their DSH agent to generate, batch process, or edit standard format office documents like reports, spreadsheets, and presentation decks.

The plugin has a hard dependency on DSH version 0.1.0-rc.5 or newer; installing it on an older DSH core will cause a duplicate dependency install error that breaks all tool calls. It ships with a pre-written skill file in Anthropic-compatible format that teaches the LLM proper usage patterns, which users can manually copy into their DSH skills directory. The entire project is released under the permissive Apache 2.0 license, with original copyright retained by the Tianshu project contributors.

这是一款专为 DeepSeek Harness (DSH) 开发的原生插件,提供对常见办公文档的生成、读取和编辑能力,支持xlsx表格、PDF文档、pptx演示文稿和docx Word文档四类格式,共包含14个细分工具。插件原始代码移植自Tianshu终端编程代理的官方办公插件,基于Apache-2.0协议开源,适配了DSH的Cordis工具调用模型。

该插件允许DSH代理直接读取、生成和编辑本地存储的办公文件,用户可以通过DSH命令行一键安装全量14个工具,也可以在cordis.patch.yml配置文件中单独开启需要的工具家族,关闭不需要的功能来控制代理的工具调用范围。它适合需要让大模型代理批量处理办公文档、生成标准格式报告或演示文稿的开发者和办公用户使用。

该插件明确要求DSH核心版本不低于0.1.0-rc.5,如果在低于该版本的DSH核心上安装,会导致重复安装依赖包,进而让所有工具调用崩溃。插件自带一份anthropic兼容格式的使用说明技能文件,用户可以手动复制到DSH的技能目录让模型更好地掌握使用规范。所有代码均基于Apache-2.0协议开放,允许自由修改和再分发。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 note1 项提示
  • 26 stars - an early-stage project星标 26,属于早期项目
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add @huiliyi37/dsh-office

把 omdsh-dev/dsh-office 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

@huiliyi37/dsh-office

English | 中文

Office document tools for DeepSeek Harness (dsh): generate, read, and edit spreadsheets (.xlsx), PDFs, presentations (.pptx), and Word documents (.docx).

Ported from the office plugins of the Tianshu 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, division by zero
pdf_create Generate a real PDF with headings, paragraphs, tables, lists, code blocks and footer page numbers; CJK text renders via an auto-detected system font
pdf_read Extract text from a PDF for reading into context
pdf_merge Merge multiple PDFs into one, in order
pdf_split Split a PDF into single-page files, or extract pages by spec ("1,3,5-7")
pptx_create Generate a .pptx deck from slide definitions (title / section / content / two-column / image / table / chart), with optional theme and speaker notes
pptx_read Extract slide text as markdown, optionally including speaker notes; include adds structure (summary/layouts/images/tables: shape names & cm positions, image targets, table dims)
pptx_edit Find/replace text inside an existing .pptx (<a:t> surgery), preserving all layout and styling
docx_create Generate a real .docx Word document from content blocks (heading / paragraph / table / code / list), with optional striped tables, page background color, and diagonal text watermark
docx_read Extract text from a .docx for reading into context

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev SmartMoney-Cub 下一个 Next dsh-subagent-monitor →