What problem does it solve? Business logic often becomes tangled with frameworks, databases, and transport layers, making code hard to test, maintain, and migrate. This Skill guides you to separate domain rules from infrastructure using the Ports and Adapters pattern. ## Core Features & Use Cases - Boundary Design: Define use cases with explicit input/output DTOs, inbound ports, and outbound ports for every side effect like repositories, gateways, and clocks. - Multi-Language Guidance: Apply the same dependency-inversion rules in TypeScript, Java, Kotlin, and Go with language-specific package layouts and wiring styles. - Migration Playbook: Refactor legacy systems slice-by-slice using the strangler approach, facade-first wrapping, and characterization tests instead of big-bang rewrites. - Use Case: When a controller mixes SQL queries, Stripe calls, and business rules, use this Skill to extract a CreateOrderUseCase with OrderRepositoryPort and PaymentGatewayPort interfaces, then wire adapters in a single composition root. ## Quick Start Ask the AI to refactor a tightly coupled service or endpoint into a hexagonal architecture with explicit ports, adapters, and a composition root.