dotnet-domain-primitives

Community

Enforce domain integrity with typed IDs.

Authormcj-coder
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill prevents "primitive obsession" in .NET domain models by enforcing the use of strongly typed identifiers and value objects, leading to more robust, type-safe, and maintainable code.

Core Features & Use Cases

  • Strongly Typed IDs: Replaces primitive types like Guid or int for entity identifiers with custom, type-safe ID objects.
  • Value Objects: Encapsulates meaningful primitives (e.g., EmailAddress, Money) with built-in validation and immutability.
  • Boundary Enforcement: Ensures conversions to/from primitive types occur only at explicit boundaries (persistence, transport, serialization).
  • Use Case: When designing a new Order entity, instead of using Guid for OrderId, you define a OrderId strongly typed ID, ensuring it can never be accidentally mixed up with a CustomerId or other Guids.

Quick Start

Use the dotnet-domain-primitives skill to create a strongly typed CustomerId for your domain entities.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: dotnet-domain-primitives
Download link: https://github.com/mcj-coder/development-skills/archive/main.zip#dotnet-domain-primitives

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.