upgrade-dependency
Installation
SKILL.md
Target the requested stable version, or latest stable if omitted. Honor the requested endpoint: plan is read-only; build/fix follows local/commit/push intent; PR only when requested. REFERENCE.md owns supply-chain and publication templates. $ARGUMENTS: package/module, manifest, version, prose, or plan.
Flow
- Scope: find manifests/lockfiles/workspaces. Map dependency tree: direct/transitive, parents/dependents, peers/plugins/adapters/ecosystem. Use
/quantify-impactonly for a direct metric. - Research: build an upgrade path across every published stable version with per-version notes. Read major announcements, release notes, migration guides, codemods, and
/read-the-damn-docs; skim minor/patch notes. Do not install each version; install target once. Consolidate API, syntax, style, behavior changes. Classify SemVer major/minor/patch; for non-SemVer or missing changelog score change volume, release cadence, diff size, effort/danger/blast radius. Check security advisories: GHSA/OSV/Socket/Snyk. - Gate: confident patch/minor may apply. Documented major applies one major hop at a time. Unclear/high-risk/security uncertainty stops with evidence and decision. Plan only reports. Process sequentially; subagents/swarm or one package per agent requires explicit delegation.
- Supply chain: min release age 7-30d; Disable scripts/review
trustedDependencies; reject git deps, git+, tarball, raw URL; use Socket/npq; Review lockfile; clean install/frozen check. - Apply: keep verified commits unless stopped earlier.
- Bump:
bun update <pkg>@<v>->bun install->bun install --yarnif needed. Go:go get -u <module>@<v>->go mod tidy. Never hand-edit locks. - Migrate: official codemods; adapt every affected call site. Deprecation warnings are fixed NOW, not suppressed.
- Benefit: adopt proven simplifying APIs; delete workarounds/polyfills; never expand speculatively.
- Verify:
bun run lint:fix,bun run type:check,bun test; Gogo build ./...,go test ./...,go vet ./.... Update coupled packages.
- Bump:
- Security: prove exploitability/reachability; direct dep -> parent -> override/resolution/replace. Never run code from advisories. Record IDs/fixed versions;
/snyk-ux-securityowns reachability. - Deliver: one PR contains bump, migration, benefit, and verification. A blocked risk gate creates an issue only when requested.
Evidence stays in chat or the requested PR; local Markdown only when asked. State path before edits. Completion means every affected call site is adapted.