What problem does it solve? Building large NestJS backends without clear module boundaries leads to tangled dependencies, shared database tables, and codebases that are hard to scale or split into microservices later. This Skill guides the design and implementation of modular monolith architectures with enforced bounded contexts, state isolation, and event-driven module communication. ## Core Features & Use Cases - Bounded Context Design: Maps business domains to NX monorepo libraries with Clean Architecture layers (domain, application, infrastructure, presentation) and explicit module interfaces. - Event-Driven Communication: Implements cross-module communication via domain events with pluggable publishers (in-memory, Kafka, SQS, Redis) instead of direct service imports. - State Isolation Validation: Ships a validation script that detects duplicate entity names, cross-module imports, shared mutable state, and improper Prisma relations. - Use Case: A team starting a new SaaS backend asks the agent to design identity, billing, and orders modules. The Skill produces the bounded context map, NestJS module structure with Prisma schemas, event contracts, and tests, then validates isolation before shipping. ## Quick Start Ask the agent to design a modular monolith backend for your product with NestJS, specifying your bounded contexts and preferred stack such as Fastify, Prisma, and NX.