excalidash-hexagonal-architecture-mapper

Generate and validate Hexagonal Ports and Adapters architecture diagrams in Excalidraw.

2|Updated Jun 17, 2026
One-click install
npx skills add https://github.com/gabedsam01/excalidash-v2 --skill excalidash-hexagonal-architecture-mapper-gabedsam01
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: excalidash-hexagonal-architecture-mapper
Source: https://github.com/gabedsam01/excalidash-v2/tree/main/skills/excalidash/excalidash-hexagonal-architecture-mapper
Command: npx skills add https://github.com/gabedsam01/excalidash-v2 --skill excalidash-hexagonal-architecture-mapper-gabedsam01

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Drawing a correct Hexagonal (Ports & Adapters) architecture diagram by hand is error-prone: adapters end up on the wrong side, arrows point outward from the core, and framework types leak into the domain. This Skill produces a properly structured hexagon diagram and proves dependency inversion holds. ## Core Features & Use Cases - Hexagon generation: Creates a domain core in the center, driving (primary) adapters on the left, driven (secondary) adapters on the right, with port stubs on the boundary, via the ExcaliDash MCP server. - Reverse-engineering from code: Converts a repository analysis (modules, entrypoints, database, integrations) into a ports-and-adapters view, or reshapes an existing Clean Architecture drawing into a hexagon. - Architecture validation: Runs lint, score, repair, and validate_architecture loops until the diagram scores at least 95 with zero hard blockers and no outward-pointing edges. - Use Case: Ask to map an Order Service where REST and Kafka drive the core and Postgres, Stripe, and SendGrid are driven adapters; the Skill draws the hexagon, proves every dependency points inward, and exports a shareable link. ## Quick Start Ask the assistant to map your application as a ports and adapters hexagon, naming its driving adapters, driven adapters, and the ports between them.

Frequently Asked Questions about excalidash-hexagonal-architecture-mapper

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

FAQPage Schema
How do I draw a hexagonal architecture diagram from a description?

Describe the application core, its driving adapters (REST, CLI, consumers), driven adapters (repositories, payment clients, mailers), and the ports between them. The skill calls apply_architecture_skill with pattern hexagonal, then lints, scores, and validates the result.

How do I reverse-engineer a repository into a ports and adapters diagram?

Use the create_from_repo_analysis path with an analysis object listing modules, entrypoints, database, services, and integrations. Domain modules collapse into the core, entrypoints become left-side driving adapters, and infrastructure becomes right-side driven adapters.

When should I use hexagonal architecture instead of Clean Architecture diagrams?

Use the hexagonal diagram when you need the explicit left/right driving versus driven adapter split with ports on the boundary. Use the Clean Architecture skill for concentric rings of entities, use cases, adapters, and frameworks without that split.

How is dependency inversion validated in the diagram?

The validate_architecture tool checks that every cross-boundary edge points toward the hexagon, the core depends only on driven ports it owns, no framework type sits inside the core, and no adapter is orphaned or port unbound.

What happens if the diagram scores below 95?

The repair loop is mandatory: repair_drawing runs for each blocker or penalty, followed by re-linting and re-scoring until the score reaches at least 95 with zero hard blockers. Any pass that lowers the score is rolled back to the last saved version.

Are database credentials safe to include in the diagram?

No. Secrets such as Postgres connection strings, SaaS API keys, and webhook secrets must be redacted into typed placeholders before any tool call, and the exported drawing is re-scanned to confirm no real values leaked.