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.
npx skills add Phaedra-Solutions/cursor-rules --skill upgrade-nodegit clone --depth 1 https://github.com/Phaedra-Solutions/cursor-rulesWrote 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.
[](https://agentmods.dev/skills/phaedra-solutions/cursor-rules/upgrade-node)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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 withbinding.gypornode-gyp/prebuildin 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
enginesas 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-chaincooldown applies).
- 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
Steps
- 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.
- 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. - Update all pins in one change:
.nvmrc/.node-version/.tool-versions→ the exact target (for example26.13.0);engines.node→>=26for 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; seedevops/docker); - CI →
node-version-file: .nvmrcor the matrix of supported lines; - deploy runtimes → the platform's matching runtime identifier.
- Reinstall and rebuild: delete
node_modules, run the clean install, and runnpm rebuildfor native modules. Update native packages that have no prebuilt binaries for the new ABI to versions that do; replace unmaintained ones (node-sass→sass). - 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-deprecatedutil.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). - 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 (
corepackor the pinnedpackageManagerversion). - Verify (next section), show the diff and results, and wait for approval; commit only when asked (
git-commitskill). Then uselanguages/javascript-node.
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.
- 3d ago First seen · 70 lines · 114 tokens per session scan A d37eca249fcd
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.
Other skills, from other repositories
python-expert
Use for Python code changes, FastAPI/Django/Flask services, packaging, typing, async, pytest, data scripts, dependency hygiene, or Python performance fixes.
flask
Skill "flask" from rishapgandhi/python-skills, covering flask skill, stack, project structure, app factory and app/init.py.
django
Skill "django" from rishapgandhi/python-skills, covering django skill, stack, project structure, settings pattern (split by environment) and config/settings/base.py.
drf
Skill "drf" from rishapgandhi/python-skills, covering django rest framework (drf) skill, stack additions (on top of django), settings, config/settings/base.py and serializer standards.
fastapi
Skill "fastapi" from rishapgandhi/python-skills, covering fastapi skill, stack, project structure (fastapi-specific additions), app factory pattern and app/main.py.
python-patterns
Pythonic idioms, PEP 8 standards, type hints, and best practices for building robust, efficient, and maintainable Python applications.