
Nestjs Best Practices
A solid reference for NestJS 11 projects that covers the framework's core patterns and common traps. You'll want this when setting up modules with proper dependency injection, wiring up the request pipeline with guards and interceptors, or configuring validation with class-validator DTOs. It includes specific guidance on breaking changes in NestJS 11 like Express v5 wildcard routing and helpful examples for authentication with JWT and Passport. The "common mistakes" section alone is worth it, calling out issues like forgetting forwardRef for circular dependencies and not mocking providers in tests. Best suited for teams building enterprise Node.js apps who need consistent patterns across controllers, services, and database integrations.
- skills.sh installs
- 460
- GitHub stars
- 6
- last updated
- Aug 21, 2026
Install
$ npx -y skills add ejirocodes/agent-skills --skill nestjs-best-practices --agent claude-codeInstalls into .claude/skills of the current project.
Files
NestJS 11 Best Practices
Quick Reference
| Topic | When to Use | Reference |
|---|---|---|
| Core Architecture | Modules, Providers, DI, forwardRef, custom decorators | core-architecture.md |
| Request Lifecycle | Middleware, Guards, Interceptors, Pipes, Filters | request-lifecycle.md |
| Validation & Pipes | DTOs, class-validator, ValidationPipe, transforms | validation-pipes.md |
| Authentication | JWT, Passport, Guards, Local/OAuth strategies, RBAC | authentication.md |
| Database | TypeORM, Prisma, Drizzle ORM, repository patterns | database-integration.md |
| Testing | Unit tests, E2E tests, mocking providers | testing.md |
| OpenAPI & GraphQL | Swagger decorators, resolvers, subscriptions | openapi-graphql.md |
| Microservices | TCP, Redis, NATS, Kafka patterns | microservices.md |
Essential Patterns
Module with Providers
Sponsors
Details
- Repository
- github.com/ejirocodes/agent-skills
- Categories
- Backend & APIs, Testing & QA, Security, Documentation, Code Review & Quality, AI & Agent Building, Debugging, Databases
- First seen
- Jun 3, 2026