DeepSeek Harness Hub
← 返回列表

插件开发技能dsh-io/dsh-plugin-skill

DeepSeek Harnessspec-screened在 GitHub 查看 ↗
未验证

让 AI 编码助手按官方 API 正确编写插件

尚未跑自动兼容性验证,可查看页面内的依赖与入口分析。 · 最近上游提交 2026/8/18 · 已提供中文文档

# 用于创建 DeepSeek Harness(dsh)插件的 Agent 技能(SKILL.md):权威的 defineTool API、schema 规则、项目布局与工作流——适用于 Claude Code、Codex、Cursor、Gemini CLI、opencode

综合分
27.7
GitHub 分
27.7
用户评分
★ Stars
1
周下载量
安装插件(需先安装 dsh CLI 引擎:npm install -g @deepseek-ai/dsh)
dsh plugin --profile web add dsh-io/dsh-plugin-skill
该插件未发布到 npm,走 GitHub 源安装(pnpm 若拦截 prepare 脚本,按其提示在 pnpm-workspace.yaml 的 allowBuilds 中放行后重跑)
数据截至 2026/9/16(元数据每日更新 · 实装验证按队列轮转,单条结论的验证时间见上方)
用户评分
还没有人投票,来当第一个
订阅周报,不错过优质插件更新
每周一封 · 高评分插件 + 新用户活动

README

创建-dsh-插件

一个用于为 DeepSeek Harness (dsh) 构建工具和插件的 agent 技能——官方插件 API、项目布局和工作流程,提炼自真实的 @deepseek-ai/dsh-tools 类型定义。以标准的 SKILL.md 格式编写,因此每个主流 AI 编码 agent 都能加载它。

如果你的 agent 曾经拒绝编写 dsh 插件(不熟悉的 API),或者自信地输出了错误的插件(用 run 而不是 execute、缺少 output、没有 inject),这个技能能同时解决这两个问题:它给 agent 提供可以逐字复制的权威签名。

安装

该技能是一个单独的 SKILL.md 文件夹。将它安装到你的 agent 读取的 skills 目录中。常见位置:

| Agent | 路径 |
|---|---|
| Claude Code | ~/.claude/skills/creating-dsh-plugins/ |
| Codex | ~/.codex/skills/creating-dsh-plugins/ 或 ~/.agents/skills/creating-dsh-plugins/ |
| Gemini CLI | ~/.agents/skills/creating-dsh-plugins/ |
| opencode | ~/.config/opencode/skills/creating-dsh-plugins/(或作为插件) |
| Cursor | ~/.cursor/skills/creating-dsh-plugins/ |
| superpowers(插件生态) | ~/.config/opencode/node_modules/superpowers/skills/creating-dsh-plugins/ |

一行安装命令:

mkdir -p ~/.claude/skills && \
git clone --depth 1 https://github.com/dsh-io/dsh-plugin-skill.git ~/.claude/skills/creating-dsh-plugins
将目标路径替换为你的 agent 对应的路径(见上表);对于 Codex/Gemini 使用 ~/.agents/skills

对于单个项目,你也可以将该文件夹放入项目的 skills 目录(.claude/skills/、.cursor/skills/、……),这样只有该仓库的 agent 会加载它。

验证它是否生效

在你的 agent 中启动一个新会话并询问:

使用 creating-dsh-plugins 技能编写一个 dsh 插件,注册一个 get_weather 工具。

正确加载的技能会生成 src/index.ts,其中包含 inject = ['tools']、ctx.tools.register(defineTool({ ... output: { schema, render } ... })) 以及一个 execute(args) 方法——绝不是 run,也绝不是 required 数组。

内容

- SKILL.md —— 技能本身:工具 API 参考、硬性 schema 规则、项目布局、工作流程、常见错误、快速参考

内置的权威事实

- 工具通过来自 @deepseek-ai/dsh-tools 的 defineTool 注册;output(schema + render)是必需的
- required 是逐属性的(required: true);没有 required 数组,也没有 required: false
- 对象 schema 上必须显式声明 additionalProperties
- 容器是 @deepseek-ai/cordis(一个 cordis 分支),不是 koishi
- pnpm 用户需要为未发布的上游 peer 依赖 @deepseek-ai/dsh-type-meta 添加 pnpm-workspace.yaml override
- 分发方式:npm publish + GitHub dsh-plugin topic

相关

- @dsh-io/dsh-dev —— 官方 dsh 插件工具链 CLI(scaffold、dev、check、publish)
- DeepSeek Harness —— 本技能所针对的 agent 框架

许可证

MIT © 2026 dsh-io

上游仓库有新提交时邮件通知你(每天最多一封,无更新不打扰),随时一键退订。

💬 加入 DPharness 群聊

插件用法、部署报错、新插件第一时间同步——群里问,比一个人翻文档快。

点击加入 QQ 群
DPharness 群聊二维码,手机 QQ 扫码进群
扫码进群