implement-value-objects

Community

Build immutable, valid domain value objects.

Authormariotoffia
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill guides developers to implement immutable, self-validating value objects in a Domain-Driven Design context, ensuring invariants are preserved and domain concepts are expressed clearly.

Core Features & Use Cases

  • Immutable by design: value objects have no identity and are defined by their attributes.
  • Self-validation: constructors enforce valid states, preventing invalid data from entering the domain.
  • Equality by value: equality checks are based on all relevant attributes, not identity.
  • Composition & behavior: value objects can be composed into more complex types with domain behavior.
  • Testing guidance: provides table-driven tests and boundary-case coverage to validate behavior.

Quick Start

Create a new value object in your domain, implement a constructor with validation, add equality checks and small domain methods, then write unit tests and run them.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 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: implement-value-objects
Download link: https://github.com/mariotoffia/gobridge/archive/main.zip#implement-value-objects

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.