What problem does it solve? Backend codebases often entangle business logic with frameworks, ORM models, and HTTP concerns, making them hard to test, refactor, and split into services. This Skill provides concrete patterns and working code for structuring services so business logic stays independent of infrastructure. ## Core Features & Use Cases - Clean Architecture layering: Directory structures and dependency rules separating entities, use cases, adapters, and infrastructure. - Hexagonal Architecture (Ports and Adapters): Abstract port interfaces with swappable adapters such as PostgreSQL repositories, Stripe payment gateways, and in-memory test doubles. - Domain-Driven Design tactical patterns: Aggregates, value objects, repositories, and domain events with invariant enforcement. - Use Case: When refactoring a monolith where use-case tests require a running database, apply the in-memory adapter pattern so every use case runs in plain unit tests with no Docker or network. ## Quick Start Ask the AI to design a clean architecture structure for a new user management microservice with testable use cases and swappable database adapters.