Skip to content
Back to skills

Hexagonal Architecture

ASecurity

Hexagonal (ports and adapters) architecture: isolate domain logic from frameworks, databases and APIs so it is testable and swappable.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentsgoapidatabasebackend

Works with

  • api

Security analysis

A100/100

Scanned December 2, 2026

npx -y skills add karthikrshet/saarthi --skill hexagonal-architecture --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Hexagonal Architecture?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Hexagonal Architecture
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/karthikrshet-hexagonal-architecture/badge)](https://www.skillsdirectory.com/skills/karthikrshet-hexagonal-architecture)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.