entity-vs-value-object-decision
Apply when classifying a new domain type during modeling or code review — specifically when a developer is uncertain whether a struct should have an identity field (UUID), pointer semantics, and mutable state (entity) or value-type semantics, unexported fields, and immutability (value object).
Pinned to revision e4081cbb4d29, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/entity-vs-value-object-decision/SKILL.md
- skills/entity-vs-value-object-decision/test-prompts.json
Every link opens the file at its source, pinned to the revision this page describes.