What problem does it solve?
This Skill addresses the challenge of implementing focused, reusable core services within Specx architecture, providing a structured approach to encapsulate business logic and enhance maintainability.
Core Features & Use Cases
- Core Service Creation: Facilitates the creation of core services for business logic, ensuring clear boundaries and maintainable code.
- Service Naming Conventions: Offers guidelines on naming services, such as using 'Service' suffix and choosing appropriate base classes.
- Dependency Injection: Instructs on injecting dependencies and ports for external IO, framework-bound dependencies, or multiple real implementations.
- Unit Testing: Provides guidance on writing unit tests with pytest, using
container fixtures and resolving services programmatically.
Quick Start
To add a core service for order pricing, use the specx-add-core-service skill with the following command: "Add a core service for order pricing, named 'OrderPricingService', under the 'orders' scope."