hexagonal-architecture

Guide hexagonal architecture design by defining ports and adapters boundaries.

5|1|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/agentpatterns/craft --skill hexagonal-architecture-agentpatterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hexagonal-architecture
Source: https://github.com/agentpatterns/craft/tree/main/plugins/crafter/skills/hexagonal-architecture
Command: npx skills add https://github.com/agentpatterns/craft --skill hexagonal-architecture-agentpatterns

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Hexagonal architecture provides a clear boundary between domain, application, and adapters, guiding design decisions and avoiding leakage of infrastructure concerns.

Core Features & Use Cases

  • Defines ports and adapters boundaries and separation of concerns.
  • Encourages architectural discipline for testable boundaries and scalable systems.
  • Use Case: when designing new systems, discuss domain logic in isolation from external I/O and map adapters at the boundary.

Quick Start

Outline a hexagonal architecture plan for a project by defining domains, application services, and ports/adapters boundaries.

Frequently Asked Questions about hexagonal-architecture

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I separate domain logic from infrastructure when designing hexagonal architecture?

Hexagonal architecture separates domain logic from infrastructure by defining ports and adapters boundaries, ensuring infrastructure concerns do not leak into the core domain. This approach isolates business rules from external I/O operations during system design.

What is the best way to define ports and adapters boundaries in a new system design?

Defining ports and adapters boundaries involves mapping application services and external I/O interactions at the system edge. This architectural pattern maintains a strict separation between the domain core and infrastructure adapters to preserve testability.

Does this hexagonal architecture guidance scaffold project files automatically?

No, hexagonal architecture guidance does not scaffold project files. It focuses on defining layering, naming conventions, and boundary verification, expecting users to utilize a separate scaffold skill for actual project file generation.

How do I evaluate component placement across domain, application, and adapter layers?

Evaluating component placement involves mapping design elements against domain, application, and adapter layers to verify boundaries. This ensures domain logic remains isolated and infrastructure components interact only through defined ports.

When should I use ports and adapters architecture for my software design?

Use ports and adapters architecture when designing new systems that require testable boundaries and scalable structures. It is particularly useful for discussing domain logic in isolation and mapping adapters at the boundary to prevent infrastructure leakage.