What problem does it solve? Business logic often becomes tangled with frameworks, databases, and transport code, making services hard to test and painful to change. This Skill guides you to separate domain rules from infrastructure using the Ports and Adapters pattern so use cases stay testable and infrastructure stays replaceable. ## Core Features & Use Cases - Boundary Modeling: Define use cases with explicit input/output DTOs, inbound ports, and outbound ports for repositories, gateways, loggers, and clocks. - Multi-Language Guidance: Apply the same dependency rules in TypeScript, Java, Kotlin, and Go with concrete package layouts and composition-root wiring examples. - Migration Playbook: Refactor legacy layered code slice by slice using a strangler approach, facade-first port extraction, and characterization tests. - Use Case: You have an Express controller mixing SQL queries, Stripe calls, and business rules. Use this Skill to extract a CreateOrderUseCase with OrderRepositoryPort and PaymentGatewayPort interfaces, then move SQL and Stripe code into outbound adapters wired in a composition root. ## Quick Start Ask the agent to refactor one tightly coupled endpoint into a hexagonal use case with explicit ports, adapters, and a composition root.