What problem does it solve?
This Skill eliminates the pain of tightly coupled application code where business logic is mixed with framework, transport, and persistence details, making systems hard to maintain, test, and adapt to changing infrastructure or requirements.
Core Features & Use Cases
- Decoupled Domain Logic: Keep core business rules independent of frameworks, databases, and external APIs for long-term maintainability.
- Multi-Interface Support: Build use cases that work across HTTP, CLI, queue workers, and cron jobs without rewriting core logic.
- Testable Workflows: Unit test use cases with simple in-memory fakes, and swap infrastructure components (like databases or payment gateways) without modifying business rules.
- Use Case Example: Refactor a legacy e-commerce service where order processing logic is mixed with Stripe SDK calls and Postgres queries into a clean, testable structure with separate ports and adapters.
Quick Start
Use the hexagonal-architecture skill to refactor your existing order processing service to separate business rules from Stripe payment and Postgres persistence logic.