upgrade-workbench
Use when an existing generated, embedded-engine, staged, or current workbench must be diagnosed, upgraded, migrated, or have its embedded engine removed.
- License 许可
- MIT
- 最近更新
- 2026-07-18
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- upgrade-workbench
- description
- Use when an existing generated, embedded-engine, staged, or current workbench must be diagnosed, upgraded, migrated, or have its embedded engine removed.
02 资源文件 2
- 参考文档agents/openai.yaml214 B
- 参考文档references/cli.md3.4 KB
03 SKILL.md 正文
Upgrade Workbench
Run a governed migration with the bundled workbench-kit CLI. Keep diagnosis,
human authorization, apply, and PR merge as separate decisions.
Read the CLI reference when selecting route-specific flags, interpreting exit status, or preparing external evidence and journal paths.
Preconditions
- Work only in a dedicated migration task workspace containing
task/index.md. - Resolve the workspace and every input/output path to absolute paths.
- Require the workspace parent to be owned by the current user, not writable by
group or other users, and on the same filesystem as every mutable worktree and
Git-admin directory. Shared sticky parents such as
/tmpfail closed; place the task workspace under a private parent before retrying. - Keep plans, approvals, results, and optional journals outside the workspace.
- Use
workbench-kitfromPATH; in Claude Code, fall back to${CLAUDE_PLUGIN_ROOT}/bin/workbench-kit. - Never create, edit, repair, or infer authority, reviewed-overlay, equivalence, or removal approval receipts. A human or trusted adapter must supply them.
- Do not install or enable
toolbox; product adoption is a separate task.
Procedure
-
Diagnose with a read-only dry-run. Create an external
0600plan file, then run the route-specific dry-run from the CLI reference. If classification is blocked, unrecognized, or indeterminate, report its exact blocker and stop. Formalformed, continue only when every blocker is exactlygenerator-composition-invalidatAGENTS.mdand a human-supplied reviewed-overlay receipt is available; run the documented reviewed-overlay recovery dry-run without editing workspace evidence. All othermalformedclassifications stop. If embedded engine removal is requested, use the CLI reference's two dry-runs: first obtain the blocked removal basis without a removal receipt, then let a human or trusted adapter supply the basis-bound receipt before producing the canonical plan. -
Review before writing. Summarize
classification_before, target,actionable, blockers, embedded-engine before/after, operations, preserved paths, active v1 tasks, and bound input digests. Show the plan path and ask the human for explicit apply approval. Never rewrite the frozen plan. -
Apply only after approval. Create an external
0600result file and apply the exact plan with the same route inputs. Reuse an explicit journal directory on retries. Do not add--remove-embedded-engineduring apply; the plan already binds that request. Bundled equivalence covers only the exact source revision and node manifest named by its receipt; any absent receipt or byte drift stops onplugin-equivalence-unavailableor an embedded-engine verification blocker. -
Verify and submit. Require a
completedtransaction, the expected target classification, unchanged preserved paths, and unchanged active v1 task facts. Commit through the workspace task lifecycle, then usetask-submitto open the migration PR. Retain external inputs, plan, result, and journal until resolution. -
Keep merge and cleanup human-owned. Ask before merge. After the protected default branch is updated, diagnose again. Only valid v2 governance plus doctor readiness is
already-current; ask again before task cleanup.
Failure Rules
- A stale plan, source, or input requires a new dry-run and human review.
- A
rolled-backresult is terminal evidence: report blockers and retain it. - A
public-adapter-restore-failedref under.workbench-kit-quarantine-*is retained external evidence. Report its canonical path and never delete it automatically, even when it appears empty. - Preserve unsafe, corrupt, aliased, or foreign journal/temp state. Never delete or rewrite transaction evidence manually.
04 同仓库更多 Skills
ticket-incubate
Use to turn an idea that has no issue/ticket yet into an actionable GitHub issue. Grow a vague notion by divergence, narrow only the gaps via a deficit-based interview, and create the issue once the four required elements (background, goal, done criteria, out-of-scope) are filled. Triggers on "I have an idea", "let's make this a ticket", "create an issue", "interview me", or describing something to make/fix/improve without an issue number, even if the user never says the word "ticket". It is the front of the workbench lifecycle (idea -> ticket-incubate -> issue -> task-start). Distinct from brainstorming/design skills: those work out the how of what to build now; this captures the what of later work as a well-honed ticket.
task-tickets
Use to scan open workbench tickets joined with task branches and lifecycle events into unstarted / claim-attempted / in-progress / awaiting-PR / cleaned-up states. Read-only.
task-submit
Use when the user asks to submit, wrap up, or extract from a task, or when work has reached a point to open a PR.
task-status
Use to see local and remote task status at a glance and diagnose drift (unpushed, stale status, missed cleanup). When you want to know where everything stands before starting or submitting, or after a multi-device handoff.
task-start
Use when the user asks to start a task, pick up an issue, or begin a new attempt, or hands over an issue number to start work.
task-done
Use when the user asks to clean up or discard a task, or to clear the workspace after a PR is merged.