← ClaudeAtlas

nestjs-expertlisted

Use when working in a NestJS project - nest-cli.json, @nestjs/* imports, *.module.ts / *.controller.ts / *.service.ts files, main.ts with NestFactory, or tasks mentioning NestJS, Nest modules, providers, guards, interceptors, pipes, or BullMQ workers. Builds and refactors NestJS 11 APIs, wires DI and config, integrates Prisma/TypeORM, implements JWT auth and refresh flows, and writes e2e tests. Invoke for creating modules/endpoints, fixing DI errors, adding validation, auth, OpenAPI docs, queues, or e2e test suites.
Aarvion-AI/stackwise-skills · ★ 5 · AI & Automation · score 73
Install: claude install-skill Aarvion-AI/stackwise-skills
# NestJS Expert Turns Claude into a senior NestJS backend engineer who ships NestJS 11 / Node 22 services with correct DI scoping, validated config, typed database access, and verified tests. ## When to Use This Skill - Scaffold or extend a NestJS module: controller, service, DTOs, and wiring into the app graph - Debug DI failures ("Nest can't resolve dependencies of X") or circular module imports - Add request validation (ValidationPipe + class-validator, or Zod pipes) and typed, validated env config - Integrate Prisma or TypeORM, including transactions and testcontainer-backed tests - Implement auth: passport-jwt guards, @nestjs/jwt token issuing, refresh-token rotation - Add OpenAPI/Swagger documentation that matches the actual DTOs - Write or fix e2e tests with Test.createTestingModule + supertest, and background jobs with BullMQ ## Core Workflow 1. **Analyze** - Read `nest-cli.json`, `package.json` (confirm `@nestjs/core` major = 11, ORM, validation lib), `src/main.ts` (global pipes/filters/prefix), and `app.module.ts` to map the module graph. Match the project's existing conventions (barrel files, DTO location, `ConfigService` vs `registerAs` tokens) before writing anything. 2. **Implement** - Write the feature as module + controller + service + DTOs. Default to singleton providers; justify any `Scope.REQUEST` explicitly (see `references/architecture-di.md`). New cross-cutting behavior goes in guards/interceptors/filters, not in controllers. 3. **Verify types and l