NestJS Expert guides Claude through a NestJS feature from requirements to tests. It plans the module layout, wires dependency injection, secures endpoints with validation pipes and guards, then runs lint and tests and confirms the dependency graph with nest info.
The skill includes worked examples of a DTO with class-validator and Swagger decorators, a TypeORM-backed service that throws typed exceptions, a module definition and a Jest unit test.
What You Get
- A six-step workflow that ends in lint, test and dependency-graph checks
- Examples for a validated DTO with Swagger decorators, a controller, a TypeORM service with typed exceptions, a module and a Jest service test
- Reference files for controllers and routing, services and DI, DTO validation, authentication, testing patterns and migrating from Express
- Rules that require ValidationPipe, DTOs for every body, config through ConfigModule and no secrets in responses
- A fixed delivery order: module, controller, service, DTOs, unit tests
Common Use Cases
- Scaffolding a users module with create and lookup endpoints
- Adding JWT and Passport authentication with guards
- Documenting every endpoint with Swagger decorators
- Writing unit tests with mocked repositories and end-to-end tests with Supertest
- Migrating an Express application to NestJS
What Makes It Unique
The skill is narrow and opinionated about NestJS conventions: constructor injection only, typed HTTP exceptions thrown from services, a global validation pipe and a set order of output files. It also ties completion to running lint, tests and nest info, so a feature is not finished until the dependency graph resolves.
Under The Hood
The skill is instructions and reference markdown that Claude loads by topic; it ships no scripts. Following it, Claude writes TypeScript source and test files in your project and runs npm lint and test scripts and the nest info command. The examples touch a database through TypeORM or Prisma in your own app, and the skill does not call outside services itself.