beancookie/dsh-plugin-anydoc
DSH插件:基于@firecrawl/anydoc将Word、PPT、Excel、PDF、EPUB、CSV等文档转换为GitHub风格Markdown
Project Overview项目介绍
This is a native plugin built exclusively for DeepSeek Harness (DSH) that registers the @firecrawl/anydoc tool to DSH agents, enabling conversion of multiple common document formats to GitHub-Flavored Markdown. Built on top of the Rust-native napi-rs bindings from @firecrawl/anydoc, this plugin runs on the libuv thread pool, so it does not block DSH’s event loop. To install the plugin, DSH users simply run the command dsh plugin --profile web add github:beancookie/dsh-plugin-anydoc in their terminal, then restart their DSH web instance to start using it.
After installation and startup, users can issue natural language commands to their DSH agent to convert documents directly in their existing DSH workflow. For example, a user can ask the agent “Please convert /path/to/report.docx to Markdown”, and the agent will automatically call the anydoc tool to handle the conversion. The plugin accepts optional parameters for explicit format specification and output file path, making it flexible for different use cases. This plugin is ideal for DSH users who regularly work with office documents and need a fast, integrated way to convert those files to Markdown for documentation or development purposes.
The plugin supports a wide range of common file formats, including all major Microsoft Office formats, OpenDocument files, RTF, EPUB, CSV, and PDF, but it does not support HTML, JSON, XML, images, or audio files. For developers who want to modify the plugin, the process is straightforward: install dependencies with pnpm, build the TypeScript code to the lib directory, then load the local build using DSH’s --patch development mode. The project is released under the open-source MIT license, and it is actively developed with support from the LINUX DO community.
这是一款专为 DeepSeek Harness (DSH) 开发的原生插件,它将 @firecrawl/anydoc 作为 anydoc 工具注册给 DSH Agent,支持把多种常用文档格式转换为 GitHub Flavored Markdown。该插件基于 @firecrawl/anydoc 的 Rust 原生绑定(通过 napi-rs)实现,在 libuv 线程池中执行,不会阻塞事件循环,也无需依赖任何外部进程或 Python 环境。
安装方式十分简单,用户只需在终端执行 dsh plugin --profile web add github:beancookie/dsh-plugin-anydoc 命令即可完成安装,安装完成后启动 dsh web 就能使用。使用时,用户只需向 DSH Agent 发送指令,指定需要转换的文件路径,Agent 就会自动调用 anydoc 工具完成转换,返回 Markdown 内容。它面向需要在 DSH 工作流中快速转换办公文档格式的开发者和写作者。
该插件支持多种常用格式,包括 Word、PowerPoint、Excel 等 Office 文档,还有 OpenDocument、RTF、EPUB、CSV、PDF 等,但不支持 HTML、JSON、XML 以及各类多媒体文件。项目采用 MIT 许可协议开源,开发者可以通过 pnpm 安装依赖、编译 TypeScript 代码,还能使用 DSH 的 --patch 开发模式进行本地调试开发。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-plugin-anydoc(beancookie/dsh-plugin-anydoc)
仓库:https://github.com/beancookie/dsh-plugin-anydoc
本站详情页:https://www.yhbd.top/plugins/beancookie-dsh-plugin-anydoc/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证未声明 · ⭐ 7 · 最近提交 2026-08-14 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- No license declared - all rights reserved by default; ask the author before commercial use or redistribution未声明开源许可证 —— 默认「保留所有权利」,商用或再分发前先问作者
- Only 7 stars - very few users, little community feedback星标只有 7,几乎没人在用,遇到问题缺少社区反馈
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 github:beancookie/dsh-plugin-anydoc
把 beancookie/dsh-plugin-anydoc 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-plugin-anydoc
一个 DeepSeek Harness (DSH) 插件,将 @firecrawl/anydoc 作为 anydoc 工具注册给 Agent,把多种文档格式转换为 GitHub-Flavored Markdown。
基于 @firecrawl/anydoc(Rust 原生绑定,napi-rs),在 libuv 线程池中执行,不阻塞事件循环,无需任何外部进程或 Python 环境。
支持的格式
| 类别 | 扩展名 |
|---|---|
| Word | .doc .docx .docm |
| PowerPoint | .ppt .pps .pot .pptx .pptm .ppsx .ppsm |
| Excel | .xls .xlsx .xlsm .xlsb |
| OpenDocument | .odt .ods .odp |
| Rich Text | .rtf |
| EPUB | .epub |
| CSV | .csv |
.pdf |
不支持 HTML、JSON、XML、图片与音频。
安装
dsh plugin --profile web add github:beancookie/dsh-plugin-anydoc
安装完成后直接启动:
dsh web
卸载
dsh plugin --profile web remove dsh-plugin-anydoc
使用
启动 DSH Web 后,向 Agent 发送类似指令:
请将 /path/to/report.docx 转换为 Markdown
Agent 会调用 anydoc 工具,返回转换后的 Markdown 内容。
工具参数
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
filePath |
string | 是 | 要转换文件的绝对或相对路径 |
format |
string | 否 | 显式指定格式(如 csv);缺省时根据文件内容自动检测 |
outputFilePath |
string | 否 | 将结果写入该文件并返回摘要,而非返回完整 Markdown |
开发
# 安装依赖
pnpm install
# 编译 TypeScript 到 lib/
pnpm build
本地加载(--patch 开发模式):
pnpm dsh web --patch "/path/to/dsh-plugin-anydoc/dev.cordis.patch.yml"
社区
本项目积极支持并感谢 LINUX DO 社区——一个面向技术爱好者的友好交流空间。
许可
MIT
yyyyukari/dsh-plugin-workshop
tingfeng347/dsh-vscode-workbench
Tencent/BrowserSkill
anbeime/skill
Jesseovo/last30days-skill-cn
csyangwen/dsh-memory-evolve