Domain Entity Typed Ids

Determine how to type domain entity identifiers based on the project's type system. Use when an agent needs to create, modify, review, or interpret the type of a domain entity's identifier. In languages with a nominal type system, use typed IDs — a distinct type per domain entity that wraps the underlying identifier type. In languages with a structural type system, use typed IDs only if the language offers a low-friction mechanism to make them nominally distinct. Otherwise, use the underlying identifier type directly.

code-sherpas 7de3a01 7.2 KB Updated

File contents

code-sherpas/agent-skills/tree/main/skills/domain-entity-typed-ids commit 7de3a01df1

Frequently asked questions

npx skillmds@latest add code-sherpas/domain-entity-typed-ids