add-query
Installation
SKILL.md
Add CQRS Query
When the user asks to add a new query, scaffold the following files in the correct microservice. Ask which service if ambiguous.
Arguments
{Name}— Query name in PascalCase (e.g.,GetDeviceById,ListBundles){Service}— Target microservice (e.g.,DeviceManager,BundleOrchestrator). Ask if ambiguous.
Prerequisites
- The target microservice must exist under
src/ - The entity and its query repository interface should exist (if not, run
/add-entityfirst) - An Endpoints file should exist at
Host/Endpoints/(if not, create one)
1. Query Record (Application/Queries/{QueryName}.cs)
namespace SignalBeam.{Service}.Application.Queries;