cqrs-command-generator

Generate CQRS Commands, Validators, and Handlers for .NET Clean Architecture.

Updated Mar 29, 2026
One-click install
npx skills add https://github.com/gerardogarnica/aurora-flowboard-api --skill cqrs-command-generator-gerardogarnica
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cqrs-command-generator
Source: https://github.com/gerardogarnica/aurora-flowboard-api/tree/main/.claude/skills/cqrs-command-generator
Command: npx skills add https://github.com/gerardogarnica/aurora-flowboard-api --skill cqrs-command-generator-gerardogarnica

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generates boilerplate CQRS scaffolding for Commands, Validators, and Handlers, reducing repetitive setup and ensuring consistency with Clean Architecture.

Core Features & Use Cases

  • Generates immutable Command Records for Create, Update, and Delete operations, each paired with a dedicated Validator and a Handler.
  • Provides templates for Commands with and without return values, using the Result pattern to handle success and failure.
  • Encapsulates common patterns for data persistence via a DbContext, with guidance on structure and naming conventions.

Quick Start

Run the CQRS Command Generator to scaffold a Create{Entity} command, its validator, and its handler for your feature.

Frequently Asked Questions about cqrs-command-generator

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

FAQPage Schema
How do I generate CQRS command handlers and validators in .NET?

You can scaffold CQRS commands, validators, and handlers in .NET by running this generator, which creates immutable records, validation logic, and handler classes for Create, Update, and Delete workflows.

What is the best way to reduce boilerplate when implementing Clean Architecture in .NET?

Automating CQRS scaffolding for commands and handlers is the best way to reduce boilerplate, ensuring consistent Result-based error handling and IDbContext usage without repetitive manual setup.

Does the generated CQRS scaffolding support commands without return values?

Yes, the generated CQRS scaffolding supports both void commands and commands with return values, utilizing the Result pattern to handle success and failure states consistently across your .NET application.

Can I use this CQRS code generator with my existing IDbContext and cancellation tokens?

Yes, the scaffolded handlers align directly with IDbContext usage and include built-in cancellation support for data persistence workflows within your Clean Architecture project.

How do I scaffold a Create command with its validator and handler for a new entity?

Run the CQRS Command Generator specifying your entity to output an immutable command record, a dedicated validator, and a handler implementing the Result pattern for your specific feature.