dotnet-domain-primitives
CommunityEnforce domain integrity with typed IDs.
Software Engineering#code-quality#domain-driven-design#c##value-objects#domain-primitives#strongly-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
Guidorintfor 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
Orderentity, instead of usingGuidforOrderId, you define aOrderIdstrongly typed ID, ensuring it can never be accidentally mixed up with aCustomerIdor otherGuids.
Quick Start
Use the dotnet-domain-primitives skill to create a strongly typed CustomerId for your domain entities.
Dependency Matrix
Required Modules
None requiredComponents
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.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.