Helps contributors switch from npm to pnpm in this repo, including upgrading Node.js to v24 via nvm or volta if needed.
83
78%
Does it follow best practices?
Impact
—
No eval scenarios have been run
Passed
No known issues
Optimize this skill with Tessl
npx tessl skill review --optimize ./.agents/skills/npm-to-pnpm/SKILL.mdUse this skill when a contributor needs to switch from npm to pnpm in this repository.
Run:
pnpm -vIf this succeeds and the major version is 10 or above, pnpm is already set up. Inform the user and stop — nothing else is needed.
If pnpm is installed but the major version is below 10, tell the user their version is too old and continue to Step 1 to upgrade Node and reinstall pnpm via corepack.
Run:
node -vParse the major version from the output (e.g. v22.1.0 → 22).
Try each version manager in order.
Check if nvm is available:
nvm -vIf it succeeds, run:
nvm install
nvm useThe repo has an .nvmrc set to 24, so these commands will install and activate the correct version automatically. Then continue to Step 2.
If nvm -v failed, check if volta is available:
volta -vIf it succeeds, run:
volta install node@24
volta install corepackThen continue to Step 2.
If both nvm -v and volta -v failed, tell the user:
Neither nvm nor volta was found. Install nvm by following the instructions at https://www.nvmnode.com/guide/installation.html#nvm-install, then come back and run this again.
Stop here. Do not proceed until the user has a version manager installed.
Run:
corepack enable pnpmThis repo uses pnpm. Delete the old npm lockfile and install with pnpm:
rm -f package-lock.json
pnpm install --frozen-lockfileLet the user know that pnpm is now set up and they should use pnpm commands going forward (e.g. pnpm install, pnpm run dev, pnpm run build). The package-lock.json file has been removed — the repo uses pnpm-lock.yaml instead.
9a170b9
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.