Nestjs Patterns
Architecture patterns for NestJS modules, DTO validation, guards, and production TypeScript backends.
- CCM score
- 75 of 100
- skills.sh installs
- 11.9K
- GitHub stars
- 312.6K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers modules, controllers, providers, DTO validation, guards, interceptors, exception filters, config, persistence, and testing
- Includes code examples for global
ValidationPipesetup, thin controllers with injectable services, and a shared error envelope - Enforces
whitelistandforbidNonWhitelistedon public APIs and validates env at boot rather than on first request - Designed for teams building or reviewing modular NestJS backends with Prisma or TypeORM
Install
$ npx -y skills add affaan-m/ecc --skill nestjs-patterns -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
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
Details
- Repository
- github.com/affaan-m/ecc
- Categories
- Backend & APIs, Frontend & UI Code
- First seen
- Jul 14, 2026
Questions
What does the nestjs-patterns skill do?
The nestjs-patterns skill gives the agent NestJS architecture patterns for modules, controllers, providers, DTO validation, guards, interceptors, config, and production-grade TypeScript backends. It covers building or reviewing a NestJS backend, including modules, providers, DTO validation, guards, or interceptors.
How do I install the nestjs-patterns skill?
Run npx -y skills add affaan-m/ecc --skill nestjs-patterns -y in your project. After that, the agent can follow the NestJS patterns when you build or review a NestJS backend.
Where does nestjs-patterns rank in the Backend & APIs category?
nestjs-patterns ranks in the top 100 of the Backend & APIs category on Claude Marketplaces. It is aimed at developers building or reviewing NestJS APIs and services, with guidance on DTO validation, guards, interceptors, exception filters, config, and testing.
Which skills lead nestjs-patterns in the Backend & APIs category?
The other top skills in the Backend & APIs category include entra-app-registration, neon, firebase-basics, firebase-auth-basics, and workers-best-practices. nestjs-patterns covers NestJS-specific architecture, so it suits projects built on that framework.
More from affaan-m/ecc
All 257- Data Scraper Agent11.9K
- Hexagonal Architecture11.9K
- Mcp Server Patterns11.9K
- Plankton Code Quality11.9K
- Fal Ai Media11.8K
- Visa Doc Translate11.8K
- Inventory Demand Planning11.8K
- Customs Trade Compliance11.8K
- Brand Voice11.8K
- Seo11.7K
- Kotlin Ktor Patterns11.7K
- Enterprise Agent Ops11.7K
- Quality Nonconformance11.7K
- Ralphinho Rfc Pipeline11.7K
- Crosspost11.7K
- Agent Eval11.7K
- Production Scheduling11.6K
- Videodb11.6K
- Nanoclaw Repl11.6K
- Logistics Exception Management11.6K
- Kotlin Exposed Patterns11.6K
- Carrier Relationship Management11.6K
- Energy Procurement11.6K
- Nuxt4 Patterns11.5K
Similar to Nestjs Patterns
More Backend & APIsnestjs-best-practicesSkillkadajett/agent-nestjs-skills32.5K installsNestJS guidance of 40 prioritized rules covering architecture, dependency injection, security, and performance for production apps.
nestjs-expertSkilljeffallan/claude-skills6.4K installsEnterprise NestJS specialist that scaffolds modules, controllers, services, DTOs, and guards with typed errors.
api-developmentSkillmindrally/skills882 installsGuidelines for building APIs with Go's standard library and NestJS, covering validation, security, and modules.
nodejs-best-practicesSkillsickn33/agentic-awesome-skills14.1K installsNode.js architecture guidance that selects frameworks, async patterns, and security controls by deployment context.
nestjsPluginTheBushidoCollective/han201 starsAdvanced NestJS skills for dependency injection, guards, and testing.
nodejs-backend-patternsSkillwshobson/agents51.1K installsProduction-ready Node.js backend patterns for Express or Fastify services, REST, GraphQL, and microservices.