package-upgrade

Upgrades npm and Cargo dependencies while auditing vulnerabilities and minimizing override debt.

1|Updated Jan 31, 2026
One-click install
npx skills add https://github.com/tktcorporation/cli-sim-game-escape --skill package-upgrade-tktcorporation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: package-upgrade
Source: https://github.com/tktcorporation/cli-sim-game-escape/tree/main/.claude/skills/package-upgrade
Command: npx skills add https://github.com/tktcorporation/cli-sim-game-escape --skill package-upgrade-tktcorporation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Dependency updates often introduce supply-chain risks (like Shai-Hulud worms), leave known vulnerabilities unpatched, or accumulate override debt in pnpm.overrides and [patch.crates-io]. This Skill turns version bumps into a disciplined workflow that prioritizes security fixes, inspects lockfile diffs, and actively reduces existing overrides. ## Core Features & Use Cases - Vulnerability-first triage: Runs pnpm audit, cargo audit, and outdated checks to prioritize security fixes over routine bumps, and cross-checks accepted-advisory ledgers. - Supply-chain hardening: Respects pnpm minimumReleaseAge cooldowns, strictDepBuilds, and blockExoticSubdeps, and requires human review of lockfile diffs for unexpected transitive deps or new build scripts. - Override debt management: Exhausts alternatives (direct dependency upgrades, upstream fixes, documented acceptance) before adding overrides, and audits existing overrides each run to remove ones that are no longer needed. - Use Case: When dependabot opens a PR or pnpm audit reports a GHSA advisory, run this workflow to safely bump the package, verify the lockfile diff, decide whether an override is justified, and add the correct changeset so the release pipeline fires. ## Quick Start Update the vulnerable dependencies in this repo, check the lockfile diff for anything suspicious, and see if any existing pnpm overrides can be removed.

Frequently Asked Questions about package-upgrade

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I safely update npm dependencies with pnpm?

Start with pnpm audit to prioritize vulnerable packages, then run pnpm update for targeted packages rather than updating everything. Always review the lockfile diff with git diff pnpm-lock.yaml for unexpected transitive dependencies or new build scripts before committing.

How do I fix a vulnerability in a transitive dependency?

First try upgrading the direct dependency that pulls it in, then check whether upstream has a fix in progress. If neither works and the attack surface is real, add a pnpm.overrides entry with documented removal conditions; otherwise record it as an accepted risk.

What does pnpm minimumReleaseAge do for supply-chain security?

minimumReleaseAge enforces a cooldown so pnpm only resolves package versions published more than a set time ago, preventing freshly published malicious versions from being installed. Avoid adding minimumReleaseAgeExclude entries except for urgent hotfixes.

Why does pnpm install fail with strictDepBuilds enabled?

strictDepBuilds fails the install when a dependency outside the allowBuilds list contains a build script, blocking malicious postinstall code. Investigate what the script does before adding the package to the allowlist rather than silencing the error.

When should I remove an existing pnpm override?

Check on every dependency update whether the parent dependency now pulls a fixed version of the overridden package using pnpm why and pnpm outdated. If upstream has fixed the issue, delete the override, run pnpm install, and verify audit and tests pass.

Does a dependency update require a changeset?

A changeset with a version bump is required when the update changes runtime artifacts, such as security fixes to shipped libraries. Updates limited to devDependencies or CI tooling can use an empty changeset or none, depending on the repository's CI requirements.