Immutable Domain Entities

Require the immutable design pattern for domain entities. Use when an agent needs to create, modify, review, or interpret domain entities and should preserve identity while expressing state changes through new immutable instances. Domain entities must be modeled as immutable classes, not as plain type aliases or interfaces paired with standalone functions.

code-sherpas a923a37 6.0 KB Updated

File contents

code-sherpas/agent-skills/tree/main/skills/immutable-domain-entities commit a923a378f1

Frequently asked questions

npx skillmds@latest add code-sherpas/immutable-domain-entities