Skip to content
wshaddix avatar

Dotnet Domain Modeling

Tactical DDD patterns in C# for pure domain models, covering aggregates, value objects, and domain events.

CCM score
52 of 100
skills.sh installs
539
GitHub stars
94
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers aggregate roots, entities, value objects, domain events, integration events, domain services, and repository contract design
  • Includes base classes for Entity<TId> and AggregateRoot<TId>, plus a worked Order aggregate and a Money value object
  • Enforces rules such as mutations only through the aggregate root, referencing other aggregates by ID, and one aggregate per transaction
  • Designed for persistence-independent domain layers, with EF Core mapping and validation handled by separate skills

Install

$ npx -y skills add wshaddix/dotnet-skills --skill dotnet-domain-modeling -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

dotnet-domain-modeling

Domain-Driven Design tactical patterns in C#. Covers aggregate roots, entities, value objects, domain events, integration events, domain services, repository contract design, and the distinction between rich and anemic domain models. These patterns apply to the domain layer itself -- the pure C# model that encapsulates business rules -- independent of any persistence technology.

Out of scope: EF Core configuration and aggregate persistence mapping -- see [skill:dotnet-efcore-architecture]. Tactical EF Core usage (DbContext lifecycle, migrations, interceptors) -- see [skill:dotnet-efcore-patterns]. Input validation at API boundaries -- see [skill:dotnet-validation-patterns]. Choosing between EF Core, Dapper, and ADO.NET -- see [skill:dotnet-data-access-strategy]. Vertical slice architecture and request pipeline patterns -- see [skill:dotnet-architecture-patterns]. Messaging infrastructure and saga orchestration -- see [skill:dotnet-messaging-patterns].

Details

Repository
github.com/wshaddix/dotnet-skills
Categories
.NET & C#, Backend & APIs
First seen
Jun 3, 2026

More from wshaddix/dotnet-skills

All 13

Similar to Dotnet Domain Modeling

More .NET & C#