⏳ This skill is pending AI review.

Scores will appear once the review pipeline completes.

v0.1.0-alpha.2

dsh-upgrade-audit

oh-my-dsh@oh-my-dsh⭐ 322 stars· last commit 19d ago· 11 open issues

Audit external compatibility between two DSH (DeepSeek Harness) versions and detect reverts, producing an upgrade-report directory; compares git tags with a source checkout, or published npm packages without one. Use whenever the user asks to check/compare/audit two DSH versions or whether upgrading is safe — e.g. "more changes or reverts in dsh-vX -> dsh-vY", "compare the breaking changes" — even with only two version numbers and no source location. Read-only outside the report directory; npm mode installs in isolation with --ignore-scripts.

Choose how to use this skill

You do not need every option. Choose the path your AI client supports. The stable page stays the same; versioned files are immutable.

1. Native installer

This listing has no registered native installer command. Use the complete package or source fallback below, depending on what your client supports.

Do not guess an installer command or replace an existing version without reviewing the diff.

2. Complete package recommended

Download the ZIP when available. It includes SKILL.md plus the references, security notes and version metadata.

No complete ProSkills package is published for this listing yet.

3. Prompt-only

Copy the prompt above when the agent can read the stable page or when you want to adopt the workflow without installing a skill.

Need only the instruction file?

Download SKILL.md only if your client requires a single file. The complete ZIP is safer for a full installation because it preserves the references and release context.

No path installs or executes anything by itself. Your agent still needs access to the project files. Before updating, compare the installed version and review the diff.

—/10

// RATINGS

⭐GitHub Stars
⭐⭐⭐ 322 on GitHubGitHub ↗

Popular

🟢ProSkills Score
—
📍

Not yet listed on ClawHub or SkillsMP

// README

DSH Plugin Upgrade Skill

简体中文 | English

arXiv License: MIT Skills Upgrade cards Benchmark

教 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 各自管什么

Skill干什么用
plugin-workflow统一入口。运行前选择检查、升级、测试、命名注册、打包发布等功能,生成阶段账本并分别确认写入、运行和外部发布
plugin-upgrade主角。检查插件要不要升级、执行升级、把老插件适配到新 dsh 版本
plugin-fast-adapt不读升级卡,直连官方源的快速适配流水线:从 npm dist-tags 定目标版本、取该版本官方 upgrade-guide、扫描插件代码命中破坏性变更,再做冒烟与体检;独立仓库 taxueseek/plugin-fast-adapt 的快照,不经统一工作流编排
plugin-write写新插件,附命名规范和查重(避免和别人插件撞名)
plugin-test测插件改得对不对,含 docker 冒烟测试(装上 dsh 真启动一遍)
plugin-release打包发布插件,含发布前的自动检查
dsh-upgrade-audit对比两个 dsh 版本到底改了什么,给升级卡提供证据
plugin-runtime-debug排查插件在宿主里的运行时故障(坐标/投影不匹配、版本滞后、幽灵条目等)
plugin-fleet-sweep宿主升级后对整批已安装插件做巡检:静态扫改名/删除的 API、真浏览器逐插件断言,并按插件逐个修复发布
plugin-heavy-dep给轻量插件接入重依赖(mermaid 这类),含懒加载接入清单
dsh-benchmark-case把某个插件的真实升级经验(或已有版本卡)提取成一条可自动判分的 benchmark 考题(fixture + instruction + judge + solution)
generic-migration框架无关的插件迁移方法论(盘点耦合面、通读版本走廊、分层验证),不含任何 DSH 专有事实;用作对照实验的控制组

升级卡覆盖到哪个版本了

版本区间状态说明卡备注
0.1.0-rc.8 → 0.1.1-rc.1📝 草稿v0.1.1-rc.1.md9 张草稿卡(vlln 插件迁移:repository 机制移除、strict inject、0812 服务改名等;走廊为 0810–0812 内测快照窗口的最近公开 tag 对齐,待上游复核)
0.1.1-rc.1 → 0.1.1-rc.2✅ 完成v0.1.1-rc.2.md3 张卡
0.1.1-rc.2 → 0.1.2-alpha.1✅ 完成v0.1.2-alpha.1.md28 张卡
0.1.2-alpha.1 → 0.1.2-alpha.2✅ 完成v0.1.2-alpha.2.md8 张卡
0.1.2-alpha.2 → 0.1.2-alpha.3✅ 完成v0.1.2-alpha.3.md2 张卡(A3-01 新增 settings.plugin.item keyed-slot 设置卡能力;A3-02 移除可选 SQLite Session 持久化后端,opt-in 部署需旧版导出)
0.1.2-alpha.3 → 0.1.2-alpha.4✅ 完成v0.1.2-alpha.4.md6 张卡(report → send_message、Python 运行时包改名、Session.events 移除、seq 强类型、PTC workflow 与 base web_fetch 默认值;三台真宿主验证)
0.1.2-alpha.4 → 0.1.2-alpha.5✅ 完成v0.1.2-alpha.5.md3 张卡(storage 域 compatibleVersions 读兼容与 backup-and-skip 兜底;旧家升级拒启/标题丢失修复;storage 层复现核对)
0.1.2-alpha.5 → 0.1.2-rc.1✅ 完成v0.1.2-rc.1.md0 张卡(纯版本 bump;含核对记录、macOS 真机验证与 release notes 覆盖矩阵)
0.1.2-rc.1 → 0.1.3-alpha.1📝 草稿v0.1.3-alpha.1.md8 张草稿卡(session-log 走廊 A1-01/02 + Windows 安装 fs-ext 原生构建 A1-03 + host-plane/policy A1-04/05/06 + A1-07/08 未发布 cohort 源码宿主验证配方与 composer/read_image 运行时复核;release tarball 实测,tag 对齐待上游复核)
0.1.3-alpha.1 → 0.1.3-alpha.2📝 草稿v0.1.3-alpha.2.md5 张草稿卡(persona 拆前缀/后缀、SubprocessHandle.pid 移除、base 移除 str-replace 编辑器默认行、launcher runCli()/import.meta.main、pi-ai 0.84.2→0.85.1)
0.1.3-alpha.2 → 0.1.5-alpha.1📝 草稿v0.1.5-alpha.1.md20 张草稿卡(Session 格式 V3 + EpochHeader.system 移除、ctx.agent 移除、Inbox 类型化、会话事件校验收紧、PTC 改名、system prompt 入消息历史、CLI 拒 desktop、--from-default-profile、文件面新 API、Web Client details→rightbar 重构、右栏/资源扩展点、tool-subagent 契约、host SSH/指令发现 seam;版本号跳跃边 0.1.3-alpha.2 → 0.1.5-alpha.1)
0.1.5-alpha.1 → 0.1.5-alpha.2📝 草稿v0.1.5-alpha.2.md24 张草稿卡(workspaceFiles 改查 workspaceFileScope、文件读取越出工作区根 + maxFileBytes、conversation 迁到根级 main、minimal profile 只剩持久 shell、两个不可忽略会话事件、pi-ai 配置变更、scope 感知工具指引、present/reveal、文档预览改名、新 chunked-list/tool-present 包、MCP 分页 cursor 拒绝、session-format-status 文档;客户端/打包面 12 张:rightbar 根级化 + layout 重写、client-resources 去 reload、ui-primitives 图标改名、ui-dockkit 漂移、消息反馈注入面、ui-workspace 导航、交付 turn tail、浏览器依赖迁 devDeps、documentPreviews 注册表、action 命令、feedback Remote、右栏默认页规则)
0.1.5-alpha.2 → 0.1.5-rc.1📝 草稿[v0.1.5-rc.1.md](

// HOW IT'S BUILT

// FILES

2 files shipped with this skill. Inline text is the catalog copy. The upstream link is the source repository.

  • skills/dsh-upgrade-audit/SKILL.md7.9 KBupstream ↗
    ---
    name: dsh-upgrade-audit
    description: Audit external compatibility between two DSH (DeepSeek Harness) versions and detect reverts, producing an upgrade-report directory; compares git tags with a source checkout, or published npm packages without one. Use whenever the user asks to check/compare/audit two DSH versions or whether upgrading is safe — e.g. "more changes or reverts in dsh-vX -> dsh-vY", "compare the breaking changes" — even with only two version numbers and no source location. Read-only outside the report directory; npm mode installs in isolation with --ignore-scripts.
    ---
    
    English | [简体中文](SKILL.zh-CN.md)
    
    # dsh-upgrade-audit
    
    Audit every change observable by consumers **outside the repository** between two DSH versions, and produce the set of reports the user expects. The fixed form of this problem: *relative to from, does to contain more changes or reverts?* — "more changes" means externally visible breakage (removed exports, renamed wire error codes, data formats refused on read); "revert" means behavior present in `from` deliberately withdrawn by a revert within the interval. Both need evidence: commit messages and subagent summaries are claims — only conclusions drawn after reading both trees (source files or published packages) count as evidence.
    
    External compatibility = everything observable by consumers outside the repository: the npm package public API (exports, types, signatures, dependency surface), the `dsh` CLI (commands, flags, profiles, config keys), the wire protocol (SDK JSON-RPC, remote gateway/BFF, ACP, hooks), session data on disk (JSONL logs, SQLite stores and their version guards), the model-visible surface (tool names/schemas, system-prompt output), and the Python SDK's expectations. Internal refactors are background, not findings — aggregate and count them.
    
    Note: report language follows the user's language (see "Output contract" below); the existing sample report under `examples/` is in English by historical convention.
    
    ## Phase 0 — Parse input and choose a mode
    
    Input: two version identifiers (accepts `0.1.2-alpha.2`, `dsh-v0.1.2-alpha.2`, dist-tags `alpha`/`latest`/`next`). Choose the analysis mode by specificity, high to low:
    
    1. **Context path** — the user named a deepseek-harness checkout directory in the message. Verify: root `package.json` + `packages/` + `AGENTS.md` all present.
    2. **`DSH_SOURCE_PATH` environment variable** — verify the same way. (Optional `DSH_NPM_REGISTRY` overrides the npm registry.)
    3. **CWD heuristic** — the current directory is itself a deepseek-harness checkout (marked the same way).
    4. **npm mode** — none of the above (the default path for third-party repos): download the published packages of the two versions for analysis.
    
    Source mode audits git tags; npm mode audits published artifacts. The audit core (recon surface, classification, verification, reporting) is shared; only the materialization and some evidence sources differ. Know npm mode's boundaries before choosing it: **the npm version set ≠ the git tag set** (e.g. `0.1.2-alpha.1` is tagged but was never published — the materialization script exits with the published list, so present the gap to the user instead of silently substituting a version pair); the CLI closure does not include every publishable package (the SQLite persistence backend is not a CLI dependency; the script installs it as a supplement package).
    
    ## Output contract
    
    Everything lands in one directory: `tmp/<fromNorm>-to-<toNorm>/` (normalization: strip `dsh-v`, strip dots in the prerelease segment — `dsh-v0.1.2-alpha.1` → `0.1.2alpha1`). Source mode creates it inside the checkout (gitignored); npm mode creates it inside the current project. If the target directory already exists it is most likely a previously hand-made report — stop and ask first; do not overwrite.
    
    | Artifact | Source mode | npm mode |
    |---|---|---|
    | `commits.txt`, `reverts.txt` | from git; reverts folded into CHANGELOG | from GitHub compare enrichment (none if private repo) |
    | `files.txt`, `diffstat.txt`, full `.diff` | git tree diff | `manifest-diff.txt` (per-package manifest diff) + `a/`, `b/` published package trees |
    | `CHANGELOG.md` | categorized by type, **must have a Reverts section** | generated when enrichment exists; otherwise omitted with an explicit note |
    | `UPGRADE-ADAPTATION.md` | audit report (same skeleton in both modes) | same; header records mode and version provenance |
    
    Report language follows the user's language ([examples/](examples/0.1.2alpha1-to-0.1.2alpha2/UPGRADE-ADAPTATION.md) existing report is in English, a historical convention — not mandatory).
    
    ## Phase 1 — Materialize the two trees
    
    **Source mode** — verify purity first; a merge base that is not `from` itself means base drift: stop and report, never diff against a moving baseline:
    
    ```sh
    git merge-base <from> <to>   # must equal <from>'s commit
    node <skill-dir>/scripts/gen-artifacts.mjs <from> <to> tmp/<pair>
    ```
    
    **npm mode**:
    
    ```sh
    node <skill-dir>/scripts/materialize-npm.mjs <from> <to> tmp/<pair>
    ```
    
    The script resolves both versions against the registry (missing → exit 1 with the published list — present the gap to the user), installs the `@deepseek-ai/dsh` dependency closure plus the SQLite supplement package into `a/` and `b/` with `--ignore-scripts`, produces `manifest-diff.txt` from per-package manifest diffs for every `@deepseek-ai/*` package, and enriches from the public GitHub repository (`commits.txt`, `reverts.txt`) — so revert detection works even without a source checkout.
    
    Size the recon from the stats output: ≤40 non-merge commits → run the recon-surface checklist inline; 40–250 → merge 3–4 facades; more → all six facades. For density comparison, open the *previous* pair's `commits.txt` — the immediately preceding pair in **chronological order**, never just the newest directory in `tmp/`.
    
    ## Phase 2 — Establish shared facts first
    
    Run once and feed to every subagent, so they do not each re-derive them:
    
    - **Format guards** — source mode reads `SESSION_FORMAT_VERSION` on both tags (`packages/core/session/src/types.ts`) and the SQLite `SCHEMA_VERSION` (`packages/session/session-persistence-sqlite/src/schema.ts`); npm mode greps the same-named constants from the published `lib/*.js` of `dsh-session` and the supplement package. A guard that jumps with no migration path = hard data breakage; put it at the front of the report.
    - **Revert list** — source mode: `git log --grep='[Rr]evert' <from>..<to>`; npm mode: the enriched `reverts.txt` (absent → revert *intent* is undetectable; say so explicitly and do only the from→to delta audit).
    - **Python SDK** — source mode: diff `python/`; npm mode: outside the npm artifact scope, one sentence suffices.
    
    ## Phase 3 — Parallel facade scans
    
    Dispatch one read-only recon agent per facade in a parallel batch, each carrying the Phase 2 shared facts and the output contract from [references/audit-playbook.md](references/audit-playbook.md): sections **REMOVED** (first — candidate breakage/reverts), **CHANGED** (before → after), **ADDED**, **RENAMED**; every entry carries package/path, symbol or field, and an impact-surface class (SDK consumers / CLI users / config authors / session data / model-visible / protocol peers / web UI / npm installers); end with a one-line verdict. The per-facade target path lists (per mode) are in the playbook.
    
    ## Phase 4 — Verify before publishing
    
    Recon output is leads, not findings. Personally re-verify every REMOVED, revert, and wire claim: source mode with `git show <tag>:<path>` / `git ls-tree` against both tags; npm mode by reading both published trees (`a/node_modules/...` vs `b/node_modules/...`). This step has a real lesson: a recon agent once reported a package that already existed in alpha.1 as "added in alpha.2". Whatever cannot be verified is either marked `[INFERENCE]` or deleted.
    
    ## Phase 5 — Write UPGRADE-ADAPTATION.md
    
    Per the [references/audit-playbook.md](references/audit-playbook.md) skeleton: hea
  • README.mdupstream ↗

    Contents are not inlined in the catalog. Open the upstream file.

Plain-text copy, no login: /skill-bundles/oh-my-dsh-dsh-plugin-upgrade-skill-skills-dsh-upgrade-audit.md

// REPO STATS

322 stars
11 open issues
Last commit: 19d ago