Advanced Hexagonal Architecture for TypeScript

•
9
•

Identifies and fixes architectural anti-patterns in Hexagonal TypeScript projects to ensure strict separation of concerns.

This skill acts as an automated architectural auditor for Claude Code, specifically targeting advanced violations of the Hexagonal Architecture (Ports and Adapters) pattern in TypeScript. It helps developers maintain a clean domain by detecting framework leaks, dependency direction violations, and improper layer bypassing. By providing side-by-side 'Wrong vs. Correct' comparisons, it facilitates the refactoring of tightly coupled code into highly testable, framework-agnostic business logic, ensuring your core domain remains pure and resilient to infrastructure changes.

主な機能

01Identifies layer-skipping violations where HTTP handlers bypass the use case layer
02Provides comparative code examples to guide architectural refactoring
039 GitHub stars
04Detects framework dependencies like TypeORM or NestJS within domain models
05Enforces dependency inversion by replacing concrete adapter references with port interfaces
06Decouples domain logic from validation libraries like Zod

ユースケース

01Auditing a TypeScript codebase for architectural debt and dependency leaks
02Refactoring NestJS or Express applications to follow strict Ports and Adapters patterns
03Automating code reviews to ensure business logic remains framework-agnostic