nestjs-cqrs-setup

Official

NestJS CQRS setup and verification

Authorcromesdk
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill automates the setup and verification of CQRS (Command Query Responsibility Segregation) in NestJS applications, ensuring modules are correctly wired and conditionally loaded based on environment variables.

Core Features & Use Cases

  • CQRS Installation: Installs @nestjs/cqrs and @nestjs/config dependencies.
  • Environment Gating: Configures CQRS_ENABLED in .env to conditionally load CQRS modules and dependent features.
  • Module Wiring: Correctly wires ConfigModule and CqrsModule using ConditionalModule.registerWhen.
  • Handler Setup: Guides the setup of command, query, and event handlers.
  • Verification: Verifies successful application startup and functional execution of CQRS flows in both enabled and disabled states.
  • Use Case: When starting a new NestJS project or refactoring an existing one, use this Skill to integrate CQRS robustly, ensuring it can be easily enabled or disabled for different environments without causing DI failures.

Quick Start

Use the nestjs-cqrs-setup skill to install and configure CQRS in your NestJS project.

Dependency Matrix

Required Modules

None required

Components

scriptsreferences

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: nestjs-cqrs-setup
Download link: https://github.com/cromesdk/ai-skills/archive/main.zip#nestjs-cqrs-setup

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.