value-object

Official

Implement immutable Value Objects with base patterns.

Authordairectiv
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides standardized patterns for implementing immutable Value Objects using base classes (StringValue, UuidValue, ObjectValue) and Doctrine custom types, reducing boilerplate and ensuring consistent behavior across domains.

Core Features & Use Cases

  • Immutable by default: Value objects are readonly with private constructors and factory methods.
  • Doctrine integration: Includes patterns for custom Doctrine types and persistence mappings.
  • Domain expressiveness: Enables identity objects and wrapped primitive values with domain meaning.

Quick Start

Define your first value object by extending StringValue (e.g., DirectiveId), then register a Doctrine type to persist it, and instantiate via fromString() or generate().

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: value-object
Download link: https://github.com/dairectiv/dairectiv/archive/main.zip#value-object

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.