Business Logic Entry Point Database Transaction

Require every business-logic entry point to wrap its entire flow in a database transaction using a dedicated `runWithinTransaction` function that receives the callback with the logic to execute and the isolation level. The function uses the project's library, framework, or ORM, when the underlying persistence technology supports transactions. Use when an agent needs to create, modify, review, or interpret business-logic entry points that interact with a database. The transaction must encompass the full entry-point flow, including business constraints, business operations, and persistence, so that the entire flow succeeds or fails atomically.

code-sherpas Updated 0 repo stars

File contents

code-sherpas/agent-skills commit decc60d0f3

Frequently asked questions

npx get-skill add code-sherpas/business-logic-entry-point-database-transaction