nestjs-modular-monolith

Define bounded contexts and module boundaries for NestJS modular monoliths.

Updated Apr 3, 2026
One-click install
npx skills add https://github.com/Mercurykz/Barretao- --skill nestjs-modular-monolith-mercurykz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nestjs-modular-monolith
Source: https://github.com/Mercurykz/Barretao-/tree/main/.cursor/skills/nestjs-modular-monolith
Command: npx skills add https://github.com/Mercurykz/Barretao- --skill nestjs-modular-monolith-mercurykz

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Modular monolith architectures can become complex to plan, structure, and evolve without clear boundaries or standardized patterns.

Core Features & Use Cases

  • Bounded contexts and domain modules: Define explicit module boundaries with clear interfaces and autonomy.
  • Design guidelines: Apply Clean Architecture, DDD, and CQRS concepts within a NestJS modular monolith.
  • Evolution planning: Provide pathways from monolith to microservices with evolution steps.

Quick Start

Initiate a discovery to map bounded contexts, then define module boundaries and scaffold an NX-based workspace for a NestJS modular monolith.

Frequently Asked Questions about nestjs-modular-monolith

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I define bounded contexts and module boundaries in a NestJS modular monolith?

You structure bounded contexts by defining explicit module boundaries with clear interfaces and autonomy, applying Clean Architecture layers to separate domain logic from infrastructure within your NestJS backend.

What is the best way to structure a NestJS backend using DDD and CQRS patterns?

The best way to structure a NestJS backend with DDD and CQRS is by applying Clean Architecture layers, defining domain boundaries, and using dependency injection and event-driven communication between autonomous modules.

Can I use an NX workspace to scaffold a modular NestJS monolith?

Yes, you can scaffold an NX-based workspace for a NestJS modular monolith by mapping bounded contexts and defining module boundaries to establish a structured architecture workflow.

How do I plan an evolution path from a NestJS modular monolith to microservices?

To plan an evolution path from a NestJS modular monolith to microservices, you establish clear module boundaries and event-driven communication, providing structured evolution steps to decompose the application incrementally.

When should I use a modular monolith architecture instead of microservices for my NestJS backend?

You should use a modular monolith architecture for your NestJS backend when you need scalable domain boundaries and Clean Architecture but want to delay the operational complexity of deploying independent microservices.