- Home
- Plugins
- Dev & Plugin Tools
- dsh-plugin-kit
dsh-plugin-kit
maxisoft-git/dsh-plugin-kit
Scaffolds a DeepSeek Harness plugin bundle from a template and checks its manifest, patch rows, icon, locales and file coverage before install.
Install
dsh plugin --profile web add github:maxisoft-git/dsh-plugin-kitREADME
Plugin kit
Plugin kit scaffolds a DeepSeek Harness plugin bundle and checks it against the packaging contract. It registers the slash commands /new-plugin and /verify-plugin in a session, the plugin_kit model tool, and the same two operations as a Node CLI in bin/plugin-kit.mjs. It works on ordinary files in the session working directory. It has no Client half: there is no sidebar row, panel or settings page, and it never installs a bundle into the profile — adding a bundle stays a Plugins → Add plugin action.
What it adds
| Row | Effect |
|---|---|
/new-plugin <package-name> [flags] | Slash command. Writes <package-name>/ into the session working directory: package.json, cordis.patch.yml, index.js, locale/en.json, locale/ru.json, icon.svg, README.md, and client.js with --client. |
/verify-plugin [path] | Slash command. Runs the packaging checklist on one bundle, or on every bundle inside a folder, and answers as an error when the result is not ok (an error in a bundle, or no bundle found). |
plugin_kit | Model tool with two actions, scaffold and verify. It scaffolds inside the session workspace only and refuses a dir that resolves outside it; verify only reads. A failed operation answers ok: false with the reason instead of throwing. |
bin/plugin-kit.mjs | CLI: new/scaffold, verify/check, help. verify exits 1 when the result is not ok (an error in a bundle, or no bundle found) and 2 on a bad call. |
Loader row plugin-kit | One inserted row in cordis.patch.yml, Host-only. No Client half, no dsh.client declaration. |
Install
DSH 0.2.2-rc.1 or newer.
In DSH. Plugins → Add plugin with the installation spec github:maxisoft-git/dsh-plugin-kit. The plugin manager installs it for the whole profile; a new session picks it up.
From a checkout. git clone https://github.com/maxisoft-git/dsh-plugin-kit.git, then install that absolute directory with Plugins → Add plugin.
Use
-
Install the bundle as described above and make sure it is enabled in Plugins.
-
Start a new session. Both commands are available in the composer; they create no model message, because scaffolding and checking are file operations.
-
/new-plugincreates a bundle directory. The package name is required; the flags are:--title "…"— display title, default is a sentence-case title from the package name;--description "…"— Plugin Manager description;--command <name>— slash command of the new bundle, default is the package name withoutdsh-;--client— also write a Client half with oneconversation.composer.dockstub;--dir <parent>— create the directory under another parent, default is the session working directory.
A scaffold never merges into an existing non-empty directory:
--forceexists on the CLI only./new-plugin dsh-my-plugin --title "My plugin" --description "Adds one command." --command my-plugin /new-plugin @local/dsh-my-panel --client -
/verify-pluginruns the checklist on the given path (default: the session working directory). Point it at a folder of bundles and every bundle inside is checked in one call./verify-plugin dsh-my-plugin /verify-plugin .The check groups are
manifest,bundle,commands(an emptyinput.hintis refused by this build and fails the whole plugin),inject(object-forminjectis read as service names and fails),exports,patch,icon(bytes match the extension, 256 KiB limit, SVGviewBox, no script/foreignObject/image),locale(meta.title,meta.description,meta.detailinside the package, 1 MiB limit),files,client,syntax(node --check) andprofile(informational). -
Ask the model to do the same without a human command — one call per action. The tool writes inside the session workspace;
diris resolved against it and a path outside is refused.verifynever writes.{ "action": "scaffold", "name": "dsh-my-plugin", "title": "My plugin", "command": "my-plugin" }{ "action": "verify", "dir": "dsh-my-plugin" } -
From a shell, in a checkout of this repository:
node bin/plugin-kit.mjs new dsh-my-plugin --title "My plugin" node bin/plugin-kit.mjs verify dsh-my-plugin # exit 1 on errors node bin/plugin-kit.mjs verify . # every bundle in the folder
Configuration
There are no configuration keys. The Loader row carries no config block, and the commands and the CLI take everything from their arguments and from the session working directory.
| Key | Default | Meaning | Where it is stored |
|---|---|---|---|
| — | — | No configuration keys. | cordis.patch.yml, row plugin-kit (no config) |
Data and network
Nothing leaves the machine. The bundle makes no network requests, has no telemetry and contacts no host. What it touches:
- Reads the directory it verifies:
package.json,cordis.patch.yml,locale/*.json, the icon,README.mdand the detail document, and the runtime JavaScript files it parses. - Writes only the files of a scaffolded bundle. The
plugin_kittool writes inside the session workspace and refuses adirthat resolves elsewhere;/new-pluginand the CLI write into the directory they are given. An existing directory is left alone unless the CLI is called with--force. - Starts one child process per runtime file:
node --check --input-type=modulefor thesyntaxgroup. No other process is spawned. - Reads
$DSH_PROFILE_DIR/package.jsonwhen that variable is set, only to report whether the package is already installed in the current profile (theprofileline). - Stores nothing outside the directories named above and keeps no cache between runs.
To switch it off, disable the bundle in Plugins: the commands and the tool disappear with the row. The CLI is a plain Node script and keeps working from a checkout.
Security
SECURITY.md covers how to report a vulnerability, the supported versions and the process. The per-plugin report — what it reads, what leaves the machine, which services and paths it uses — is in SECURITY-AUDIT.md.
Generated bundle files embed the display title in documentation comments; the title is sanitised before it is written, so a */ in it cannot end the generated comment early. The model tool writes inside the session workspace only, and verify never modifies the bundle it checks.
Report privately through GitHub Security Advisories at https://github.com/maxisoft-git/dsh-plugin-kit/security/advisories/new; please do not open a public issue for a vulnerability.
Requirements
- DSH 0.2.2-rc.1 or newer (
engines.dshinpackage.json). - Node.js 22.19.0 or newer (
engines.node), for the CLI and the scripts. - No OS-specific code: file and path handling is portable across macOS, Linux and Windows.
- No dependencies and no external tooling.
Development
npm test # node scripts/smoke.mjs
npm run verify # node scripts/verify-bundle.mjs
scripts/smoke.mjs scaffolds fixtures in a temporary directory and asserts that a clean bundle verifies without warnings, that a damaged bundle fails the locale, icon, syntax and patch groups, that the CLI exit codes are 1 and 0, that the model tool exposes both actions, that a folder is verified bundle by bundle, and that a second scaffold into the same directory is refused. scripts/verify-bundle.mjs is the CI gate: manifest shape, dsh.bundle.patch, the locale/en.json, locale/ru.json and locale/zh.json files, the READMEs, LICENSE, CHANGELOG.md, SECURITY.md, SECURITY-AUDIT.md, the Client declaration and an absolute-home-path check.
To use a checkout locally, install its absolute path with Plugins → Add plugin; there is no build step and no node_modules. The repository layout:
index.js— Host half: the two commands and theplugin_kittool definition;lib/kit.mjs— scaffold and verify core, shared by the commands, the tool and the CLI;lib/templates.mjs— the files a scaffold writes;bin/plugin-kit.mjs— CLI entry;scripts/smoke.mjs,scripts/verify-bundle.mjs— tests and the CI check;cordis.patch.yml,locale/,icon.svg— bundle packaging.
License
MIT © 2026 maxisoft-git
Related plugins
deepseek-harness
deepseek-ai/deepseek-harness
dsh-market
dsh-market/dsh-market
dsh-web (dsh-plugin-manager)
zhu1090093659/dsh-web
dsh-web
zhu1090093659/dsh-web