Xpersona
A

architecture-paradigm-hexagonal

CLAWHUB · Unverified

Applies hexagonal architecture isolating domain from infrastructure Skill: architecture-paradigm-hexagonal Owner: athola Summary: Applies hexagonal architecture isolating domain from infrastructure Tags: latest:1.9.19 Version history: v1.9.19 | 2026-08-26T13:05:19.000Z | user Release v1.9.19 v1.9.18 | 2026-08-15T21:29:13.965Z | user Release v1.9.18 v1.9.17 | 2026-07-30T05:29:02.359Z | user Release v1.9.17 v1.9.16 | 2026-07-14T19:46:09.736Z | user Release v1.9.16 v1.9.15 | 2026-07-04T

62
Rank
84
Safety
1.8k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.8K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17emme0e2m3cpf7k2jvp3a84984b8z9:nm-archetypes-architecture-paradigm-hexagonal
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-athola-nm-archetypes-architecture-paradigm-hexagonal/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

69,987 characters of source documentation, loaded on request.

Extracted files

3 files captured from the source.

SKILL.md

---
name: architecture-paradigm-hexagonal
description: Applies hexagonal architecture isolating domain from infrastructure
version: 1.9.8
triggers:
  - architecture
  - hexagonal
  - ports-adapters
  - infrastructure-independence
  - testability
  - designing systems where testability and port/adapter separation are priorities
metadata: {"openclaw": {"homepage": "https://github.com/athola/claude-night-market/tree/master/plugins/archetypes", "emoji": "\ud83c\udfd7\ufe0f"}}
source: claude-night-market
source_plugin: archetypes
---

> **Night Market Skill** — ported from [claude-night-market/archetypes](https://github.com/athola/claude-night-market/tree/master/plugins/archetypes). For the full experience with agents, hooks, and commands, install the Claude Code plugin.


# The Hexagonal (Ports & Adapters) Paradigm


## When To Use

- Isolating business logic from external dependencies
- Systems needing swappable adapters for testing

## When NOT To Use

- Small scripts or utilities without external dependencies
- Prototypes where port/adapter abstraction adds overhead

## When to Employ This Paradigm
- When you anticipate frequent changes to databases, frameworks, or user interfaces and need the core domain logic to remain stable.
- When testing the core application requires mocking complex or slow infrastructure components.
- When the development team needs to provide clear inbound and outbound interfaces for third-party integrations.

## Adoption Steps
1. **Define Domain Ports**: Identify all interactions with the core domain. Define inbound "driver ports" for actors that initiate actions (e.g., UI, CLI, automated jobs) and outbound "driven ports" for services the application consumes (e.g., database, message bus, external APIs). Express these ports as formal interfaces.
2. **Implement Adapters at the Edge**: For each external technology, create an "adapter" that implements a port's interface. Keep the core domain entirely ignorant of the specific frameworks or libraries used in the adapters.
3. **Aggregate Use Cases**: Organize the application's functionality into services that are built around business capabilities. These services orchestrate calls to the domain through the defined ports.
4. **Implement Contract Testing**: validate that each adapter correctly honors the expectations of the port it implements. Use contract tests or consumer-driven contract tests to validate this behavior.
5. **Enforce Dependency Rules**: The most critical rule is that only adapters may have dependencies on external frameworks. Enforce this with automated architecture tests or static analysis rules.

## Key Deliverables
- An Architecture Decision Record (ADR) that formally names the ports, their corresponding adapters, and the dependency policies.
- A set of port interface definitions, stored with the core domain module.
- A suite of contract tests for each adapter, alongside unit tests for the domain and application services.
- Architectural diagrams showing the 

_meta.json

{
  "ownerId": "kn7d107jg9jv602h9ytsegydq184a42s",
  "slug": "nm-archetypes-architecture-paradigm-hexagonal",
  "version": "1.9.19",
  "publishedAt": 1787749519000
}

skill-card.md

## Description:

Applies hexagonal architecture isolating domain from infrastructure.

This skill is ready for commercial/non-commercial use.

## Publisher:

[athola](https://clawhub.ai/user/athola)

### License/Terms of Use:

MIT-0

## Use Case:

Developers and software architects use this skill to decide when hexagonal architecture is appropriate and to plan ports, adapters, contract tests, ADRs, and dependency rules that isolate domain logic from infrastructure.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill may influence architecture discussions in projects where hexagonal architecture adds unnecessary abstraction.

Mitigation: Review fit against system size, external dependency volatility, and testability needs before applying ports and adapters.

Risk: Port/interface bloat or leaky abstractions can increase maintenance cost and expose infrastructure details to the domain.

Mitigation: Group cohesive ports around domain concepts and keep transport, framework, and adapter details out of domain interfaces.

Risk: Adapters can drift from their port contracts as external technologies or schemas change.

Mitigation: Use contract tests and periodic adapter validation to keep implementations aligned with the expected port behavior.

## Reference(s):

- [claude-night-market archetypes](https://github.com/athola/claude-night-market/tree/master/plugins/archetypes)

## Skill Output:

**Output Type(s):** [Text, Markdown, Code, Configuration, Guidance]

**Output Format:** [Markdown guidance with optional interface, test, and configuration examples]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [None]

## Skill Version(s):

1.9.19 (source: server release metadata; artifact frontmatter says 1.9.8)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to architecture-paradigm-hexagonal and adjacent AI workflows.