upgrade-node

upgrade-node is a skill for Claude Code, Codex from Phaedra-Solutions/cursor-rules. It costs 114 tokens per session (1,439 once invoked), scanned A, original, MIT.

A guided process for upgrading Node.js, the runtime that executes JavaScript outside the browser, to a supported long-term-support release.

In plain words
What is it for?
Use it to update Node pins and related type packages, rebuild native dependencies, handle API changes, and verify tests and a production image.
Why use it?
It keeps version settings consistent across local development, packages, CI, containers, and hosting, while exposing native modules and changed APIs that need attention.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to update Node pins and related type packages, rebuild native dependencies, handle API changes, and verify tests and a production image.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/phaedra-solutions/cursor-rules/upgrade-node
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Phaedra-Solutions/cursor-rules --skill upgrade-node
Clone the repo
git clone --depth 1 https://github.com/Phaedra-Solutions/cursor-rules

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for upgrade-node

README.md
[![agentmods](https://agentmods.dev/badge/skills/phaedra-solutions/cursor-rules/upgrade-node/github.svg)](https://agentmods.dev/skills/phaedra-solutions/cursor-rules/upgrade-node)
Your own site
<a href="https://agentmods.dev/skills/phaedra-solutions/cursor-rules/upgrade-node"><img src="https://agentmods.dev/badge/skills/phaedra-solutions/cursor-rules/upgrade-node/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for upgrade-node

Your own site · 80×15
<a href="https://agentmods.dev/skills/phaedra-solutions/cursor-rules/upgrade-node"><img src="https://agentmods.dev/badge/skills/phaedra-solutions/cursor-rules/upgrade-node.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 114 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,439 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00114 $0.01439
Opus 5.5 $0.00046 $0.00576
Sonnet 5.5 $0.00023 $0.00288
Haiku 4.5 $0.00011 $0.00144

Measured 3d ago against content hash d37eca249fcd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

upgrade-node scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/upgrade-node/SKILL.md · 70 lines

How it starts

The opening of the file, as written. The whole thing — 70 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Upgrade Node.js

When to use

  • The user asks to upgrade Node, or the project runs an EOL line (20 or older, or 25/23/21) — see legacy/node-legacy.
  • Node 22 is in use and the user wants to move before its EOL on 30 Apr 2027.
  • A dependency now requires a newer Node.

For a minor or patch update on a supported line, update the pins (step 3) and run Verify.

Before you start

  • List every place that pins Node, and note mismatches: .nvmrc, .node-version, .tool-versions, volta, engines.node, packageManager, Dockerfiles (FROM node:…), CI (node-version:, matrices), serverless and PaaS runtimes (runtime: nodejs20.x, vercel.json, buildpacks), and @types/node.
  • List native and toolchain-sensitive dependencies: bcrypt, sharp, canvas, sqlite3/better-sqlite3, node-sass, grpc, anything with binding.gyp or node-gyp/prebuild in its install scripts (npm ls --all | grep -E "gyp|prebuild").
  • Working tree clean; new branch (chore/node-26).
  • Ask the user:
    • the target: Node 26 (Active LTS since 28 Oct 2026, EOL 30 Apr 2029; longest runway) or Node 24 (Maintenance LTS, EOL 30 Apr 2028; more conservative). Default to 26 for apps, and for libraries keep engines as wide as the supported lines (>=22);
    • where it runs (containers, serverless, PaaS) and whether that platform offers the target runtime yet;
    • whether network installs are approved (core/supply-chain cooldown applies).

Steps

  1. Baseline on the current version: clean install, lint, typecheck, tests, build, and start the production image. Record failures; don't blame them on the upgrade later.
  2. Plan the hop. Go straight to the target when tests are good and there are no unmaintained native modules. From 18 or older with native modules or old toolchains (Webpack 4, node-sass, Jest < 29), hop one LTS at a time (18 → 20 → 22 → 24/26) and fix each hop.
  3. Update all pins in one change:
    • .nvmrc / .node-version / .tool-versions → the exact target (for example 26.13.0);
    • engines.node → >=26 for apps (or the supported range for libraries);
    • @types/node → the target major (npm install -D @types/node@26);
    • Dockerfiles → node:26-slim@sha256:<digest> (look up the real digest; see devops/docker);
    • CI → node-version-file: .nvmrc or the matrix of supported lines;
    • deploy runtimes → the platform's matching runtime identifier.
  4. Reinstall and rebuild: delete node_modules, run the clean install, and run npm rebuild for native modules. Update native packages that have no prebuilt binaries for the new ABI to versions that do; replace unmaintained ones (node-sass → sass).
  5. Fix API changes. Run the tests and read deprecation warnings (node --trace-deprecation). The Node.js userland migrations project publishes codemods for common removals; review their diffs. Typical items: removed or runtime-deprecated util.is*, url.parse() → new URL(), Buffer() constructor → Buffer.from/alloc, fs.rmdir(…, { recursive }) → fs.rm, crypto defaults, and stricter TLS (old ciphers and certificates rejected).
  6. Tooling: update the test runner, bundler and TypeScript if they don't support the new Node (Vitest 5 and Jest 30 support current LTS lines), and the package manager (corepack or the pinned packageManager version).
  7. Verify (next section), show the diff and results, and wait for approval; commit only when asked (git-commit skill). Then use languages/javascript-node.

Read the full file on GitHub · 70 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 70 lines · 114 tokens per session scan A d37eca249fcd

Subscribe to this mod's changes

upgrade-node is a skill published in the GitHub repository Phaedra-Solutions/cursor-rules (4 stars, last pushed 2d ago), licensed MIT. It adds 114 tokens to every session and 1,439 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-01.