0124-architecture-patterns
CommunityDesign clean, testable backend architectures.
System Documentation
What problem does it solve?
It solves tangled dependencies and hard-to-test backend code by providing proven backend architecture patterns that enforce clear boundaries between domain logic, application workflows, and infrastructure concerns.
Core Features & Use Cases
- Clean Architecture: Separate Entities (domain), Use Cases (application rules), Interface Adapters (translation), and Framework/Drivers (DB, UI, external services) with inward-only dependencies.
- Hexagonal Architecture: Model the system around ports and adapters so the domain core stays framework-free while infrastructure implementations can be swapped freely.
- Domain-Driven Design (DDD): Establish bounded contexts plus tactical modeling (entities, value objects, aggregates, repositories, domain events) to keep models coherent and resilient.
- Testing & Troubleshooting: Enable unit tests without a running database by injecting abstract ports and using in-memory adapters; resolve dependency cycles by enforcing imports that flow inward only.
Quick Start
Ask the AI to refactor your service into Clean/Hexagonal layers by defining domain entities and ports first, then building use cases, and finally wiring adapters (controllers and infrastructure) through dependency injection, while adding an in-memory test repository to keep use-case tests database-free.
Dependency Matrix
Required Modules
None requiredComponents
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: 0124-architecture-patterns Download link: https://github.com/MrJmpl3/codex_____data_____configuration/archive/main.zip#0124-architecture-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.