插件目录 / Automation / dsh-plugin-kit
dsh-plugin-kit
已验证 · 实测可装 OneZero-Y
功能简介
构建独立DSH插件的技能与模板
可用 — 实测通过,早期项目
构建独立DSH插件的技能与模板 实测能干净安装、正常启动。早期项目,但功能可用。
「已验证」表示我们的自动化 CI 在干净 profile 里实际执行了 dsh plugin add 并启动成功——仅此而已。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。
README
dsh-plugin-kit
简体中文 | English
Agent skills and a template for building a standalone DeepSeek Harness (DSH) plugin — one that lives in its own repository and installs into a profile with dsh plugin add.
Quick start
Scaffold a new plugin:
git clone https://github.com/OneZero-Y/dsh-plugin-kit.git
cp -r dsh-plugin-kit/template my-plugin
cp -r dsh-plugin-kit/.agents my-plugin/.agents
cp -r dsh-plugin-kit/docs my-plugin/docs
cd my-plugin
Then, in an agent session pointed at my-plugin/, say:
Load dsh-forge-guide and scaffold a plugin that <describe what it should do>.
The agent will replace the template's placeholders, implement the behavior, wire it into a test profile, write tests, and prepare it for distribution — asking you when a decision needs your input.
Add the skills to an existing plugin repository, instead of scaffolding fresh:
cp -r dsh-plugin-kit/.agents your-existing-repo/.agents
cp -r dsh-plugin-kit/docs/plugin-contract-reference.md your-existing-repo/docs/
Then load dsh-forge-guide (or a specific stage skill — see the table below) in that repository.
What's included
.agents/skills/dsh-forge-*/ seven skills, one per stage of building a plugin
docs/plugin-contract-reference.md the DSH rules those skills apply
template/ a working plugin skeleton to scaffold from
Skills
Load dsh-forge-guide to run the full workflow, or load a single stage skill directly if you're picking up partway through:
| Skill | Use it for |
|---|---|
dsh-forge-design |
Deciding plugin form, dependencies, and config before writing code. |
dsh-forge-init |
Scaffolding a repository from template/. |
dsh-forge-build |
Implementing tools, events, and behavior. |
dsh-forge-wire |
Installing the plugin into a real profile and confirming it activated. |
dsh-forge-verify |
Writing tests that catch DSH's actual failure modes. |
dsh-forge-ship |
Preparing the package for distribution (npm, tarball, or git). |
dsh-forge-guide |
Orchestrating the six stages above. |
template/
A working, tested plugin skeleton — npm install && npm run build && npm test passes as shipped. dsh-forge-init handles copying and renaming it for you; to do it by hand, replace every occurrence of @your-scope/dsh-plugin-template and dsh-plugin-template with your package's real name and id.
template/
├── src/{index,config,runtime}.ts Loader entry / config schema / behavior
├── tests/{index,runtime}.spec.ts
├── cordis.patch.yml, package.json
├── README(.zh).md, LICENSE
└── optional-client-half.md guidance for adding a Web GUI half, if needed
Verified against a real DSH profile: installs with dsh plugin add, loads and unloads cleanly, and its config defaults apply correctly. See docs/plugin-contract-reference.md for what else this kit checked and where each rule comes from.
Compatibility
template/package.json pins @deepseek-ai/cordis and @deepseek-ai/schemastery against currently published versions. DSH is a developer preview with compatibility-breaking changes expected — if a pinned range no longer matches your target host, check the host's own docs/ for the current contract rather than just bumping the version.
License
MIT — copy freely into your own plugin repositories.
安装
装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:
dsh plugin add dshbase-catalog 然后对 agent 说「帮我装 dsh-plugin-kit」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包。
该插件是 GitHub 源码(未发 npm)——直接从仓库装:
Web profile:
dsh plugin --profile web add github:OneZero-Y/dsh-plugin-kit Headless(CLI)profile:
dsh plugin --profile headless add github:OneZero-Y/dsh-plugin-kit 实测报告
验证通过:从 GitHub 源码完成 L1 安装 + L2 加载 + L3 运行(dsh 0.1.0-rc.6)。
使用场景
自动化一项重复工作——调度、串联任务或响应事件——不用你亲手启动。
适合谁
有周期性工作、想 cron 式无人值守而非手动触发的人。
二次开发建议
触发器和任务模板是缝——加事件驱动或文件监听触发,以及更丰富的流程编排。