p-eng
Installation
SKILL.md
NestJS DDD Patterns
Comprehensive Domain-Driven Design patterns and templates for NestJS backend development with CQRS architecture. This skill provides battle-tested patterns for building maintainable, scalable backend systems following DDD principles.
When to Apply
Use this skill when:
- Building new domain modules in NestJS
- Implementing aggregates, entities, and value objects
- Setting up CQRS command and query handlers
- Creating repository patterns with clean architecture
- Structuring domain services and business logic
- Ensuring separation of concerns across layers
Architecture Overview
The patterns follow a 4-layer DDD architecture: