/deps:upgrade-risk <package>[@|==target] | python X.Y | node N | <PR number or URL>from deps
Assesses upgrade risk for Python and Node/JS dependencies and runtimes. Produces a go/no-go report grounded in actual repository usage, citing breaking changes with file:line references.
Ships in deps. 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.
Answers one question: what breaks in this repo if we move to the target version. A changelog summary anyone could get from the release notes is a failed run.
<no_mutation priority="critical">
This skill installs nothing, upgrades nothing, and writes no file in the repo. Lock files,
manifests (pyproject.toml, package.json), the virtualenv and node_modules are left
exactly as found — every resolver command is a dry run. If the only way to answer something is
to actually install, that item is reported as UNKNOWN with the command the user can run, not
resolved by installing it.
In PR mode the same holds for the PR: no checkout of its branch, no comment, no review, no
@dependabot command, no merge. gh api is used for GET requests only — never with -X,
--method, -f or -F. The report recommends the Dependabot command; the user posts it.
</no_mutation>
<evidence_rule priority="critical"> Every claim carries its grounding, and the verdict is capped by the weakest one:
file:line from Phase 1. No citation, no APPLIES.X.render_to_string";
"grep over **/*.py plus settings modules found no reference").Never state a version, a CVE id, or a changelog entry that did not come from a fetched page or a command's output in this run. Recalled-from-training release notes are wrong often enough to make the whole report worthless. A PR body (Dependabot's, Renovate's, a bot reviewer's) is a claim to check, not a source: the diff and the registry are the source. </evidence_rule>
Parse $ARGUMENTS into one mode:
| Mode | Trigger | Extra reading, before Phase 1 |
|---|---|---|
| PR | a PR number (141, #141) or a GitHub PR URL | dependabot-pr.md — it decides the target(s) and which mode each one runs in |
| PYTHON | python 3.13, python3.12, "the Python version" | python-version.md |
| NODE | node 24, node22, "the Node version" | node-version.md |
| PACKAGE | anything else | — |
Then detect the ecosystem of each package from the manifests present, and read its resolver reference:
| Evidence | Ecosystem | Reference |
|---|---|---|
pyproject.toml, uv.lock, poetry.lock, requirements*.txt, Pipfile.lock | Python | resolvers.md |
package.json + package-lock.json / pnpm-lock.yaml / yarn.lock / bun.lock* | Node/JS | node.md |
A repo can hold both; the package name decides (@scope/x and anything only in
package.json is Node). When a name exists in both registries, say which one you mean.
From the reference:
>=4.2 and ^2.31.1 are ranges, not versions. No lock file ⇒ say so and use the installed
version, flagging that CI may resolve differently.State current → target explicitly before going on. Everything downstream is wrong if this is.
Find where this repo actually touches the package. Not the manifest — the code.
Beyond plain imports (import X, from X import, import … from 'x', require('x')), sweep
the places static import scans miss — the ecosystem reference lists them (Django settings and
entry points for Python; dynamic import(), bundler/test/lint config, scripts and type-only
imports for Node), plus the package's own CLI in Makefiles / CI workflows / Dockerfiles.
Flag the usages that survive a major bump badly — these drive the verdict:
_-prefixed names, .internal, .compat, deep imports into dist/ or
lib/ paths, anything not in the public docs or the package's exports map.Meta classes.ctypes/cffi, numpy dtypes, protobuf,
Node native addons (node-gyp, prebuilt .node binaries).Transitive dependency with no first-party usage: the surface that decides APPLIES is how
the direct parent calls it. Read the parent's installed code (node_modules/<parent>/…,
site-packages/<parent>/…, at the version the lock pins) and list those call sites, plus the
first-party entry point that reaches the parent. "No first-party usage" alone is not a reason
for DOES NOT APPLY.
Output a table: file:line · symbol · category · why it is fragile. This table is the only
thing Phase 2 is allowed to cite.
Fetch the release notes for every version between current and target — not just the target (sources in the ecosystem reference). Skipping the intermediate majors is the most common way this report misses the break that actually bites.
For each breaking change, deprecation, removal, and runtime floor change (requires_python,
engines.node): one line, one verdict from the evidence rule above, citing Phase 1 — or, for a
runtime floor, citing every place the repo declares its runtime. Drop nothing silently — a
changelog entry with no bearing here is reported as DOES NOT APPLY, so the reader can see it
was considered.
Run the manager's dry-run resolution (ecosystem reference) and report what it actually says. Inferring peer conflicts by reading the manifest is guesswork and gets this section wrong; if the resolver cannot run here (no lock, offline, private registry unreachable), mark the whole section UNVERIFIED, print the command, and let the verdict absorb the hit. In PR mode, the PR's own lock diff and its CI install step are resolver output — see dependabot-pr.md.
Name every pin the resolver has to move, every dependency that has no release supporting the target, and every package that ends up installed twice at different versions.
The ecosystem's audit tool (pip-audit, npm audit / pnpm audit / yarn npm audit) against
the current state for what the upgrade fixes; the project's advisories or the changelog for
what the target introduces. Cite ids only from tool output or a fetched page. If the tool is
not installed or cannot reach its registry, that is UNKNOWN plus the command — not "no CVEs
found".
Map the Phase 1 files to coverage data, in this order:
coverage.xml, .coverage, htmlcov/, coverage.json;
Node: coverage/lcov.info, coverage/coverage-final.json, coverage/coverage-summary.json.
Report its timestamp; stale coverage is evidence with an asterisk, not a fact. A coverage
comment a CI bot left on the PR counts as an artifact with the PR head as its timestamp,
but only for totals — it rarely names the files you need. An artifact that does not contain
the Phase 1 files counts as no artifact for those paths.An APPLIES item on a path with no coverage is the single strongest no-go signal in the report.
Template, verdict rules and rollback strategies: report-format.md.
The verdict is capped, not chosen freely: go is unavailable while any APPLIES item is uncovered or any section is UNVERIFIED — the honest answer there is go-with-caveats, with the caveats being exactly those items. In PR mode the verdict is also translated into a PR action (merge / fix the branch then merge / close and wait). Close the report with what was not verified and the command that would close each one.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub juanmhidalgo/claude-plugins --plugin deps