cqrs-query-generator

Generate CQRS read query classes and DTOs in C# and .NET.

Updated Jan 20, 2026
One-click install
npx skills add https://github.com/AdrianAVA9/cero-base --skill cqrs-query-generator-adrianava9
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cqrs-query-generator
Source: https://github.com/AdrianAVA9/cero-base/tree/main/.agents/skills/cqrs-query-generator
Command: npx skills add https://github.com/AdrianAVA9/cero-base --skill cqrs-query-generator-adrianava9

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the generation of CQRS query code and related components, reducing manual coding effort and promoting best practices.

Core Features & Use Cases

  • Automated Query Code Generation: Produces boilerplate code for CQRS read operations including handlers, DTOs, and validation.
  • Project Structure Enforcement: Ensures proper folder organization to maintain clean architecture standards.
  • Use Case: Developers creating a complex data retrieval system can use this Skill to quickly scaffold queries for multiple entities, saving development time and ensuring consistency.

Quick Start

Use the cqrs-query-generator skill to generate query classes and DTOs for your entity by specifying your entity name and feature.

Frequently Asked Questions about cqrs-query-generator

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

FAQPage Schema
How do I automate CQRS query code scaffolding in C# and .NET?

You can automate CQRS query scaffolding by specifying an entity name and feature to generate boilerplate read query classes, handlers, and DTOs. This process enforces clean architecture folder organization and produces scalable, decoupled data access layers with minimal manual coding.

What is CQRS query generation and when do I need it for clean architecture?

CQRS query generation is the automated creation of read operation components, including handlers, DTOs, and validation logic. You need it when building complex data retrieval systems in .NET that require a decoupled data access layer to ensure consistency and save development time.

Can I use automated code scaffolding to generate DTOs and handlers for multiple entities?

Yes, you can use automated code scaffolding to quickly generate query classes and DTOs for multiple entities. By specifying your entity name and feature, the tool produces consistent boilerplate code for handlers and validation across your entire C# project.

Does CQRS query generation enforce project structure and folder organization?

Yes, CQRS query generation enforces proper project structure and folder organization to maintain clean architecture standards. It automatically produces the required boilerplate code while ensuring your C# and .NET data access layers remain scalable and decoupled.

What do I need to provide to start generating CQRS read operations?

To start generating CQRS read operations, you need to provide your target entity name and feature. The generator then uses these inputs to automate the creation of associated query classes, DTOs, and validation handlers for your C# .NET project.