# nestjs

Guides AI agents through NestJS module design using project-specific dependency injection, thin controllers, and class-validator DTOs.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 129 installs · ★ 5 repo stars
- Author: ulpi-io
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/ulpi-io/skills/tree/HEAD/nestjs/SKILL.md
- Updated: 2026-08-31
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/ulpi-io-nestjs

## What it does

This skill acts as a selective router over local guideline files. The agent inspects `references/stack.md` before touching any code. This initial step locks down the active NestJS release, the configured ORM such as Prisma or TypeORM, and the authentication setup. Only then does the assistant pull specific reference documents matching the assignment.

The workflow enforces strict framework hygiene. Controllers never house domain operations; they validate inputs through decorated DTOs and hand off execution to providers. Instantiating classes with the `new` keyword is forbidden because every dependency must arrive through constructor injection. Before finishing, the agent validates changes with module-scoped Jest runs, linter checks, and `tsc --noEmit`. Without an existing `references/stack.md` file, the workflow halts.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add ulpi-io/skills --skill nestjs -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/nestjs/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/nestjs/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add ulpi-io/skills --skill nestjs -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/nestjs/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add ulpi-io/skills --skill nestjs -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/nestjs/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install ulpi-io/skills nestjs
```

2. **Manually: put the files in place**
- File: `.github/skills/nestjs/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add ulpi-io/skills --skill nestjs -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/ulpi-io/skills --path nestjs
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/nestjs/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add ulpi-io/skills --skill nestjs -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/ulpi-io/skills/tree/HEAD/nestjs/SKILL.md

## When to use it
- scaffold domain modules without leaking business logic into controllers
- enforce request payload validation with class-validator and pipes
- integrate BullMQ queues or WebSocket gateways following repository standards
- eliminate circular module dependencies during refactoring

## Example prompts
- Create a billing module with its service, controller, and DTO validation
- Implement an auth guard that verifies incoming bearer tokens
- Configure a BullMQ processor for asynchronous email dispatch

## Similar
- [nestjs-code-review](https://affpapa.org/en/nevibecode/skills/nestjs-code-review.md) — skill · 4000 installs
- [nestjs-patterns](https://affpapa.org/en/nevibecode/skills/nestjs-patterns.md) — skill · 6900 installs
- [nestjs-expert](https://affpapa.org/en/nevibecode/agents/carlrannaberg-nestjs-expert.md) — subagent · ★ 763 repo stars
- [nestjs-anti-hallucination-cursorrules-prompt-file](https://affpapa.org/en/nevibecode/rules/nestjs-anti-hallucination-cursorrules-prompt-file.md) — rule · ★ 41178 repo stars
- [nestjs-best-practices](https://affpapa.org/en/nevibecode/skills/giuseppe-trisciuoglio-nestjs-best-practices.md) — skill · 4000 installs
- [nestjs-clean-typescript](https://affpapa.org/en/nevibecode/skills/nestjs-clean-typescript.md) — skill · 998 installs

## Other versions with the same name
- [nestjs · giuseppe-trisciuoglio](https://affpapa.org/en/nevibecode/skills/nestjs.md) — 4500 installs

From the same set: [ulpi-io/skills](https://affpapa.org/en/nevibecode/by/ulpi-io/skills.md) — 49 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
