hexagonal-architecture SKILL.md skillA

hexagonal-architecture from ralvarez-ai/ralvaskills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add ralvarez-ai/ralvaskills/hexagonal-architecture@v2.0.1

Pins v2.0.1 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
ralvarez-ai/ralvaskills
Path
skills/design/hexagonal-architecture/SKILL.md
Versions recorded
2
Latest version
v2.0.1, committed Nov 12, 2026
First version recorded
Nov 12, 2026
Size
9,812 bytes
Repository stars
4
License
GPL-3.0

Hexagonal architecture (ports and adapters) — dependencies point inward; the domain declares ports, adapters implement them, no framework or database inside. Use when designing service structure or judging seams.

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Hexagonal Architecture — Ports & Adapters

The pattern, distilled: **the domain core knows nothing about the world**. Everything that touches the outside (HTTP, DB, queue, cron, third-party API) is an adapter. Adapters depend on the domain; the domain never depends on adapters. Pairs with [ddd-architect](../ddd-architect/SKILL.md) — DDD answers "what's in the domain"; hexagonal answers "where does the domain live and what touches it".

## 1. The pattern

Three layers, named by their role rather than their location:

- **Domain core** — entities, value objects, aggregates, domain services, business policies. Plain language types and functions. No imports from any framework, database driver, or HTTP library.
- **Ports** — interfaces declared *by the domain* describing what it needs from the outside (`UserRepo`, `EmailSender`, `PaymentGateway`). The names are domain-meaningful, not technology-meaningful (`UserRepo`, not `PostgresClient`).
- **Adapters** — concrete implementations of ports. Live outside the domain. One adapter per concrete technology: `PostgresUserRepo`, `SmtpEmailSender`, `StripePaymentGateway`. Also one per testing strategy: `InMemoryUserRepo`, `FakeEmailSender`.
…

Read the whole file at its exact version.

How to install

No tool to install first
claude plugin marketplace add https://markdownregistry.com/mp/a/art_krmogzs6quevjkoe/d4114f84f0c4d6090be06a089487fa0fb9539ad7d5ad9a88843910f7ade51e1f.json

Then /plugin install hexagonal-architecture@markdownregistry-krmogzs6quevjkoe in Claude Code. It installs v2.0.1, the one graded A here, pinned to the commit it was graded at, and leaves it there.

The exact contents, by fingerprint
mdr add ralvarez-ai/ralvaskills/hexagonal-architecture@sha256:d4114f84f0c4d609

The line at the top of this page pins the label v2.0.1, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_krmogzs6quevjkoe.svg)](https://markdownregistry.com/a/art_krmogzs6quevjkoe)

2 badge image fetches in 30 days. What the badge shows.

Ask from your agent
claude mcp add --transport http markdownregistry https://markdownregistry.com/mcp/registry

Then ask it: what changed in ralvarez-ai/ralvaskills/hexagonal-architecture since the version I have? It reads every saved version here, no key and no account. Any agent that speaks MCP can add it.

Got a copy of hexagonal-architecture from somewhere else? Ask it: where did my hexagonal-architecture come from, and what was changed? It names the public original, the version yours is closest to and every changed line. The text is not kept.

Versions

The registry has recorded 2 versions of this file, all committed on Nov 12, 2026.

Watch this file (sign in, one email per new version)

versioncommittedcommitsizeaudit
v2.0.1 latest2026-11-12 284f6c2 9,812 BA view · diff
v2.0.02026-11-12 b03881f 9,902 BA view
Keep it current by itself, install once

Committed this skill to a repository? Install the markdownregistry skill updates app on it, or on all of them. When the registry saves a newer version, a pull request brings your copy to it within minutes, the newest version first, then what changed and any check it newly trips. A copy you edited is never touched, and nothing is deleted.

Install on GitHub

It asks to read and write contents and pull requests, and to read metadata. No workflow file, no Actions setting, nothing runs on your runners. Uninstall it and everything the registry kept about your repository is deleted.

Keep it current by itself

Committed this skill to a repository? Add one workflow file, and when a newer version is saved, a pull request brings your copy to it, the newest version first, then what changed and any check it newly trips. A copy you edited is never touched, and nothing is deleted.

mkdir -p .github/workflows && curl -fsSL https://markdownregistry.com/ci/skill-updates.yml -o .github/workflows/skill-updates.yml

It runs daily on GitHub Actions, no key and no account. Read the workflow before you add it.

Check a whole project

From the root of your project, one line hashes each installed skill's SKILL.md, your AGENTS.md and your CLAUDE.md, and asks the registry once. Only the fingerprints and paths are sent.

sha256sum .claude/skills/*/SKILL.md AGENTS.md CLAUDE.md | curl -s --data-binary @- https://markdownregistry.com/api/v1/check-copies

In CI, add --fail-with-body: the answer is 409 when any file is behind, so the step fails and still prints which files.

sha256sum .claude/skills/*/SKILL.md AGENTS.md CLAUDE.md | curl -s --fail-with-body --data-binary @- https://markdownregistry.com/api/v1/check-copies

No sha256sum on your machine? shasum -a 256 prints the same lines.

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (9812 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

ralvarez-ai/ralvaskills · 4 stars · license GPL-3.0 · pushed 2026-11-14 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_krmogzs6quevjkoe
GET https://markdownregistry.com/api/v1/resolve?ref=ralvarez-ai/ralvaskills/hexagonal-architecture
GET https://markdownregistry.com/api/v1/blob/d4114f84f0c4d6090be06a089487fa0fb9539ad7d5ad9a88843910f7ade51e1f

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from ralvarez-ai/ralvaskills

CLAUDE.md@.rsk CLAUDE.md file
ralvarez-ai/ralvaskills · .rsk/CLAUDE.md
git:20261106.3edfda8 · audit B · 4 stars
AGENTS.md AGENTS.md file
ralvarez-ai/ralvaskills · AGENTS.md
git:20261106.ea62690 · audit A · 4 stars
CLAUDE.md CLAUDE.md file
ralvarez-ai/ralvaskills · CLAUDE.md
git:20261102.eba2ebb · audit A · 4 stars
ml-paper-format SKILL.md skill
ralvarez-ai/ralvaskills · skills/academic/ml-paper-format/SKILL.md · ML conference paper formatting for NeurIPS, ICML, ICLR, and AAAI — official style-file usage, anonymization and…
v2.0.0 · audit A · 4 stars
study-artifact-builder SKILL.md skill
ralvarez-ai/ralvaskills · skills/academic/study-artifact-builder/SKILL.md · Build a single-file interactive HTML artifact to study a paper's pipeline or dataset until it can be defended from…
v1.1.0 · audit A · 4 stars
sql-architect SKILL.md skill
ralvarez-ai/ralvaskills · skills/databases/sql-architect/SKILL.md · SQL standards — UUID v7 PKs, snake_case, soft delete, forward-only migrations, parameter binding, N+1 prevention…
v1.0.1 · audit A · 4 stars
ddd-architect SKILL.md skill
ralvarez-ai/ralvaskills · skills/design/ddd-architect/SKILL.md · Domain-Driven Design — strategic-first (bounded contexts, context mapping) with aggregates, value objects, domain…
v1.1.0 · audit A · 4 stars
protobuf-architect SKILL.md skill
ralvarez-ai/ralvaskills · skills/encoding/protobuf-architect/SKILL.md · Protocol Buffers (proto3) standards — Buf-style package naming, protovalidate (CEL), buf toolchain for…
v1.0.0 · audit A · 4 stars
astro-architect SKILL.md skill
ralvarez-ai/ralvaskills · skills/frameworks/astro-architect/SKILL.md · Astro 6+ standards — islands architecture with zero JS by default, Content Layer collections with loader + Zod schema…
v1.0.0 · audit B · 4 stars
fastapi-architect SKILL.md skill
ralvarez-ai/ralvaskills · skills/frameworks/fastapi-architect/SKILL.md · Framework-specific delta on rest-api-architect — FastAPI 0.136 on Python 3.14. Feature layout, Pydantic v2…
v1.1.0 · audit A · 4 stars
gin-architect SKILL.md skill
ralvarez-ai/ralvaskills · skills/frameworks/gin-architect/SKILL.md · Framework-specific delta on rest-api-architect — Gin 1.12 on Go 1.27.3. Feature layout, struct-tag validation, RFC 9457…
v1.1.0 · audit A · 4 stars
hugo-architect SKILL.md skill
ralvarez-ai/ralvaskills · skills/frameworks/hugo-architect/SKILL.md · Hugo 0.161 static-site architectural standards — project layout, front matter conventions, template hierarchy, Hugo…
v1.0.0 · audit B · 4 stars

Every file in ralvarez-ai/ralvaskills

Other files named hexagonal-architecture

hexagonal-architecture SKILL.md skill
hashgraph-online/awesome-codex-plugins · plugins/Colin4k1024/tsp/skills/hexagonal-architecture/SKILL.md · Design, implement, and refactor Ports & Adapters systems with clear domain boundaries, dependency inversion, and…
git:20260512.6523792 · audit A · 1,584 stars
hexagonal-architecture SKILL.md skill
rrezartprebreza/spring-boot-skills · skills/spring-boot-4/hexagonal-architecture/SKILL.md · Use when the project follows hexagonal (ports & adapters) architecture. Prevents domain code from depending on Spring…
git:20261017.a317397 · audit A · 361 stars
hexagonal-architecture SKILL.md skill
rrezartprebreza/spring-boot-skills · skills/spring-boot-3/hexagonal-architecture/SKILL.md · Use when the project follows hexagonal (ports & adapters) architecture. Prevents domain code from depending on Spring…
git:20261017.a317397 · audit A · 361 stars
hexagonal-architecture SKILL.md skill
amey-thakur/ai-skills · skills/architecture/hexagonal-architecture/SKILL.md · Isolate domain logic behind ports it owns while frameworks, databases, and transports live in adapters that plug into…
git:20260718.ea9bc00 · audit A · 14 stars
hexagonal-architecture SKILL.md skill
atnexuslab/tightship · content/skills/hexagonal-architecture/SKILL.md
git:20261015.8e86e2c · audit C · 6 stars

Browse by kind, by grade A, or by owner.