Business Logic Entry Point Prefer Top Level Functions

Prefer top-level functions over classes or objects for implementing business-logic entry points when the project stack allows it without introducing friction. Use when an agent needs to decide the code shape for a business-logic entry point such as a command handler, query handler, use case, or application service. Choose a top-level function unless the language, framework, or project conventions make classes or objects the natural, frictionless choice.

code-sherpas 13ef451 6.6 KB Updated

File contents

code-sherpas/agent-skills/tree/main/skills/business-logic-entry-point-prefer-top-level-functions commit 13ef45147d

Frequently asked questions

npx skillmds@latest add code-sherpas/business-logic-entry-point-prefer-top-level-functions