ejirocodes avatar

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-code

Installs into .claude/skills of the current project.

Files

NestJS 11 Best Practices

Quick Reference

TopicWhen to UseReference
Core ArchitectureModules, Providers, DI, forwardRef, custom decoratorscore-architecture.md
Request LifecycleMiddleware, Guards, Interceptors, Pipes, Filtersrequest-lifecycle.md
Validation & PipesDTOs, class-validator, ValidationPipe, transformsvalidation-pipes.md
AuthenticationJWT, Passport, Guards, Local/OAuth strategies, RBACauthentication.md
DatabaseTypeORM, Prisma, Drizzle ORM, repository patternsdatabase-integration.md
TestingUnit tests, E2E tests, mocking providerstesting.md
OpenAPI & GraphQLSwagger decorators, resolvers, subscriptionsopenapi-graphql.md
MicroservicesTCP, Redis, NATS, Kafka patternsmicroservices.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

More from ejirocodes/agent-skills

All 2
1martinholovsky avatarcelery-expertmartinholovsky/claude-skills-generatorExpert Celery distributed task queue engineer specializing in async task processing, workflow orchestration, broker configuration (Redis/RabbitMQ), Celery Beat 458skills.sh installs
2postman-devrel avatarpostmanpostman-devrel/agent-skillsFull API lifecycle management through Postman. Sync OpenAPI specs to collections, generate typed client code, run API tests, create mock servers, publish docume458skills.sh installs
3aj-geddes avatarstored-proceduresaj-geddes/useful-ai-promptsImplement stored procedures and functions for database logic. Use when creating reusable database routines, complex queries, or server-side calculations.457skills.sh installs
4manutej avatarpytestmanutej/luxor-claude-marketplaceAdvanced Python unit testing framework for customer support tech enablement, covering FastAPI, SQLAlchemy, PostgreSQL, async operations, mocking, fixtures, para457skills.sh installs
5bobmatnyc avatarwordpress-advanced-architecturebobmatnyc/claude-mpm-skillsAdvanced WordPress development with REST API endpoints, WP-CLI commands, performance optimization, and caching strategies for scalable applications.455skills.sh installs
6hoodini avatargoogle-workspace-clihoodini/ai-agents-skillsInteract with all Google Workspace APIs via the gws CLI. Use when managing Drive files, sending/reading Gmail, creating Calendar events, reading/writing Sheets/455skills.sh installs