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-nestjsgit 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-nestjs)<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.
<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>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.00119 | $0.02763 |
| Opus 5.5 | $0.00048 | $0.01105 |
| Sonnet 5.5 | $0.00024 | $0.00553 |
| Haiku 4.5 | $0.00012 | $0.00276 |
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.
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/coreis below theapplies_torange ofbackend/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/bulland@nestjs/bullmq/bullmq, and the test runner. Runnpx nest info. -
Read the Node version from
.nvmrc,engines, the Dockerfile and CI, and the module format frompackage.json"type"andtsconfig.jsonmodule/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 upgradeonly 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
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 · 132 lines · 119 tokens per session scan A a8264b3faffd
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.
Other skills, from other repositories
x-api
X/Twitter API integration for posting tweets, threads, reading timelines, search, and analytics. Covers OAuth auth patterns, rate limits, and platform-native content posting. Use when the user wants to interact with X programmatically.
nextjs-fullstack
Use for Next.js App Router, React Server Components, server actions, API routes, auth, database integration, caching, deployment, or full-stack product features.
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.