zoahdev/dsh-plugin-doctor

Plugin插件 Native原生 ⭐ 6 MIT Dev Workflow开发与代码工作流

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运行环境进行配置文件和环境依赖的诊断检查。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 1 warning1 项注意
  • 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

CI License: MIT

CI Release

English · 中文

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 the plugin_check tool 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 →

← 上一个 Prev dsh-pets 下一个 Next dsh-skin-manager →