What problem does it solve?
This Skill solves the complexity of implementing Domain-Driven Design (DDD) and Clean Architecture in NestJS projects. It ensures strict separation of concerns, promotes testability, and prevents common anti-patterns, leading to maintainable and scalable applications.
Core Features & Use Cases
- Architectural Enforcement: Guides the creation of aggregates, entities, value objects, and use cases following DDD principles, strictly separating domain from infrastructure.
- NestJS Integration Best Practices: Configures NestJS modules, providers, controllers, DTOs, and presenters idiomatically while respecting architectural boundaries.
- Anti-Pattern Detection & Correction: Identifies and corrects common architectural pitfalls like framework dependencies in the domain layer or mutable value objects.
- Use Case: When starting a new NestJS module, activate this Skill to automatically generate the entire
core/ and nest-modules/ structure, including domain entities, repository interfaces, application use cases, and NestJS controllers, all pre-configured with best practices and testing patterns.
Quick Start
Use the "NestJS Architect" skill to create a new Order aggregate following DDD patterns, including its repository interface and a CreateOrder use case.