affaan-m avatar

Hexagonal Architecture

This teaches Claude to design and refactor systems using Ports and Adapters, keeping your domain logic clean and your infrastructure swappable. It covers the full workflow: modeling use case boundaries, defining outbound ports for every side effect (repos, gateways, clocks), implementing pure orchestration logic, and wiring adapters at composition roots. You get concrete TypeScript, Java, Kotlin, and Go patterns, plus guidance on feature-first module layout and testing strategies per boundary. Reach for it when you're building maintainable features, decoupling framework-heavy code, or supporting multiple interfaces for the same business rules. The dependency inversion discipline takes effort up front but pays off when you swap databases or add a CLI alongside your API without touching core logic.

skills.sh installs
5.8K
GitHub stars
300.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add affaan-m/ecc --skill hexagonal-architecture --agent claude-code

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/affaan-m/ecc
Categories
Code Review & Quality, Automation & Workflows, Mobile Development, Java & JVM, Design & UI/UX
First seen
Jul 14, 2026

More from affaan-m/ecc

All 263
1affaan-m avatarflutter-dart-code-reviewaffaan-m/eccLibrary-agnostic Flutter/Dart code review checklist covering widget best practices, state management patterns (BLoC, Riverpod, Provider, GetX, MobX, Signals), D5.8Kskills.sh installs
2affaan-m avatargan-style-harnessaffaan-m/eccGAN-inspired Generator-Evaluator agent harness for building high-quality applications autonomously. Based on Anthropic's March 2026 harness design paper.5.4Kskills.sh installs
3affaan-m avatarprediction-market-risk-reviewaffaan-m/eccReview prediction-market, basket, oracle, and trading-agent workflows for compliance, safety, data-quality, privacy, and execution risk. Use before any workflow5.3Kskills.sh installs
4jeffallan avatarrag-architectjeffallan/claude-skillsDesigns and implements production-grade RAG systems by chunking documents, generating embeddings, configuring vector stores, building hybrid search pipelines, a4.9Kskills.sh installs
5jeffallan avatarcloud-architectjeffallan/claude-skillsDesigns cloud architectures, creates migration plans, generates cost optimization recommendations, and produces disaster recovery strategies across AWS, Azure, 4.9Kskills.sh installs
6affaan-m avatarinherit-legacy-styleaffaan-m/eccLegacy-project style inheritance skill. Use when the user types /inherit-legacy-style, or when onboarding an AI coding agent onto a hand-written legacy project 4.8Kskills.sh installs