From xonovex-skill-hexagonal-pattern
Use when isolating an application or domain core from its I/O and delivery mechanisms behind interfaces — hexagonal / ports-and-adapters / clean / onion architecture. Triggers on decoupling the domain from the database/UI/framework, driving (primary) vs driven (secondary) adapters, dependency inversion / the dependency rule ('depend on an interface, not the implementation'), a composition root wiring adapters to ports, swapping a real adapter for a fake in tests, or keeping business logic free of infrastructure — even when the user doesn't say 'hexagonal' and says 'ports and adapters' or 'clean architecture'.
How this skill is triggered — by the user, by Claude, or both
Slash command
/xonovex-skill-hexagonal-pattern:hexagonal-pattern-guideThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Isolate the domain core behind ports it owns, so every I/O and delivery mechanism is an interchangeable adapter on the outside.
Isolate the domain core behind ports it owns, so every I/O and delivery mechanism is an interchangeable adapter on the outside.
// core owns the port; it never imports a driver
type Repository interface{ Save(o Order) error }
type OrderService struct{ repo Repository } // depends on the port, not Postgres
// driven adapter (outside): a PostgresRepository implementation of the port
// driving adapter (outside): an HTTP handler that calls OrderService
// test: an InMemoryRepository fake — no database
Guides collaborative design exploration before implementation: explores context, asks clarifying questions, proposes approaches, and writes a design doc for user approval.
Creates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.
Resolves in-progress git merge or rebase conflicts by analyzing history, understanding intent, and preserving both changes where possible. Runs automated checks after resolution.
npx claudepluginhub xonovex/platform --plugin xonovex-skill-hexagonal-pattern