What problem does it solve?
This Skill helps you design reusable backend logic that stays out of actions, workflows, data models, and datasources, while keeping service boundaries clear and maintainable.
Core Features & Use Cases
- Service Design: Defines when to create a shared backend service versus keeping logic local to an action.
- Dependency Injection: Shows how services, actions, workflows, and the app class consume shared dependencies through constructor injection.
- Lifecycle and Scope: Explains singleton and request-scoped services, plus app lifecycle hooks for startup, shutdown, and error handling.
- Replacement and Strategy Patterns: Covers service overrides for tests or environments and dynamic resolution by string ID for runtime provider selection.
- Use Case: Use this Skill when building notification adapters, audit context services, shared business rules, or replaceable infrastructure components in a Drumr backend.
Quick Start
Use the backend-services skill to explain how to create, inject, scope, and replace a Drumr backend service for the code I am working on.