zimodzh / dsh-hello-plugin
An Agent Skills skill for developing DeepSeek Harness (DSH) plugins(开发 DSH 插件的 Agent Skill)——插件/服务/事件/工具/LLM 适配器/打包安装的标准。Works with Claude Code, Codex, DSH, VS Code Copilot & any compatible agent.
About this plugin
Written by the registry from verified metadata, not from the README.
dsh-hello-plugin is a DSH plugin published from the examples/hello-plugin package in the zimodzh/dsh-plugin-dev-skills repository.
Capabilities and topics
hello-plugin
最小 DSH 插件示例(bundle 格式,纯 JavaScript,无需构建)。加载后打印日志,并演示"注册即副作用":用 ctx.effect 注册的心跳定时器会在插件卸载时自动清理。
安装
dsh plugin --profile demo add ./examples/hello-plugin
dsh --profile demo --dump-config # 应看到 "# == dsh-hello-plugin" 层
dsh --profile demo # 日志出现 [hello-plugin] plugin loaded!(及每 5 秒一次的心跳)
首次 add 会初始化 profile(@deepseek-ai/dsh-base 作为第一个组合包加入)。
与标准的对应关系
package.json声明dsh.bundle指向cordis.patch.yml;patch 行按包名引用插件,Node 模块解析才能找到已安装代码。index.js导出name和apply(ctx);经ctx注册的一切在卸载时自动清理。- 改成你自己的插件:复制本目录,改包名、
index.js的导出,以及 patch 里的id/name。 - 相关标准:
references/plugin-anatomy.md(生命周期)与references/packaging.md(组合包与层序)。
Badge
Listed here? Link back with this badge — paste the snippet into your repository README.
[](https://dsh-plugin.com/plugins/zimodzh/dsh-plugin-dev-skills/examples/hello-plugin)