What problem does it solve? Designing backend systems that remain maintainable and testable as they grow is difficult; tightly coupled code makes refactoring, testing, and framework swaps painful. This Skill provides structured guidance and code templates for applying proven architecture patterns to new designs and legacy refactors. ## Core Features & Use Cases - Clean Architecture Guidance: Layered structure (entities, use cases, adapters, infrastructure) with dependency rules pointing inward, including a full Python/FastAPI implementation example. - Hexagonal Architecture (Ports & Adapters): Define ports as interfaces and swap adapters such as Stripe payment gateways or mock implementations for testing. - Domain-Driven Design Patterns: Tactical patterns including entities, value objects, aggregates, repositories, and domain events with code samples. - Use Case: When refactoring a monolithic order-processing service, use this Skill to define repository ports, move business rules into domain entities, and replace direct database calls with adapter implementations. ## Quick Start Ask the AI to design a hexagonal architecture for a new order management backend with ports, adapters, and domain entities.