zoahdev/dsh-plugin-doctor
DeepSeek Harness 插件的健康检查:清单、补丁、入口、构建、打包、全新配置文件安装验证 —— CLI + 可代理调用的 plugin_check 工具(RFC #1629 dsh 插件检查)。
Project Overview项目介绍
This is a native health check tool built exclusively for DeepSeek Harness (DSH) plugins. It was created to implement the dsh plugin check feature proposed in DSH RFC #1629, before the official command is added to the core DSH codebase. It can run in two modes: a standalone CLI that you can invoke directly from your terminal or CI workflow before opening a pull request, and a DSH plugin that DSH agents can call directly to run checks without you needing to touch the command line. To install the CLI, you can run it via npx without a global install, or build it from source with pnpm.
The tool is designed for DSH plugin developers who want to validate their plugins before publishing or opening a pull request. A typical local workflow involves running npx dsh-plugin-doctor check ./path/to/plugin to run the full default check pipeline, which covers everything from manifest validation to build success and full install testing. If you install it as a DSH plugin via the dsh plugin add command, you can simply ask your DSH agent to "check if this plugin is ready to publish" and the tool will run automatically and return a pass/fail result. It also supports profile-level diagnostics to catch misconfiguration in your existing DSH environment.
This project is released under the permissive open source MIT license, with no associated costs for commercial or non-commercial use. It requires a working Node.js installation and the pnpm package manager to run, and works across all major desktop operating systems including Windows, macOS, and Linux. In addition to the standard health check pipeline, it includes a separate read-only audit mode that can generate machine-readable JSON reports or markdown reports for batch plugin auditing. It also supports environment diagnostics to check for common issues like missing tooling, occupied ports, and invalid environment variable configuration.
这是一个专为DeepSeek Harness(DSH)开发的原生健康检查插件,用于在官方dsh plugin check命令上线前,为DSH插件开发者提供插件发布前的完整性与可用性验证。它同时支持两种运行方式:CLI模式可在本地终端或CI流水线中运行,DSH插件模式安装后可由DSH代理直接调用检查工具,无需用户手动操作终端。
面向DSH插件开发者,典型工作流分为两种:插件开发者在本地开发完成后,可直接运行CLI命令执行全链路检查,涵盖清单验证、构建校验、打包安装到配置验证全流程;如果已经安装为DSH插件,开发者只需要向DSH代理提出检查需求,代理就会自动调用工具完成检查并输出结果。
本项目基于MIT许可证开源免费使用,依赖Node.js和pnpm包管理器,支持所有主流桌面操作系统。它提供了只读的插件审计模式,可以生成机器可读的JSON报告或人类可读的markdown审计报告,也支持对现有DSH运行环境进行配置文件和环境依赖的诊断检查。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-plugin-doctor(zoahdev/dsh-plugin-doctor)
仓库:https://github.com/zoahdev/dsh-plugin-doctor
本站详情页:https://www.yhbd.top/plugins/zoahdev-dsh-plugin-doctor/
本站登记:类型 plugin · 归类 原生 DSH 插件 · 许可证 MIT · ⭐ 6 · 最近提交 2026-08-22 · 主语言 TypeScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【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 更稳。
- Only 6 stars - very few users, little community feedback星标只有 6,几乎没人在用,遇到问题缺少社区反馈
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 dsh-plugin-doctor
把 zoahdev/dsh-plugin-doctor 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-plugin-doctor
English
Health checks for DeepSeek Harness plugins — the practical answer to the dsh plugin check idea from RFC #1629, until the official command exists.
It works in two ways:
- CLI (
dsh-plugin-doctor/node lib/bin.js) — run it in your terminal or CI before opening a PR. - Plugin shell (
dsh plugin add) — once installed in DeepSeek Harness, the agent can call theplugin_checktool directly: "check whether this plugin is ready to publish", no shell needed.
What it checks
| Check | What it verifies | Default |
|---|---|---|
manifest |
package.json exists; dsh.bundle + dsh.bundle.patch + prepare + main present |
✅ |
patch |
cordis.patch.yml parses as YAML and contains at least one insert row with an id |
✅ |
entry |
main target exists (warns when not built yet) |
✅ |
files |
a files allowlist is declared |
✅ |
build |
pnpm run build succeeds |
--build |
pack + install + config |
pnpm pack, install into a fresh DSH_HOME profile, and confirm the plugin id in --dump-config |
--full |
profile-shadow |
a dsh profile has no real-directory @deepseek-ai/* copy shadowing the host instance (discussion #1697) |
--profile <dir> |
manifest-bom |
a dsh profile's package.json has no UTF-8 BOM (crashes dsh web at boot, discussion #1842) |
--profile <dir> |
large-files |
no profile file exceeds 100 MB (session logs can hit the ~512 MB stringify cap, discussion #1859) | --profile <dir> |
entry-points |
every installed plugin's main/exports target exists (source-copy installs without a build crash dsh web at boot, discussion #1965) |
--profile <dir> |
profile-deps |
the runtime @deepseek-ai scope is present (a bare npm install in a profile dir prunes the shared tree, discussion #2081) |
--profile <dir> |
native-modules |
koffi/node-pty are present in the runtime tree (npm 11 allow-scripts=false skips native builds, discussion #2081) |
--profile <dir> |
pre-execute-side-effects |
pre-execute listeners do not run host-level side effects before approval (heuristic lint, discussion #1863) | default pipeline |
shell-launcher |
child_process usage does not invoke explorer/start/open/powershell/cmd surfaces that can bypass approval/workspace limits (heuristic, discussions #1923/#1863) | default pipeline |
node / pnpm / dsh-path / port-3080 / win-bash |
environment diagnostics: toolchain on PATH, Web UI port free, and Windows bash resolvable for the minimal preset (discussion #1856) | --env |
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
esengine/DeepSeek-Reasonix
strukto-ai/mirage
chuspeeism/dashi-taskboard
Aisland-SJL/dsh-worktable
ccch1mneyyy/working-activity
zhoushoujianwork/easyeda-agent
pulseaiclub/phi
Ikalus1988/MisakaNet