value-objects
Règle 04 : Value Objects. Use when implementing DDD patterns.
When & Why to Use This Skill
This Claude skill provides comprehensive guidelines and best practices for implementing Value Objects within Domain-Driven Design (DDD) patterns. It helps developers improve software quality by promoting immutability, enhancing type safety, and ensuring that business logic is encapsulated correctly within the domain model.
Use Cases
- Refactoring 'primitive obsession' by replacing basic data types (like strings or integers) with rich, validated Value Objects for concepts like Email, Money, or Address.
- Designing immutable domain models to prevent side effects and ensure data integrity across complex software systems.
- Implementing domain-specific validation rules that automatically enforce business constraints whenever a new object is instantiated.
| name | value-objects |
|---|---|
| description | Règle 04 : Value Objects. Use when implementing DDD patterns. |
Règle 04 : Value Objects
This skill provides guidelines and best practices.
See @REFERENCE.md for detailed documentation.