dsh-plugin
August 23, 2026 ยท View on GitHub
A comprehensive Claude Code / Codex skill for scaffolding, building, installing, verifying, and debugging DeepSeek Harness plugins.
DeepSeek Harness plugins are built on the Cordis microkernel architecture: ES modules exporting apply(ctx, config) and declaring dsh.bundle.patch so dsh plugin add automatically wires them into the profile layer stack.
๐ Capabilities
- Automated Scaffolding: Fast template generation (
scaffold.mjs) with live dependency version pinning directly from installed profiles (ensures compatibility with Cordis 4.0.1, Schemastery 3.18.1,@deepseek-ai/dsh-tools, etc.). - Pre-flight Conformance Verification: Verification tool (
verify.mjs) checking bundle manifests, Schemastery schema declarations, bundle patch syntax, and tool definitions before installing into a profile. - Deep Reference Guides:
plugin-anatomy.md: Plugin structure,apply(ctx, config), lifecycle, andctx.effect().tools.md: Standard schema, tool execution context, concurrency safety, and tool rendering.services-and-events.md: Harness event hooks (tools/pre-execute,agent/pre-step, etc.) and Cordis service definitions.install-and-verify.md: Step-by-step profile installation, bundle patch resolution, and troubleshooting.pitfalls.md: Known edge cases, reserved tool names, and common mistakes.
๐ Repository Structure
dsh-plugin/
โโโ SKILL.md # Main skill definition & guide
โโโ references/ # Detailed architectural guides
โ โโโ install-and-verify.md
โ โโโ pitfalls.md
โ โโโ plugin-anatomy.md
โ โโโ services-and-events.md
โ โโโ tools.md
โโโ scaffold/ # Plugin template files (.tmpl)
โ โโโ cordis.patch.yml.tmpl
โ โโโ gitignore.tmpl
โ โโโ package.json.tmpl
โ โโโ README.md.tmpl
โ โโโ src/
โ โ โโโ config.ts.tmpl
โ โ โโโ index.ts.tmpl
โ โโโ test/
โ โ โโโ logic.test.mjs.tmpl
โ โโโ tsconfig.json.tmpl
โโโ scripts/
โโโ scaffold.mjs # CLI tool to scaffold new DSH plugins
โโโ verify.mjs # Zero-dependency plugin validator
๐ ๏ธ Quick Usage
1. Scaffold a New Plugin
node scripts/scaffold.mjs dsh-my-tool --dir ./projects --profile web
2. Build & Test
cd projects/dsh-my-tool
npm install
npm run build
npm test
3. Verify Before Installation
node scripts/verify.mjs ./projects/dsh-my-tool --profile web
4. Install into DSH Profile
dsh plugin --profile web add -w ./projects/dsh-my-tool
๐ License
MIT