Business Logic Entry Point Command Query Separation

Enforce Command-Query Separation specifically at business-logic entry points. Use when an agent needs to create, modify, review, or interpret public functions, methods, handlers, use cases, application services, facades, or similar entry points that trigger business logic. Classify each entry point as either a command that changes state or a query that returns data, never both. The only allowed data return from a command is the ID or IDs of domain entities created by a create operation.

code-sherpas 8524283 5.9 KB Updated

File contents

code-sherpas/agent-skills/tree/main/skills/business-logic-entry-point-command-query-separation commit 8524283d87

Frequently asked questions

npx skillmds@latest add code-sherpas/business-logic-entry-point-command-query-separation