dsh-plugin-doctor: Audit Plugin Repositories According to dsh-plugin Directory Rules

Introduction

In the DeepSeek Harness (DSH) ecosystem, for a plugin to enter the community directory, it must satisfy a set of “mechanical rules” beyond just functional descriptions. These include the dsh.bundle manifest, bundle patch rows, @deepseek-ai/dsh* peer ranges matching the harness, implementation files available for distribution, repository age, and the dsh-plugin GitHub topic. These items often pass or fail silently before a maintainer’s manual review. Manually checking against documentation item by item is slow and prone to missing semver traps under prerelease harnesses.

Below is an introduction to dsh-plugin-doctor, a workflow plugin by maintainer Tim-ReJet: it performs read-only audits on target repositories. The same engine is registered as a model-side tool plugin_doctor and can also run as a standalone CLI.

What is this

dsh-plugin-doctor is a DSH host plugin and CLI that audits whether a plugin repository structurally meets the requirements for listing, based on the mechanical rules applied to submissions in the dsh-plugin topic directory. The audit does not write back to the inspected repository; unless network-related options are explicitly enabled, it makes no network requests.

Repository: https://github.com/Tim-ReJet/dsh-plugin-doctor
Directory Page: https://www.skillhub.cn/plugins/Tim-ReJet/dsh-plugin-doctor

Core Features

Runs up to fifteen checks; the specific number depends on whether the repository can parse a manifest (fewer checks if no manifest is available). Two of these checks only run if the corresponding conditions exist (patch outside the package directory, or peer range beyond the checker’s modeling capability).

Check ID Failure Level Reads Content (Summary)
manifest.package-json error Root or subpackage package.json exists and is parseable, and declares dsh.bundle
manifest.bundle error Declares dsh.bundle.patch (dsh.client alone is not installable)
manifest.bundle-patch-file error Patch file exists, is a file, and is non-empty
manifest.bundle-patch-location warn (conditional) Whether the patch is inside the package directory for distribution
manifest.bundle-patch-rows error Patch is a top-level YAML sequence, rows contain id/name, and at least one row points to this package
manifest.peer-dependencies warn Official @deepseek-ai/* should not be in dependencies
manifest.peer-prerelease error Whether each @deepseek-ai/dsh* peer admits the current harness build (including prerelease gating)
manifest.peer-range-parsed warn (conditional) Range syntax that cannot be modeled is explicitly stated, not guessed
repo.age error Oldest root commit is at least one full day old (git history)
repo.implementation error Implementation files reachable via main/bin/exports/files or fallback exist under the manifest directory
packaging.meta-bundle warn Whether the bundle has both patches and its own behavior (dependency lists alone do not count)
description.substance error package.json has a description
description.marketing error Description explains what the plugin does, not marketing fluff (word list heuristic)
packaging.repository warn Whether repository points to this repo, or cannot be confirmed without origin
repo.topic error Whether GitHub has the dsh-plugin topic (requires --network, otherwise skipped)

Each failure provides specific repair suggestions. CLI exit codes: 0 for no errors; warnings also count as failures under --strict; 2 for usage errors.

Prerelease Related: manifest.peer-prerelease flags ranges that “look correct but silently mismatch on a prerelease harness”; the checker aligns expectations for caret, tilde, hyphen, x-range, comparators, etc., with node-semver in a fixture table. If unparseable, it falls through to manifest.peer-range-parsed.

Explicitly Not Covered (README original text): Does not verify if the description matches behavior, does not perform security audits, does not check other fields of directory entries or screenshot rules, does not determine if code is a stub, does not judge if the category is appropriate or duplicate, does not judge maintenance activity, and does not rely on npm publication or download counts. All green does not equal maintainer source code review.

Installation and Enablement

The plugin runs with the permissions of the current DSH process; please review the source code and MIT license yourself before installing. Node requires >=20 (see repository package.json).

After publishing to npm, install it once to your profile:

dsh plugin --profile web add dsh-plugin-doctor

Before npm publication, install from GitHub:

dsh plugin --profile web add github:Tim-ReJet/dsh-plugin-doctor

Both methods will append a bundle layer to that profile’s dsh.profile.bundles, inserting a host row named plugin-doctor within the layer. Confirm the layer has been synthesized:

dsh --profile web --dump-config | grep -A 3 plugin-doctor

For local development, you can use a patch to override the loading entry for a source code checkout, skipping install (change paths to your absolute paths):

# doctor.overlay.yml
- insert:
    - id: plugin-doctor
      name: '/absolute/path/to/dsh-plugin-doctor/src/index.js'
      config:
        path: '/absolute/path/to/the/repository/you/are/auditing'
dsh --profile web --patch ./doctor.overlay.yml

Typical Usage

In a session where this plugin is already composed, simply let the model call the tool, for example:

Run plugin_doctor on this repository and fix what it reports.

Return fields include ok, errors, warnings, report. path, strict, network default from the config of that row in cordis.patch.yml.

CLI (inside the plugin repository checkout, no install required):

node bin/dsh-plugin-doctor.mjs [path]

Common parameters:

Flag Effect
--strict Warnings are also counted in the failure exit code
--network Verify GitHub dsh-plugin topic (requests GitHub via gh or GH_TOKEN)
--harness-version <version> Test peers with a specified harness version instead of auto-detection
--now <iso-date> Override the clock for repository age checks (for testing)
--json Output full JSON
--verbose List passing checks
--emit-entry Print the entry expected by the directory data/plugins/<owner>__<repo>.yml (descriptions are escaped to avoid YAML scalar traps)

You can also run npm run doctor inside the repository to audit itself (new repositories will exit 1 because repo.age is not yet one day full; this is due to the directory rules themselves).

Applicable Scenarios and Notes

Suitable for: Developers preparing to submit or maintain plugin repositories for the dsh-plugin community directory, to perform checklist and manifest self-checks before push or PR submission; CI can use the CLI with --strict/--json as a gate.

Notes:

  1. Read-only audit, does not modify the inspected repository; does not connect to the internet by default, repo.topic will be reported as skipped if --network is not added.
  2. Community directory sites (such as skillhub.cn) have no official affiliation with DeepSeek / High-Flyer. This article only introduces a third-party workflow plugin, not a built-in capability of an “official app store”.
  3. Plugin v0.1.0; GitHub stars are 0, it is an early-stage tool, behavior is subject to the repository README and tests.

Conclusion

dsh-plugin-doctor consolidates the mechanical rules that are prone to silent failure before directory listing into a repeatable audit, and separately highlights prerelease peer range issues; it is suitable as a self-check step for DSH plugin authors before submission. For details, see the GitHub Repository and SkillHub Directory Page.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye