Domain Entity Reference Optionality

Determine whether a reference from one domain entity to another should be required or optional. Use when an agent needs to create, modify, review, or interpret a domain entity that holds a reference to another domain entity and must decide if that reference can be absent. A reference is required when the entity cannot exist in a valid domain state without it. A reference is optional when the entity can exist in a valid domain state without it. This rule applies only to single-value references — collection references are never nullable because an empty collection represents the absence of related entities.

code-sherpas 22b8b44 7.5 KB Updated

File contents

code-sherpas/agent-skills/tree/main/skills/domain-entity-reference-optionality commit 22b8b4411d

Frequently asked questions

npx skillmds@latest add code-sherpas/domain-entity-reference-optionality