Clean Architecture & DDD Patterns

•
69
•

Implements maintainable, decoupled backend systems using SOLID principles, hexagonal architecture, and Domain-Driven Design (DDD).

The Clean Architecture skill empowers Claude with the structural expertise needed to build production-grade, testable backends. By enforcing hexagonal architecture (ports and adapters) and tactical DDD patterns, it ensures that core domain logic remains isolated from external frameworks like FastAPI or specific database implementations. The skill includes automated hooks to validate import directions and layer boundaries, helping developers avoid common pitfalls like infrastructure leakage and tight coupling while maintaining a standardized, scalable directory structure.

Key Features

0169 GitHub stars
02Modern Python implementation of SOLID principles using structural typing (Protocols)
03Tactical DDD patterns including Entities, Value Objects, and Aggregate Roots
04Automated backend layer validation to prevent architectural leakage
05Hexagonal architecture patterns for decoupling domain logic from infrastructure
06Enforcement of clean import directions to maintain architectural integrity

Use Cases

01Designing new FastAPI services with strict separation of concerns
02Implementing complex domain logic using robust DDD tactical patterns
03Refactoring monolithic applications into decoupled, testable hexagonal architectures