What problem does it solve? Backend endpoints rot when route handlers accumulate business logic and raw SQL, making APIs untestable, insecure, and hard to extend. This Skill enforces a clean layering pattern so endpoints stay maintainable as the codebase grows. ## Core Features & Use Cases - Layered Architecture: Separates concerns into thin route handlers, framework-agnostic service layers, and repository-based data access with dependency injection. - Boundary Validation & Error Handling: Validates and types input at the boundary, maps domain errors to consistent HTTP status codes, and prevents leaking stack traces or secrets. - Use Case: When adding a new POST /orders endpoint, the handler validates the request body, delegates to an order service containing business rules, and the service calls a repository for storage — letting you unit test the logic with a fake repository and no web framework. ## Quick Start Refactor my route handler so it only validates input and delegates to a service layer with a repository for data access.