
Nestjs Patterns
This gives you production-ready NestJS patterns covering the full stack: module organization, DTO validation with class-validator, guards and interceptors, environment config validation, and testing setups that mirror your runtime pipes and filters. It pushes you toward thin controllers with business logic in services, consistent error envelopes, and validated config that fails fast at boot instead of at first request. The common folder structure and auth examples are immediately useful if you're past the tutorial phase and need to know where guards actually go or how to stop leaking password hashes in responses. Opinionated enough to save you from analysis paralysis on folder layout, but the patterns are standard NestJS rather than some custom framework.
- skills.sh installs
- 4.1K
- GitHub stars
- 229.1K
- last updated
- Jul 14, 2026
Install
$ npx -y skills add affaan-m/everything-claude-code --skill nestjs-patterns --agent claude-codeInstalls into .claude/skills of the current project.
Files
NestJS Development Patterns
Production-grade NestJS patterns for modular TypeScript backends.
When to Activate
- Building NestJS APIs or services
- Structuring modules, controllers, and providers
- Adding DTO validation, guards, interceptors, or exception filters
- Configuring environment-aware settings and database integrations
- Testing NestJS units or HTTP endpoints
Project Structure
src/
├── app.module.ts
├── main.ts
├── common/
│ ├── filters/
│ ├── guards/
│ ├── interceptors/
│ └── pipes/
├── config/
│ ├── configuration.ts
│ └── validation.ts
├── modules/
│ ├── auth/
│ │ ├── auth.controller.ts
│ │ ├── auth.module.ts
│ │ ├── auth.service.ts
│ │ ├── dto/
│ │ ├── guards/
│ │ └── strategies/
│ └── users/
│ ├── dto/
│ ├── entities/
│ ├── users.controller.ts
│ ├── users.module.ts
│ └── users.service.ts
└── prisma/ or database/
- Keep domain code inside feature modules.
- Put cross-cutting filters, decorators, guards, and interceptors in
common/. - Keep DTOs close to the module that owns them.
Bootstrap and Global Validation
Sponsors
Details
- Repository
- github.com/affaan-m/everything-claude-code
- First seen
- Apr 16, 2026
More from affaan-m/everything-claude-code
All 256- Autonomous Agent Harness4K
- Benchmark4K
- Brand Voice4K
- Healthcare Phi Compliance4K
- Laravel Plugin Discovery4K
- Repo Scan4K
- Safety Guard4K
- Seo4K
- Agent Payment X4023.9K
- Canary Watch3.9K
- Ck3.9K
- Council3.9K
- Dart Flutter Patterns3.9K
- Healthcare Cdss Patterns3.9K
- Healthcare Emr Patterns3.9K
- Product Lens3.9K
- Token Budget Advisor3.9K
- Customer Billing Ops3.8K
- Dashboard Builder3.8K
- Healthcare Eval Harness3.8K
- Manim Video3.8K
- Ui Demo3.8K
- Agent Introspection Debugging3.7K
- Connections Optimizer3.7K