Hexagonal Architecture
Design, implement, and refactor Ports and Adapters systems with dependency inversion across four languages.
- CCM score
- 73 of 100
- skills.sh installs
- 11.9K
- GitHub stars
- 312.6K
- last updated
- Aug 21, 2026
Own this skill? Claim it
What it does
- Covers domain modeling, use-case orchestration, outbound and inbound ports, adapters, and composition roots for each feature boundary
- Includes a six-step workflow, a Mermaid dependency diagram, a feature-first module layout, and a complete TypeScript example
- Enforces inward-only dependencies: adapters point to application code, and domain code imports no framework or infrastructure
- Provides per-language mapping for TypeScript, Java, Kotlin, and Go, for refactoring framework-heavy code or supporting several delivery interfaces
Install
$ npx -y skills add affaan-m/ecc --skill hexagonal-architecture -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
Hexagonal Architecture
Hexagonal architecture (Ports and Adapters) keeps business logic independent from frameworks, transport, and persistence details. The core app depends on abstract ports, and adapters implement those ports at the edges.
When to Use
- Building new features where long-term maintainability and testability matter.
- Refactoring layered or framework-heavy code where domain logic is mixed with I/O concerns.
- Supporting multiple interfaces for the same use case (HTTP, CLI, queue workers, cron jobs).
- Replacing infrastructure (database, external APIs, message bus) without rewriting business rules.
Use this skill when the request involves boundaries, domain-centric design, refactoring tightly coupled services, or decoupling application logic from specific libraries.
Core Concepts
Details
- Repository
- github.com/affaan-m/ecc
- Category
- Backend & APIs
- First seen
- Jul 14, 2026
Questions
What does the hexagonal-architecture skill do?
It designs, implements, and refactors Ports and Adapters systems, keeping domain logic independent from frameworks, transport, and persistence. It covers TypeScript, Java, Kotlin, and Go services and helps make use cases testable through dependency inversion.
When should I use the hexagonal-architecture skill?
Use it when building new features where long-term maintainability and testability matter, or when refactoring code where domain logic has become entangled with I/O. It also fits cases where one use case must serve several interfaces, such as HTTP, CLI, queue workers, or cron jobs.
How do I install the hexagonal-architecture skill?
Run npx -y skills add affaan-m/ecc --skill hexagonal-architecture -y in your project. After that, the agent can design ports, use cases, and adapters with a clear boundary between business rules and infrastructure.
Where does hexagonal-architecture stand in the Backend & APIs category?
It ranks in the top 100 of the Backend & APIs category on Claude Marketplaces, alongside skills such as neon and firebase-basics. It sets itself apart by focusing on Ports and Adapters boundaries and dependency inversion across several languages.
More from affaan-m/ecc
All 257- Mcp Server Patterns11.9K
- Plankton Code Quality11.9K
- Fal Ai Media11.8K
- Visa Doc Translate11.8K
- Inventory Demand Planning11.8K
- Customs Trade Compliance11.8K
- Brand Voice11.8K
- Seo11.7K
- Kotlin Ktor Patterns11.7K
- Enterprise Agent Ops11.7K
- Quality Nonconformance11.7K
- Ralphinho Rfc Pipeline11.7K
- Crosspost11.7K
- Agent Eval11.7K
- Production Scheduling11.6K
- Videodb11.6K
- Nanoclaw Repl11.6K
- Logistics Exception Management11.6K
- Kotlin Exposed Patterns11.6K
- Carrier Relationship Management11.6K
- Energy Procurement11.6K
- Nuxt4 Patterns11.5K
- Returns Reverse Logistics11.5K
- Team Builder11.5K
Similar to Hexagonal Architecture
More Backend & APIsarchitecture-patternswshobson/agents25.8K installsReference guide to Clean, Hexagonal, and Domain-Driven Design patterns with layered structure rules and in-memory test adapters.
clean-architecturegiuseppe-trisciuoglio/developer-kit4.2K installsImplementation patterns for Clean Architecture, Hexagonal Architecture, and DDD in Java 21+ Spring Boot 3.5+ apps.
clean-ddd-hexagonalccheney/robust-skills4.8K installsOpinionated guide for choosing DDD, Clean Architecture, and ports-and-adapters patterns to fix domain or dependency problems.
architecture-blueprint-generatorgithub/awesome-copilot12.4K installsGenerates a comprehensive architecture blueprint document by analyzing a codebase's stack, patterns, and conventions.
domain-model-boundaries-mapperpatricio0312rev/skills271 installsMaps domain boundaries, ownership, and dependencies using Domain-Driven Design for refactoring service coupling.
architecture-diagramsaj-geddes/useful-ai-prompts2K installsText-based architecture diagrams in Mermaid and PlantUML, covering C4, flowchart, sequence, and deployment views.