Skill: Service Logic
Purpose
Implement business rules in the service layer only.
When to Use
- Adding or modifying business logic
- Coordinating multiple operations
Inputs
- Business requirements
- Validated input data
Outputs
- Service-layer implementation
- Business rule enforcement
Governing Rules
Service logic must comply with Architecture and Coding Standards
in agents.md.
Procedure
- Identify business responsibility
- Implement logic in small, readable methods
- Avoid framework-specific code in logic
- Prepare logic for testing
Failure Handling
- Fail on unclear business rules
- Surface domain errors explicitly