upgrade-nestjs

upgrade-nestjs is a skill for Claude Code, Codex from Phaedra-Solutions/cursor-rules. It costs 119 tokens per session (2,763 once invoked), scanned A, original, MIT.

A guided process for upgrading a NestJS server application one major version at a time, while checking its modules, module format, queues, and tests.

In plain words
What is it for?
Use it to upgrade NestJS, migrate Bull queues to BullMQ when needed, check TypeScript and runtime settings, and verify builds, tests, and startup.
Why use it?
Framework upgrades can break package compatibility, JavaScript module loading, path aliases, or background job queues in ways that are easy to miss.

Skill for Claude CodeCodex

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

Good fit Use it to upgrade NestJS, migrate Bull queues to BullMQ when needed, check TypeScript and runtime settings, and verify builds, tests, and startup.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/phaedra-solutions/cursor-rules/upgrade-nestjs
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-nestjs
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-nestjs

README.md
[![agentmods](https://agentmods.dev/badge/skills/phaedra-solutions/cursor-rules/upgrade-nestjs/github.svg)](https://agentmods.dev/skills/phaedra-solutions/cursor-rules/upgrade-nestjs)
Your own site
<a href="https://agentmods.dev/skills/phaedra-solutions/cursor-rules/upgrade-nestjs"><img src="https://agentmods.dev/badge/skills/phaedra-solutions/cursor-rules/upgrade-nestjs/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-nestjs

Your own site · 80×15
<a href="https://agentmods.dev/skills/phaedra-solutions/cursor-rules/upgrade-nestjs"><img src="https://agentmods.dev/badge/skills/phaedra-solutions/cursor-rules/upgrade-nestjs.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 119 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,763 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.00119 $0.02763
Opus 5.5 $0.00048 $0.01105
Sonnet 5.5 $0.00024 $0.00553
Haiku 4.5 $0.00012 $0.00276

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

Security

Grade A, and why

upgrade-nestjs 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-nestjs/SKILL.md · 132 lines

How it starts

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

Upgrade NestJS

When to use

  • The user asks to upgrade NestJS, or to move off an unsupported or vulnerable version (10.x and older get no fixes; 11.x gets patches likely until the end of 2027).
  • The installed @nestjs/core is below the applies_to range of backend/nestjs (12.x) and the user agrees to upgrade.
  • The user wants to move queues from Bull (@nestjs/bull) to BullMQ (@nestjs/bullmq). That's a separate task from a version hop (Part B).

For a patch or minor upgrade within the same major, run only step 2 and Verify.

Before you start

  • Read exact versions from the lockfile: every @nestjs/* package, @nestjs/cli, @nestjs/schematics, typescript, rxjs, reflect-metadata, the platform (express/fastify), the ORM, @nestjs/bull/bull and @nestjs/bullmq/bullmq, and the test runner. Run npx nest info.

  • Read the Node version from .nvmrc, engines, the Dockerfile and CI, and the module format from package.json "type" and tsconfig.json module/moduleResolution.

  • The working tree must be clean. Ask the user to commit or stash; work on a new branch (chore/nest-12).

  • Ask the user:

    • the target (default: latest 12.x, currently 12.3.2) and whether to stop after each major for review;
    • whether the app runs on AWS Lambda or another runtime that needs extra flags;
    • whether network installs are approved. Follow the release-age cooldown in core/supply-chain; a security patch inside the cooldown needs the user's explicit exception.
  • Plan the hops. One major at a time. nest upgrade only handles 11 → 12, so older apps hop manually first:

    NestJS Node TypeScript Notes
    10.x ≥ 16 ≥ 4.8.2 unsupported
    11.x ≥ 20 ≥ 4.8.2 (5.x in practice) Express 5, Fastify 5
    12.x 20.19+ or 22.12+ to run; CLI 22.22.3+, 24.15+ or 26+ ≥ 6.0 ESM packages, loaded from CommonJS via require(esm)

    Move to Node 22 or 24 LTS before the 11 → 12 hop.

Steps

Part A: version upgrade

Read the full file on GitHub · 132 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 · 132 lines · 119 tokens per session scan A a8264b3faffd

Subscribe to this mod's changes

upgrade-nestjs is a skill published in the GitHub repository Phaedra-Solutions/cursor-rules (4 stars, last pushed 2d ago), licensed MIT. It adds 119 tokens to every session and 2,763 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.