# NestJS agent skills for Claude Code, Codex and Cursor

> NestJS released six official agent skills on 2026-11-20 that teach Claude Code, Codex and Cursor current Nest APIs. Install with npx @nestjs/skills add.

- Published: 2026-11-21
- Publisher: Rig Labs (https://riglabs.ai/)
- Canonical: https://riglabs.ai/blog/nestjs-agent-skills/
- Answers: NestJS agent skills
- Agent file (a short card for your agent): https://riglabs.ai/blog/nestjs-agent-skills/AGENT.md

---

NestJS released six official agent skills on November 20, 2026, in the MIT-licensed [nestjs/agent-skills](https://github.com/nestjs/agent-skills) repository. They teach coding agents such as Claude Code, Codex and Cursor the current NestJS APIs, its first-party packages and the mistakes that still pass tests, and they install with `npx @nestjs/skills add`.

What you can now do: if you build a backend with NestJS, your coding agent can follow the framework's own rules instead of older patterns from its training data, and avoid bugs that your tests would not catch.

## What are the NestJS agent skills?

The NestJS agent skills are six folders, each with a `SKILL.md` of rules and a `references/` folder of longer recipes, per the repository's README. They follow the Agent Skills format, so any agent that reads it can load them. An agent picks a skill up when its description matches the task, so nobody invokes one by hand. The README says NestJS ran every recipe on the released versions of its packages.

| Skill | Use when |
|---|---|
| `nestjs` | Starting or extending an app: layout, modules, where the docs are |
| `nestjs-feature` | Adding endpoints: validation, status codes, errors, Server-Sent Events |
| `nestjs-auth` | Sign-in, sessions, tokens, API keys, permission policies |
| `nestjs-data` | Drizzle and TypeORM, migrations, paging, transactions |
| `nestjs-testing` | Unit, service and end-to-end tests |
| `nestjs-production` | Configuration, logs, health checks, rate limiting, OpenAPI, deployment |

## Which mistakes do the NestJS skills target?

The NestJS skills target mistakes that still pass tests. The README names these: a sign-in that leaks which emails exist, `@IsOptional()` letting `null` through to a 500 error, a rate limiter that never sees the user, and an event stream that outlives a revoked key. Each one works in a demo and fails in production.

## How do you install the NestJS skills for Claude Code?

The NestJS skills install with one npm command, per the README. By default it copies them into `.agents/skills/`, which Codex and Cursor read. Claude Code reads `.claude/skills/`, so add `--agent claude`:

| Command | Installs for |
|---|---|
| `npx @nestjs/skills add` | Codex and Cursor, this project |
| `npx @nestjs/skills add --agent claude` | Claude Code, this project |
| `npx @nestjs/skills add --agent all` | Codex, Cursor and Claude Code |
| `npx @nestjs/skills remove` | Removes what it installed |

A project install is committed with the code, so the whole team gets the skills. Sulat AI reports that the skills target NestJS 12 on Node.js 20 or later, and that each tells the agent to check the installed version and the docs first ([Sulat, 2026-11-21](https://news.sulat.com/2026/11/21/nestjs-agent-skills/)).

## What to do today

In a NestJS project that uses Claude Code, run:

```bash
npx @nestjs/skills add --agent claude
```

Then ask Claude Code to review your sign-in endpoint against the `nestjs-auth` skill, and to list what it would change before it edits anything.

Last checked 2026-11-21.

Sources:
- [GitHub: nestjs/agent-skills](https://github.com/nestjs/agent-skills)
- [Sulat AI: NestJS ships six official agent skills, 2026-11-21](https://news.sulat.com/2026/11/21/nestjs-agent-skills/)
- [@RRweb3 on X, 2026-11-21](https://x.com/RRweb3/status/2124058897266925595)
