value-objects

Règle 04 : Value Objects. Use when implementing DDD patterns.

⭐8stars🔀0forks📁View on GitHub🕐Updated Dec 19, 2025

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.
namevalue-objects
descriptionRè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.