Backend architecture / Paid / Version 1.0.0
/extract-domain-logic-from-controllers
Extract domain logic from controllers
Put meaningful product workflows somewhere testable instead of burying them in request handlers.
When to use it
The skill is meant to be pulled in when one of these conditions is true.
- Handlers contain validation, authorization, persistence, side effects, and response shaping together.
- The same workflow exists in API routes, jobs, scripts, or server actions.
- Product rules are hard to test without framework-level requests.
- Changing a handler risks changing unrelated business behavior.
Buy this skill
Checkout is handled through Forcir and Stripe. No Forcir account is required — $39.
