agentleFS
hackerFishhackerFish/awesome-dsh-skills/skills/dsh-plugin-dev/SKILL.md

dsh-plugin-dev

Skill4 starsChanged 3 months agoMITView on GitHub

开发或调试 DeepSeek Harness 插件时使用:按已验证的结构编写 bundle、本地调试、发布与收录。

14 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

DSH 插件开发(依据官方包验证过的结构)

最小形态

插件 = 一个 npm 包 + dsh.bundle 声明(字段取自官方 @deepseek-ai/dsh-base 的真实清单):

// package.json(节选)
{
  "name": "my-dsh-plugin",
  "version": "0.1.0",
  "main": "lib/index.js",
  "dsh": { "bundle": { "patch": "./cordis.patch.yml" } }
}

cordis.patch.yml 是往 profile 配置栈插入的行列表(结构取自官方 base 清单):

- insert:
    - id: my-plugin
      name: 'my-dsh-plugin'
      config: {}

规则:行按 id 定位,后写覆盖先写,且整行替换 config 而非合并;行顺序不代表加载顺序。

调试循环

dsh plugin --profile web add /path/to/my-dsh-plugin --ignore-workspace-root-check
dsh --profile web --dump-config     # 确认你的行进入配置
  • 隔离测试:把 DSH_HOME 指向临时目录,不污染真实环境
  • 干净安装必须成功;改代码后重新 add 再验
  • 冒烟:dsh --profile headless "最小任务" 确认不崩(需模型凭据)

发布与收录

  1. npm publish(确保 files 包含 cordis.patch.yml 与构建产物)
  2. GitHub 仓库打 dsh-plugin topic
  3. README 写明开发/测试时的 DSH 版本(rc 期 API 在变)
  4. 向社区目录提收录 PR,描述自己写

注意

  • 依赖能省则省;避免 postinstall/prepare 脚本(会让用户安装变复杂)
  • 官方当前不接受外部 PR,生态贡献以插件与内容为主
  • 细分主题走专门技能:client 半端见 dsh-plugin-client,UI 国际化见 dsh-plugin-i18n,发布与生态收录见 dsh-plugin-publish

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.