/dev:update-packagesfrom dev
Update every package in the repository in verified batches, and surface dependencies that were deprecated, renamed or abandoned.
Ships in dev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Update every package in this repository, in batches, green-to-green after each batch, publishing submodules before the main repository — and surface every dependency that was deprecated, renamed or abandoned, which no version check will show you.
The run is unattended: it fires from a schedule, works for hours or days, and leaves behind two artefacts a human reads — the PR and the tracker issue. Decide without asking; whatever needs the owner goes into the run report.
Announce when you start: "Updating packages — verifying baseline first, then batching by ecosystem."
verify and git-workflow — the project contracts
(${CLAUDE_PLUGIN_ROOT}/skills/pipeline/references/contracts.md). Verification comes only from
verify (scoped while iterating, full before every commit); every commit, push, submodule publish,
PR description and tracker comment comes only from git-workflow (checkpoint per batch,
publish for the report). Missing either → stop and say which, as the contracts file says.docs/package_update.md (General Rules + Known Issues) and
docs/dependency-health.md (the dependency-health log). Read both at the start, update them at
the end. Missing on a first run → create them from
${CLAUDE_PLUGIN_ROOT}/skills/update-packages/references/notebook-template.md.
docs/, because each is updated on its own too — a
submodule's run never sees its consumer's notebook. At the start read the root's and every
submodule's (paths from git config --file .gitmodules --get-regexp path); a constraint in a
submodule's notebook binds this run exactly like the root's. Which notebook an entry goes in,
how a submodule records a block caused by a consumer without naming it, and who may lift such a
block: ${CLAUDE_PLUGIN_ROOT}/skills/update-packages/references/cross-repo-notebooks.md.blocked-by-consumer entry is never retried
from inside the repository that records it — only a consumer can prove it fixed.UPDATES.md at the repository root: every version the package manager does
not track (an image tag, a tool version in a config file), each with how to find its latest
version, bump it, roll it out and verify it. Like the notebook, one per repository — read the
root's and every submodule's at the start. No UPDATES.md anywhere → skip Phase 5 and its report
section; the run is otherwise unchanged. Entry format and the walk:
${CLAUDE_PLUGIN_ROOT}/skills/update-packages/references/updates-catalogue.md./dev:review defines them).verify skill.git-workflow skill./git:fix-conflicts (the git plugin): it keeps
the target side's locked versions and lists every version resolved fresh.Never run bun update <pkg> (a named package) from the repository root. bun update saves by
default, and "save" means the manifest in the current directory — the root package.json,
not the workspace that uses the package. So it does not bump the dependency where it lives: it adds
a new root dependency, leaves the workspace copy stale, and breaks the "one version, declared in the
workspace that uses it" model. Any package manager whose targeted update writes to the
current-directory manifest has the same trap.
Two commands are safe:
bun update (no name) — moves the lockfile within the existing ranges across all
workspaces at once. Enough for minor/patch batches that need no range change. It moves nothing
pinned exactly, and it never touches overrides.bun install — regenerates the lockfile from what the manifests say. This is how a hand edit
is applied.To move a version, per package or batch:
Find the workspace manifests that declare it. Workspaces are exactly the globs in the root
manifest's workspaces field — read them, never assume paths:
jq -r '(.workspaces | if type == "object" then .packages else . end) // [] | .[]' package.json \
| xargs sh -c 'for g do ls -d $g/package.json 2>/dev/null; done' _ \
| xargs grep -l '"<pkg>"'
Edit the version in each match by hand — an exact pin in a product workspace, a range in a shared one (Library mode below).
If it also appears in the root devDependencies or overrides, edit it there too (Preflight).
bun install.
Verify — scoped while iterating, full before the commit.
A workspace is shared when it lives inside a git submodule of this repository or its manifest is
not "private": true; everything else is a product workspace and keeps exact pins. Before editing
a shared workspace's manifest, read
${CLAUDE_PLUGIN_ROOT}/skills/update-packages/references/library-mode.md — it holds the rules, the
reasons and a lockfile duplicate-copy gotcha.
The root package.json holds versions the whole repository must agree on. Miss them and two copies
of a package install side by side, which shows up as "two different types with this name exist but
are unrelated" errors at every shared-type boundary.
overrides — bare bun update does not touch them. Bumping an overridden package means
editing its override by hand, or the override silently holds it back.devDependencies — root dev tools act as global constraints. A package listed here is bumped
here too whenever it is bumped in a workspace.Then re-read the notebook's General Rules for the couplings they record.
@types/*, test/dev tools, build
tools, utility libraries, backend libraries, monitoring/logging, external API clients.Full lists and the decision tree: ${CLAUDE_PLUGIN_ROOT}/skills/update-packages/references/batch-strategy.md.
Run the full verify protocol. Anything red → stop, fix it, commit the fix (checkpoint), and only
then start — on a red codebase you cannot tell which failure a batch introduced.
bun outdated -r
Save the output (its Workspace column shows where each dependency lives) — this is the work list.
Categorize it against the batch categories.
bun outdated compares versions and nothing else. A package its authors abandoned or replaced sits on
its final version, so it is never outdated — rollup-plugin-terser stayed on 7.0.2 for years after
@rollup/plugin-terser replaced it, and its process-forking worker came along unnoticed. The registry
carries a deprecated message; this checks every direct dependency in seconds, skipping the
project's own workspace packages:
manifests=$(jq -r '(.workspaces | if type == "object" then .packages else . end) // [] | .[]' package.json \
| xargs sh -c 'echo package.json; for g do ls -d $g/package.json 2>/dev/null; done' _)
own=$(echo "$manifests" | xargs jq -r '.name // empty' | sort -u)
echo "$manifests" \
| xargs jq -r '[.dependencies,.devDependencies,.peerDependencies,.optionalDependencies][] | select(.) | keys[]' \
| grep -vxF -f <(echo "$own") | sort -u \
| xargs -P 16 -n 1 sh -c 'for pkg do out=$(bun info "$pkg" deprecated 2>&1); rc=$?
msg=$(printf "%s\n" "$out" | grep -v "^\[[0-9.]*ms\] ")
if [ $rc -eq 0 ]; then echo "$pkg: $msg"
else case $msg in *"Property deprecated not found"*) ;; *) echo "$pkg: LOOKUP FAILED: $msg" >&2; exit 1 ;; esac; fi; done' _
The loops name their values (for g do, for pkg do walk the positional arguments) because a skill
invoked with arguments has every numbered positional token (a dollar sign followed by a digit) in
this file replaced by them — never write one here.
It reads the latest version, so every hit is a package that is dead or has moved — a finding for
Dependency health, not an item for the work list. A non-zero exit means some lookups failed
(registry error, rate limit), listed as LOOKUP FAILED: rerun those before treating the list as
complete — a failed lookup prints nothing on stdout, exactly like a healthy package.
Replacing a library is a migration with its own risk, and whether it happens now, later or never is the owner's call. The run never swaps one package for another, however mechanical the swap looks; it puts each one under Needs your decision in the run report.
docs/dependency-health.md holds the date of the last full review, every finding and the owner's
decision on each; its lead paragraph defines the entry format. A finding that already carries a
decision is not raised again unless its situation changed; one still pending goes into every report
until it gets one.
The registry flag only catches authors who bothered to set it. When the last full review is a month
old or more, review every direct dependency — fan them out to Sonnet subagents with
${CLAUDE_PLUGIN_ROOT}/skills/update-packages/references/dependency-review.md. Record new findings
and the review date in the log.
For each batch (5–15 packages, one ecosystem):
overrides/devDependencies).bun install.Edit → bun install → full verify → commit if green. If red, classify:
| Situation | Classification | Action |
|---|---|---|
| Type errors confined to call sites (rename, moved export, signature tweak) and the fix stays inside 1–2 packages | Easy | Fix inline, verify, commit with the bump |
| Needs an API redesign, changes runtime/behavioural semantics, or the failure touches 3+ packages | Hard | Revert the bump, add a Known Issues entry, give it its own commit (not folded into a batch), move on |
The split keeps a routine batch from smuggling a migration: a hard update is a mini-project that deserves isolation and a paper trail, not a line in "Update AWS SDK packages".
Cases the version list does not show:
node_modules and installing again from the kept
lockfile), and re-verify. The same thing happens after a branch switch or merge that moved a
submodule pointer when install ran before the submodule update.verify protocol owns rebuilding before e2e. What it cannot do: tell the owner,
in the report's Manual action needed, to restart any dev server he runs — a test runner that
reuses a running dev server serves pre-bump code.Runs on every run in a repository with an UPDATES.md (each submodule's included); skipped without
one. Walk every entry in file order: run its Latest, compare with the pin, and when newer follow
Bump, Rollout and the entry's own Verify checks — green → its own commit; red → revert,
recreate the old version, record a Known Issue. The bumped entries then get one full verify as a
batch, bisected on red; once it is green, the follow-ups their Rollout prescribes. A move whose
Bump needs the owner's decision is never made: it gets a tracker issue instead. An entry missing
a field is reported blocked — incomplete entry and skipped; the walk goes on. Every entry ends in
exactly one report line. The steps: ${CLAUDE_PLUGIN_ROOT}/skills/update-packages/references/updates-catalogue.md.
bun install updates every workspace from the root, but a submodule is a separate repository: its
manifest and lockfile changes are committed and pushed there FIRST, then the main repository records
the new pointer. Both go through git-workflow checkpoint, which owns that order and its
commands.
git -C <submodule> status --porcelain (dirty files) and
git status --porcelain <submodule> (a moved pointer).| Situation | Action |
|---|---|
| A check goes red after a batch | That batch caused it. Bisect (halve and re-verify) or revert the whole batch and re-add packages one by one |
| A single risky bump is red and hard to fix | Revert it, log it under Known Issues with the exact error, its own commit — do not retry it this run |
| Type errors flood code that did not change | Duplicate trees — see Phase 4 |
"Cannot find module" for the project's own workspace packages after bun install | A missing workspace link — run bun install again (or a clean reinstall) |
Update docs/package_update.md in the format of the template: a constraint that persists across
versions goes in General Rules; a version-specific failure in Known Issues, deleted once a
newer version fixes it. Each entry goes in the notebook of the repository it belongs to, and a block
that crosses a repository boundary is recorded on both sides (references/cross-repo-notebooks.md);
a submodule's notebook change is committed in the submodule, through checkpoint like its
manifests.
Then write the run report — ONCE, at the end, after git-workflow publish has taken the PR out of
draft — and send the same report everywhere publish puts the PR description and the tracker
comment, replacing a pre-run inventory in the PR body. Send a short chat summary in the owner's
language: the headline, every dependency waiting for his decision, any manual action, links to the PR
and the tracker issue.
Derive the report from git, never from memory — the early batches of a multi-day run are long out of
context. Every line of the final bun outdated -r appears in it with a reason; a package never
attempted is a skip too. Every catalogue entry gets exactly one line under Outside the package
manager. Commands, section order and a worked example:
${CLAUDE_PLUGIN_ROOT}/skills/update-packages/references/run-report.md.
${CLAUDE_PLUGIN_ROOT}/skills/update-packages/references/batch-strategy.md — per-ecosystem safe/risky lists and the decision tree. Read when categorizing bun outdated.${CLAUDE_PLUGIN_ROOT}/skills/update-packages/references/library-mode.md — ranges, peers and bounds in shared workspaces. Read before editing a submodule's or a published workspace's manifest.${CLAUDE_PLUGIN_ROOT}/skills/update-packages/references/dependency-review.md — signals of an abandoned dependency. Read for the monthly full review.${CLAUDE_PLUGIN_ROOT}/skills/update-packages/references/run-report.md — the report's sources, sections and example. Read when writing it.${CLAUDE_PLUGIN_ROOT}/skills/update-packages/references/notebook-template.md — skeletons of both notebook files and of UPDATES.md. Read when one is missing or you add an entry.${CLAUDE_PLUGIN_ROOT}/skills/update-packages/references/updates-catalogue.md — the UPDATES.md entry format and how a run walks it. Read for Phase 5 and when adding an entry.${CLAUDE_PLUGIN_ROOT}/skills/update-packages/references/cross-repo-notebooks.md — which repository's notebook an entry goes in, consumer-caused blocks, and lifting them. Read at the start of a run in a repository with submodules, in a repository that is itself consumed as a submodule, and whenever you record a block.${CLAUDE_PLUGIN_ROOT}/skills/pipeline/references/contracts.md — what verify and git-workflow provide.references/batch-strategy.md (opens in a new tab)references/cross-repo-notebooks.md (opens in a new tab)references/dependency-review.md (opens in a new tab)references/library-mode.md (opens in a new tab)references/notebook-template.md (opens in a new tab)references/run-report.md (opens in a new tab)references/updates-catalogue.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub kedrzu/skills --plugin devOther plugins' skills for the same job
15 skills in this plugin
/buildUse for large features, new subsystems, architectural changes, or cross-cutting work that introduces new patterns or requires significant design decisions. Examples: adding a new actor system, redesigning the auth layer, building a new app module from scratch, or any work spanning 8+ files with architectural trade-offs. Do NOT use for: bug fixes or one-file tweaks (/dev:fix), a well-scoped single unit of work with no spec needed (/dev:task), a medium multi-file feature that fits one spec+plan without architecture-level design (/dev:feature), or building a closed design from docs/design/<slug>/ (/dev:deliver). When unsure between /dev:feature and /dev:build, the deciding signal is architectural design work, not file count./deliverBuild a closed design from `docs/design/<slug>/` in one run on one tracker issue: agree a high-level overview of the work, implement it milestone by milestone — each milestone something the user can see and try, not read — stop to bring back every gap, divergence or better idea the design did not settle, and land the whole thing as one PR (a stacked chain only where the project's `git-workflow` uses stacks). Use whenever the user wants a design folder built — "implement design X", "roll out X from the design", "build docs/design/<slug>", "do what we have in the design", a handoff from /dev:design — even if they do not name this skill. Do NOT use to write or change a design (/dev:design), for large work with no design folder (/dev:build designs it itself), to turn a design into tracker issues, or to fan many tasks out across worktrees.