Domain-Driven Design (DDD) Patterns

•
92
•

Implements tactical DDD patterns to model complex business logic through entities, value objects, and bounded contexts.

This skill equips Claude with the architectural patterns needed to tackle complex business domains using Domain-Driven Design (DDD). It provides standardized templates for creating rich domain models in Python, including immutable value objects, stateful entities with unique identity, and clean repository abstractions. By enforcing strict separation between domain logic and infrastructure, it helps developers build maintainable, scalable systems that utilize a ubiquitous language shared between code and business requirements. It is particularly effective for large-scale enterprise applications where maintaining data consistency and clear service boundaries is critical.

主要功能

01Establish aggregate boundaries to ensure high data consistency and integrity
02Define clear bounded contexts to isolate and protect business subdomains
0392 GitHub stars
04Decouple persistence logic from the domain using the Repository pattern
05Model entities with unique identity and stateful lifecycle management
06Implement immutable value objects using frozen Python dataclasses

使用场景

01Refactoring anemic domain models into rich, behavior-driven domain objects
02Designing microservices with clear boundaries and domain event-driven communication
03Architecting large-scale enterprise systems with complex, multi-step business rules