add-command

Scaffold CQRS command, handler, validator, and POST endpoint skeletons.

2|Updated Dec 9, 2025
One-click install
npx skills add https://github.com/signalbeam-io/signalbeam-edge --skill add-command-signalbeam-io
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-command
Source: https://github.com/signalbeam-io/signalbeam-edge/tree/main/.claude/skills/add-command
Command: npx skills add https://github.com/signalbeam-io/signalbeam-edge --skill add-command-signalbeam-io

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates scaffolding of a new CQRS command with handler, validator, and POST endpoint following project conventions.

Core Features & Use Cases

  • Generates Command record, Validator, Handler, and Endpoint skeletons
  • Ensures naming and file structure align with project conventions
  • Facilitates DI registration and OpenAPI metadata

Quick Start

Provide the command name and target domain to scaffold the new CQRS command.

Frequently Asked Questions about add-command

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

FAQPage Schema
How do I scaffold a CQRS command with a handler and endpoint?

To scaffold a CQRS command, provide the command name and target domain to generate the command record, handler, validator, and POST endpoint skeleton following project conventions. It wires DI registration and OpenAPI metadata across domain, application, and API layers.

What is the best way to generate a new CQRS command across microservices?

The best way to generate a new CQRS command across microservices is using a scaffolding tool that creates type-safe command and response shapes while aligning file structure and naming with existing project conventions. It ensures consistent handler and endpoint creation.

Does scaffolding a CQRS command include validator and DI wiring setup?

Yes, scaffolding a CQRS command includes generating a validator and setting up DI wiring. The generated skeleton ensures the command record, handler, and endpoint are properly registered for dependency injection alongside OpenAPI-compatible endpoint metadata.

Can I use command scaffolding for POST endpoints with OpenAPI metadata?

Yes, you can use command scaffolding for POST endpoints with OpenAPI metadata. The scaffolding process generates endpoints that are OpenAPI-compatible, ensuring the API layer exposes the new command with proper documentation and type-safe response shapes.

When do I need to scaffold a new command handler in a CQRS architecture?

You need to scaffold a new command handler in a CQRS architecture when adding a new write operation that requires domain, application, and API layer coverage. It automates creating the handler, validator, and endpoint skeletons to maintain project conventions.

Why does my CQRS command scaffold need a validator and type-safe response shapes?

A CQRS command scaffold needs a validator and type-safe response shapes to ensure input integrity and predictable API contracts. Generating these components together guarantees the command handler adheres to project conventions and OpenAPI metadata requirements.