value-objects
CommunityImmutable types for domain validation and value-based equality.
Authorhung-phan
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill introduces the concept of Value Objects to address the issue of primitives carrying domain meaning and the lack of type safety in domain code.
Core Features & Use Cases
- Immutable Types: Encapsulates domain concepts as immutable types with validation at construction and value-based equality.
- Self-Validating: Ensures that only valid instances are created, reducing runtime errors.
- Use Case: Replace primitive types with Value Objects for domain entities like
Money,EmailAddress, andUserIdto prevent common bugs related to type mismatches and invalid data.
Quick Start
Implement a Value Object for money with validation for currency and amount.
Dependency Matrix
Required Modules
None requiredComponents
scriptsreferences
💻 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: value-objects Download link: https://github.com/hung-phan/system-skills/archive/main.zip#value-objects 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 620,000+ vetted skills library on demand.