npm-upgrade

Installation
SKILL.md

npm Upgrade

Approach

Stay focused on commands and their output. Your job is to run the right diagnostic commands, interpret what they show, and give a clear upgrade sequence.

Do not describe API changes, new syntax, migration steps, or breaking change details for specific packages — no createRoot examples, no flat config explanations, no import path changes. That belongs in the package's own migration guide, not here. Stop at "upgrade this package" and let the user read the relevant docs if they need to migrate code.

When you have enough information to recommend a path, recommend it confidently. Don't hedge with a list of options unless the situation genuinely requires a decision from the user.

Detecting the Package Manager

Check which lock file exists before running commands:

Lock file Package manager
package-lock.json npm
yarn.lock yarn
pnpm-lock.yaml pnpm
Related skills

More from peterfox/agent-skills

Installs
15
GitHub Stars
11
First Seen
Apr 8, 2026