Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Is that skill safe to install?
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
Are you the author of Hexagonal Architecture?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/karthikrshet-hexagonal-architecture)
---
name: hexagonal-architecture
description: "Hexagonal (ports and adapters) architecture: isolate domain logic from frameworks, databases and APIs so it is testable and swappable."
tags: [architecture, backend]
---
# Hexagonal Architecture
## When to use
- Growing services where business rules are tangled with frameworks
## Procedure
1. Define the domain model and use cases without framework imports
2. Declare ports (interfaces) for persistence and external services
3. Implement adapters at the edges
4. Wire with dependency injection at startup
5. Test the domain with in-memory adapters
## Checklist
- [ ] Domain has no framework imports
- [ ] Adapters thin
## Anti-patterns
- Ports for everything in a tiny CRUD app