Business Logic Entry Point Repository Operations

Require repository interfaces to expose a standard set of operations with specific signatures, naming conventions, and a strict error model. Use when an agent needs to create, modify, review, or interpret repository interfaces used by business-logic entry points. Repositories must offer findBy<Field> (single-row, returns an absence-permitting type), findManyBy<Field> (multi-row, collection), search (dynamic filters, pagination, sorting), countBy<Field> (numeric aggregation, AND/OR), existsBy<Field> / existManyBy<Field> (booleans derived from countBy<Field>), create, update, and deleteById. Errors describe only infrastructure concerns; any domain-level outcome (not found, empty, zero, false) is a valid return value.

code-sherpas 51c5613 26.6 KB Updated

File contents

code-sherpas/agent-skills/tree/main/skills/business-logic-entry-point-repository-operations commit 51c5613fbf

Frequently asked questions

npx skillmds@latest add code-sherpas/business-logic-entry-point-repository-operations