Coding agents often rely on older NestJS patterns from their training data instead of current framework APIs, according to Rig Labs. To close that gap, NestJS shipped six official skills covering project setup, endpoints, authentication, data persistence, testing and production deployment. The release gives backend builders a way to steer agents toward current first-party packages without manually invoking prompts.1

How it works

Six folders target production bugs that pass tests

Each skill is a folder containing a SKILL.md rules file and a references/ folder of longer recipes, according to the repository README. They follow the Agent Skills format, a portable specification that lets coding agents load matching instructions automatically. The README says the skills specifically guard against mistakes that still pass automated tests, such as a sign-in endpoint that leaks which emails exist or a rate limiter that never sees the user.2

For example, a builder adding a login route can rely on the nestjs-auth skill to handle passwords, sessions, tokens, API keys and permission policies using @nestjs/authentication and @nestjs/authorization, the README explains. Another skill, nestjs-feature, covers validation with Zod or class-validator and prevents @IsOptional() from letting null values trigger a 500 error. NestJS states in the README that it ran every recipe on the released versions of its packages.2

One npm command installs skills for project teams

Builders can install the skills for a single project or globally for their user account using the @nestjs/skills npm package, the README says. Running npx @nestjs/skills add copies all six folders into .agents/skills/, which Codex and Cursor read by default. Adding --agent claude targets .claude/skills/ for Claude Code, while --agent all writes to both directories at once. Committing the project folder shares the skills with the whole team, and npx @nestjs/skills remove deletes only folders marked by the installer.2

Version limits and documentation checks apply

The skills are written for NestJS 12 (@nestjs/core 12.x) on Node.js 20 or later, according to the compatibility section of the README. NestJS tested the recipes against Nest 12.5.1 alongside current releases of @nestjs/drizzle, @nestjs/typeorm, @nestjs/throttler and @nestjs/swagger. Because project setups vary, the skills instruct the agent to check the installed package version and the official NestJS documentation before acting on memory.2

Try it

  1. Run npx @nestjs/skills add --agent claude in a NestJS project to install the skills for Claude Code, or omit the flag for Codex and Cursor.12
  2. Commit the generated .claude/skills/ or .agents/skills/ folder to the repository so the whole team gets the skills.12
  3. Ask the coding agent to review a sign-in endpoint against the nestjs-auth skill and list proposed changes before editing any code.1
  4. Run npx @nestjs/skills remove to delete the installed skill folders if they are no longer needed.12