Hexagonal Architecture

Use when the user or project explicitly adopts hexagonal (ports and adapters) architecture — a README, CLAUDE.md, or ADR that says so is the opt-in. Once a project has opted in, load this for every code change in it, not only architecture work — a new feature, a transport or SDK swap, a bug fix, or a small business-rule change to a function that still calls an SDK directly; load it alongside tdd, never instead of it, and follow its Before You Write Code section before editing. Implements TypeScript ports, driving/driven adapters, dependency inversion, and domain isolation. Do NOT infer hexagonal architecture from a generic adapter, interface, test seam, or isolation request in a project that has not opted in.

citypaul Updated

File contents

citypaul/.dotfiles/tree/main/claude/.claude/skills/hexagonal-architecture commit b414704073

Frequently asked questions

npx skillmds@latest add citypaul/hexagonal-architecture