Business Logic Entry Point Cqs Handler Signatures

Enforce a signature pattern for business-logic entry points when Command-Query Separation is being followed. Use when an agent needs to create, modify, review, or interpret command handlers or query handlers at business-logic entry points. Name handlers with an infinitive plus a command-handler or query-handler suffix adapted to the language style, accept exactly one parameter named `command` or `query`, always wrap input values in a dedicated `...Command` or `...Query` type, return the project's empty equivalent for successful non-create command handlers, return a `...CommandHandlerSuccess` type for successful create command handlers, and return a `...QueryHandlerSuccess` type for successful query handlers.

code-sherpas 7998527 12.2 KB Updated

File contents

code-sherpas/agent-skills/tree/main/skills/business-logic-entry-point-cqs-handler-signatures commit 799852755b

Frequently asked questions

npx skillmds@latest add code-sherpas/business-logic-entry-point-cqs-handler-signatures