DSH Plugin Upgrade Skill
简体中文 | English

教 AI 帮你升级 DSH 插件的 skill 集合,社区共建。
DSH(DeepSeek Harness) 是一个"所有功能都以插件形式存在"的 AI 运行框架。麻烦在于:DSH 每次发新版,老插件就可能启动不了。本仓库把已知的坑整理成 AI 读得懂的升级手册,让 Claude Code、Codex、Gemini 等 agent 帮你把插件安全迁到新版本,并用一套公开的 benchmark 检验这件事到底有没有做对。
📄 论文:Evaluating Agent Skills for Version-Specific Plugin Migration: A Retrospective Study(arXiv:2609.30120)。评估方法与主要发现见论文一节。
这个仓库里有什么
- 246 张升级说明卡:每张卡记录一个真实的坑——什么坏了、为什么坏、怎么修、信息来自哪个版本。按版本走廊排好序,覆盖 0.1.0-rc.8 → 0.2.1-rc.5,并在 rc.4 处分出 0.2.2-alpha.2 一支(其中 0.1.7-rc.1 → 0.1.7-rc.2 一段尚未成卡),每条边的卡数与状态见下方覆盖表。
- 13 条通用对策:与具体版本无关的坑(先备份、新旧共存、启动卡死怎么办等),集中在一份清单里。
- 12 个 skill:统一工作流负责选择与编排,另外十个分别负责查升级、直连官方升级指南做快速适配、写插件、测插件、发插件、对比两个版本、排查运行时故障、接入重依赖、宿主升级后巡检整批已装插件、把升级经验提取成考题;还有一个不含 DSH 专有知识的通用迁移方法论,用作对照实验的控制组。
- 65 道自动判分的考题(benchmark):27 道笔试(读代码给答案)、38 道实操(真装 dsh 真跑插件),其中包含 dsh-web 与 dsh-data-agent 两次真实迁移。
- 一篇论文和完整的评估证据:从原始回答、逐条评分到跨模型复评全部公开可复算,见下方论文。
快速开始
使用 skills CLI(推荐)
一条命令装到它支持的 agent:
npx skills add oh-my-dsh/dsh-plugin-upgrade-skill
Claude Code
Marketplace 安装:
/plugin marketplace add oh-my-dsh/dsh-plugin-upgrade-skill
/plugin install dsh-plugin-upgrade-skill
**SSH 错误?**如果没有配置 GitHub SSH 密钥,使用 HTTPS URL:
/plugin marketplace add https://github.com/oh-my-dsh/dsh-plugin-upgrade-skill.git
/plugin install dsh-plugin-upgrade-skill
本地/开发模式:
git clone https://github.com/oh-my-dsh/dsh-plugin-upgrade-skill.git
claude --plugin-dir /path/to/dsh-plugin-upgrade-skill
Codex
先添加 marketplace,再在 Codex 的插件界面中安装/启用该插件:
# GitHub marketplace
codex plugin marketplace add oh-my-dsh/dsh-plugin-upgrade-skill
# 本地开发 marketplace
git clone https://github.com/oh-my-dsh/dsh-plugin-upgrade-skill.git
codex plugin marketplace add ./dsh-plugin-upgrade-skill
当前 Codex CLI 没有直接安装子命令;GitHub 与本地路径都通过 plugin marketplace add 注册。
Gemini CLI
直接从仓库或本地克隆安装:
# 从仓库
gemini skills install https://github.com/oh-my-dsh/dsh-plugin-upgrade-skill.git --path skills
# 本地
git clone https://github.com/oh-my-dsh/dsh-plugin-upgrade-skill.git
gemini skills install ./dsh-plugin-upgrade-skill/skills/
Cursor
将 skills/ 复制到 .cursor/skills/:
git clone https://github.com/oh-my-dsh/dsh-plugin-upgrade-skill.git
cp -r dsh-plugin-upgrade-skill/skills/* .cursor/skills/
怎么用
Claude Code 中按名字调用 skill(插件安装后带命名空间):
/plugin-workflow
/dsh-plugin-upgrade-skill:plugin-workflow
/plugin-upgrade 0.1.2
/dsh-plugin-upgrade-skill:plugin-upgrade 0.1.2
首次只调用统一入口、尚未说明目标流程时,它会先列出 9 个工作流程和 14 项可选能力,推荐只读
health-check 但不会自动执行。回复流程编号或名称,并按需增减能力后,它才会生成阶段账本并开始:
选择 1
选择 compatibility-migration,加上 docker-smoke 和 browser-check
也可以直接在对话中提问(任意 agent),skill 按描述自动触发;只读检查直接给结果,升级或迁移会先出计划再等确认:
先检查这个 DSH 插件,让我选择要不要升级、测试、查云端命名或发布
我需要把插件从 0.1.1 升级到 0.1.2,有哪些破坏性变更?
帮我把 dsh-ads 这个插件升级到 dsh-v0.1.2-alpha.2
校验这个插件的命名并查询中央注册表;保留索引 URL 和 SHA-256,不要提交注册
naming-registry 默认执行离线命名校验和只读中央查询;中央注册仍是单独的外部发布步骤。
代理网络下使用 Node 24+ 的 node --use-env-proxy 运行查询,Node 20-23 不保证内置 fetch
自动读取代理环境变量。查询失败、索引超限或 v2 契约不合法都表示“未知/未检查”,不能解释为名称可用。
12 个 skill 各自管什么
升级卡覆盖到哪个版本了