/dsh-plugin-upgrade-skill:plugin-workflowfrom dsh-plugin-upgrade-skill
Coordinates multiple DeepSeek Harness plugin Skills across inspection, migration, runtime debugging, testing, naming, and release. Guides users through a lifecycle workflow with a pre-run capability menu and status reports.
Ships in dsh-plugin-upgrade-skill. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Act as the workflow controller. Let the user choose outcomes and optional proof before execution, route each selected stage to its owning Skill, preserve one phase ledger, and return one evidence-backed report. Do not copy the detailed rules of an owning Skill into this Skill.
When the user has not explicitly selected a workflow, present the workflow and capability
tables below before running any phase. Match the user's language, mark health-check as the
recommended first-run choice, and wait for a selection. A recommendation is not a selection:
do not silently default to health-check, start discovery, or execute a capability.
Accept a workflow number, workflow ID, or unambiguous natural-language outcome. Let the user
add or remove capabilities in the same reply, for example 3 + docker-smoke + browser-check.
Briefly identify which selected capabilities are read-only and which will later cross a
confirmation boundary.
The bundled planner renders the same deterministic menu and remains read-only:
node <plugin-workflow-skill>/scripts/plan-workflow.mjs
# Equivalent explicit form:
node <plugin-workflow-skill>/scripts/plan-workflow.mjs --menu
If the user already selected an outcome and supplied enough context, preserve that choice and continue without showing the menu again.
Inspect only enough context to make the choices concrete:
unknown. Do not install dependencies, run package scripts, start containers, edit files, or query a remote registry during discovery.| Workflow | Outcome | Default stages |
|---|---|---|
health-check | Read-only plugin and upgrade-risk report | discovery, optional DSH audit, seven-touchpoint scan |
upgrade-target | Upgrade an installed plugin to an explicit version | discovery, upgrade, static checks, rollback record |
compatibility-migration | Adapt plugin source to an exact DSH target | discovery, DSH audit, seven-touchpoint migration, static and runtime tests |
test-only | Validate an existing source tree or artifact | discovery, selected test levels, report |
naming-registry | Validate identifiers and check reviewed cloud registrations; optionally register an ID | discovery, offline naming, registry query; optional registration |
package-release | Prepare and optionally publish a release | discovery, required test gates, pack, consumer smoke, optional publication |
full-lifecycle | Migrate, validate, name, package, and optionally publish | all applicable stages in dependency order |
runtime-debug | Diagnose and fix Web Client runtime behavior | runtime diagnosis/fix, static, functional and browser proof, rollback |
heavy-dependency | Integrate a lazy-loaded Web Client dependency | integration, static, functional and browser proof, rollback, package inspection |
fleet-sweep | Sweep the whole installed plugin fleet against an upgraded host | static and live fleet sweep, per-plugin fix and release loop |
runtime-debug and heavy-dependency require the web-client surface. They can also be added as
capabilities to a migration. fleet-sweep has no surface gate because a fleet mixes Web Client and
logic-only plugins; it crosses all three confirmation boundaries because it runs the upgraded host and
then commits, tags and pushes each fixed plugin. Use health-check for a read-only investigation; a
request to diagnose a symptom does not by itself select a fix workflow.
Then let the user include or exclude these capabilities. Recommend the smallest set that proves their stated outcome and state which recommended items are still unselected.
| Capability | Choice | Default |
|---|---|---|
| DSH version compatibility audit | dsh-audit | On for compatibility migration; otherwise off |
| Seven-touchpoint plugin scan | touchpoint-scan | On for health checks and migrations |
| Typecheck, unit tests, and build | static-tests | On after source changes and before packaging |
| Exact-version Docker cold start | docker-smoke | On for migrations and release candidates when Docker is available |
| One real functional path | functional-probe | On for migrations and releases |
| Browser validation | browser-check | On only for Web Client or UI surfaces |
| Offline naming declaration validation | naming-local | On for naming-registry and new external plugins; otherwise opt-in |
| Central cloud registry lookup | registry-query | On for naming-registry; otherwise opt-in and read-only |
| Central cloud ID registration | registry-register | Off; local entry preparation writes the registry checkout, and PR submission is external publication |
| Rollback rehearsal or recipe | rollback | Recipe on for every write workflow; rehearsal is opt-in |
| Build and inspect a package artifact | package-artifact | On for package/release and full lifecycle workflows |
| Publish an artifact or release | release | Off unless external release intent is explicit |
| Diagnose and fix Web Client runtime behavior | runtime-debug | Off unless selected; requires static, functional and browser proof plus rollback |
| Integrate a heavy browser dependency | heavy-dependency | Off unless selected; requires the same proof plus package inspection |
| Sweep the installed plugin fleet after a host upgrade | fleet-sweep | Off unless selected; requires repository-write, runtime and external-publication confirmation |
After the user chooses, normalize the selection with the bundled read-only planner. Read references/workflow-selection.schema.json when another tool needs to produce the input JSON.
node <plugin-workflow-skill>/scripts/plan-workflow.mjs \
--workflow compatibility-migration \
--include registry-query \
--exclude browser-check \
--surface ordinary-plugin
Use --format json for automation, or --selection <selection.json> for a persisted input that follows the schema. Calling the planner without a selection prints the menu instead of creating a default plan. The planner validates conflicts and required dependencies, emits deterministic phase IDs and confirmation boundaries, and never executes the selected phases. Treat its output as the initial ledger, not as user approval.
The naming-registry defaults stop after the read-only registry-query; registry-register is never implied and retains separate repository-write and external-publication boundaries. A user may explicitly exclude registry-query for an offline-only run. Do not treat a query as a reservation or registration as required for local plugin use. A local plugin and the central registry may share a display name; only concrete identifiers on the same runtime surface can conflict, and the naming owner must report those exact matches plus the index SHA-256 when the query completes.
Create one row per selected or dependency-required stage before execution:
| Phase | Capability | Owner | Status | Evidence or blocker |
|---|---|---|---|---|
P01 | discovery | plugin-workflow | selected | target and source identity |
Use only these status values:
selected: chosen and not yet completed;completed: finished with evidence;blocked: attempted or required but unable to proceed;skipped: applicable but deliberately not run;not_applicable: irrelevant to the detected plugin surface or workflow.Never turn an unavailable or unselected check into completed. When a phase is blocked, mark dependent phases blocked or skipped with the dependency reason and continue only with independent, authorized phases.
Before executing a stage, load and follow its owning Skill. If the owner is unavailable, mark the phase blocked; do not recreate its implementation from memory.
| Stage | Owning Skill | Boundary |
|---|---|---|
| Installed update or source compatibility migration | $plugin-upgrade | Inspect first; check authorization for config, dependency, or source changes |
| New plugin code, offline naming, or registry query | $plugin-write | Follow the exact target Harness and registry contracts |
| Static, runtime, Docker, functional, or browser validation | $plugin-test | Select the minimum sufficient levels and preserve evidence |
| Package, release gates, publication, and release rollback | $plugin-release | Check the publication destination and authorization |
| DSH host version-to-version evidence | $dsh-upgrade-audit | Keep generated evidence separate from plugin source changes |
| Web Client runtime diagnosis and repair | $plugin-runtime-debug | Establish the exact host contract and reproduce the failing interaction |
| Lazy-loaded browser dependency integration | $plugin-heavy-dep | Own chunk loading, host route, fallback and markup handling |
| Whole-fleet sweep and per-plugin release loop after a host upgrade | $plugin-fleet-sweep | Verify on the upgraded host; fix and release one plugin at a time, never as a fleet commit |
Keep one owner per phase. When runtime debugging and dependency integration overlap, record the diagnosed contract and let the integration owner consume it instead of starting a competing rewrite. Reuse the selected target version and source identity across owners. If a later owner changes source, dependencies or the package artifact, invalidate the earlier verification that depended on those inputs and rerun it.
Run stages in dependency order:
naming-registry);Skip stages that are not selected unless an owning Skill makes them a hard gate for a later selected stage. In that case, add the gate to the ledger, explain why it is required, and obtain any needed confirmation before running it.
Group planned actions by boundary and check each against the user's request and higher-priority instructions. Existing explicit authorization applies to the same scope when handing off to another Skill; do not ask again merely because the owner changed. A generated plan grants no authorization, and authorization for source edits does not implicitly authorize publication. Ask only when a required action is outside the authorization already supplied.
If a selected phase crosses more than one boundary, check each boundary when it becomes actionable. Never request or expose secrets merely to complete a phase.
Update the ledger after every phase, including failures and explicit skips. Keep exact versions, source SHAs, commands, exit codes, report paths, and uncovered boundaries. Before finishing, verify that every selected capability has a terminal status.
Return one report containing:
Do not summarize a partial cold start as functional compatibility, a registry no-match as a reserved ID, or a prepared artifact as published.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
12 skills in this plugin
/dsh-benchmark-caseUse when the user hands over a dsh plugin repository (or a real migration commit / version corridor) and wants its upgrade experience extracted into one auto-graded Harbor benchmark exam task — produce tasks/<id>/ (fixture + instruction.md + task.toml + judge.mjs + solution) that harbor run can grade 0–1 and that folds into the dsh-plugin-upgrade-skill benchmark suite; also applies to turning existing version cards (references/v*.md) into executable exam tasks. Not for writing upgrade cards; not for running the benchmark./dsh-upgrade-auditAudit 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./generic-migrationFramework-agnostic methodology for migrating a plugin, extension, or integration across a breaking upstream release — inventory coupling points, classify changes, stage the migration, and verify in layers. Use when upgrading any plugin from one host-framework version to another without access to framework-specific migration notes. Not a substitute for vendor release notes; contains no framework-specific facts./plugin-fast-adaptDSH 插件适配与破坏性变更核查,兼造插件脚手架与性能架构审计。run.mjs 一键编排全流程并把每次运行写进本地日志(list 回看、doctor 交叉核对宿主日志、sanitize 脱敏后才能外发);查 DeepSeek 官方最新版本,取该版本的官方升级指南,扫描本机插件代码(package 命中自动到目标宿主 node_modules 实测核查),报出哪些地方踩了破坏性变更并给出官方修法;seams 接缝查询一个包名/API 符号在指南与本机宿主里的双源结论(还在不在、哪个版本移除的);scaffold 一条命令生成五形态可冒烟的插件骨架(package.json 不变量+形态入口+挂载层+命名投影,生成即验证);同时巡检本机 DSH 环境(profiles 覆盖层旧包残留、共享 node_modules 农场悬空软链、两层 patch(各 profile 层+全局 ~/.dsh/cordis.patch.yml)、已装插件、运行中宿主、宿主半与客户端半双面启用就绪度——dsh.client 声明/产物/注入名册死链,web 端与桌面端一视同仁)。修完可秒级冒烟验证,--real-smoke 再补干净 profile 真装真启档(桥接原仓库 verify-runtime),升级时可顺带做插件性能与架构审计。老版本插件(官方指南覆盖不到 v0.1.7-rc.2 之前的走廊)转迁移 SOP,对照原仓库 plugin-upgrade 的人工卡片走廊走七阶段流程。当需要把 DSH 插件适配到新版本或老版本、从零创建 DSH 插件、给新插件生成起步骨架、排查升级后插件报错、核查插件是否用了已移除的包或 API、查某个包/API 在目标宿主还在不在、检查 ~/.dsh 覆盖层有无旧包残留、给插件做性能与架构体检、诊断宿主启动失败日志(端口占用/未声明 inject/客户端入口死链)、把独立仓的技能面同步到下游技能目录时使用。触发词:适配 DSH 插件、升级插件、插件不兼容、dsh 升级后报错、插件用了废弃 API、接缝查询、这个 API 还在不在、检查覆盖层旧包、客户端卡 loading、entry did not activate、web boot 失败、注入死链、老版本 DSH 适配、历史走廊迁移、创建 DSH 插件、写 DSH 插件、插件脚手架、插件冒烟测试、插件性能审计、插件装了没生效、宿主启动失败、StartupError、EADDRINUSE、日志诊断、下游同步、技能漂移。/plugin-fleet-sweepUse when the DSH host itself has been upgraded (or is about to be) and the whole installed fleet of Web/client plugins must be checked against the new host - one or more surfaces broke, vanished, or need their compatibility re-verified and re-released. Also use after a host upgrade to sweep for silent breaks before the user reports them, and to run the per-plugin fix/release loop (branch, bump, changelog, tag, mirrors)./plugin-heavy-depUse when adding a heavyweight browser dependency (diagram/chart renderers like mermaid, code editors, big wasm-adjacent libs) to a lightweight DSH Web plugin that must stay small, when wiring a lazy-loaded chunk through a host route, when the lazy import intermittently fails or falls back, or when rendering untrusted markup (SVG/HTML) produced by such a dependency.npx claudepluginhub oh-my-dsh/dsh-plugin-upgrade-skill --plugin dsh-plugin-upgrade-skillOther plugins' skills for the same job