backend-services
Installation
SKILL.md
Backend Services & Application Logic
Use this skill when
- Organizing use cases and services
- Defining what logic belongs in services vs domain vs controllers
- Wiring repositories, external calls, and transactions
Do not use this skill when
- Simple CRUD passthrough apps
- Domain modeling decisions (use domain-driven-design)
Instructions
- Services implement use cases: orchestrate entities, repositories, and external calls.
- Keep services in application terms, free of framework/session types.
- One service per use case boundary; compose rather than grow.
- Put transactional scope on service operations that mutate.
- Inject dependencies; avoid hidden globals and service locators.
- Return results and raise domain errors; map them at boundaries.
- Keep services testable with in-memory fakes.