domain-entity-uuidv4-ids

Installation
SKILL.md

Domain Entity UUIDv4 IDs

Goal

Represent domain entity identifiers with UUIDv4.

When the programming language or standard library provides a built-in UUID type, prefer that type for domain entity IDs. When no such built-in type exists, use string for domain entity IDs and keep UUIDv4 generation and validation explicit.

Treat this skill as identity-format guidance for domain entities. It determines the identifier format (UUIDv4) and the underlying type (built-in UUID or string). Whether to wrap that underlying type in a distinct type per domain entity — such as OrderId or CustomerId — is a separate concern handled by the domain-entity-typed-ids skill.

The key question is whether the edited code defines, carries, validates, stores, serializes, or exposes the identifier of a domain entity.

What Counts as In Scope

Apply this skill to code that does one or more of these things:

  • defines the ID field or property of a domain entity
  • defines constructor parameters or factory inputs for domain entity identity
  • defines the type used to carry a domain entity ID through the domain model
Related skills

More from code-sherpas/agent-skills

Installs
6
First Seen
Mar 24, 2026