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
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>andAggregateRoot<TId>, plus a workedOrderaggregate and aMoneyvalue 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 -yInstalls 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 13Similar to Dotnet Domain Modeling
More .NET & C#domain-driven-designSkillyonatangross/orchestkit1.3K installsTactical Domain-Driven Design patterns for modeling rich domains with entities, value objects, and aggregates.
ddd-tactical-patternsSkillsickn33/agentic-awesome-skills143 installsConcrete guidance for modeling domain rules in code with entities, value objects, aggregates, repositories, and domain events.
m09-domainSkillactionbook/rust-skills3.8K installsDomain modeling guide mapping DDD concepts to Rust patterns, ownership, and invariant enforcement.
ddd-dotnetPluginnesbo/dotnet-claude-code-skills56 starsComprehensive guide to implementing DDD patterns with CQRS, Hexagonal Architecture, aggregates, entities, command/query handlers, and domain best practices. Exp
validation-patternsSkillwshaddix/dotnet-skills546 installsValidation patterns for ASP.NET Core covering DataAnnotations, IValidatableObject, IValidateOptions<T>, and FluentValidation.
dotnet-backend-patternsSkillwshobson/agents20K installsMaster C#/.NET patterns for production APIs covering async, DI, EF Core, Dapper, caching, and testing.