Skip to main content
skill CX Codex

dotnet-domain-modeling — Claude Code skill: overview & setup

Guides pure C# Domain-Driven Design modeling with entities, aggregate roots, value objects, and domain events, keeping business logic isolated from ORM concerns.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add wshaddix/dotnet-skills --skill dotnet-domain-modeling -a claude-code
Open on GitHub

What dotnet-domain-modeling does

The skill guides tactical Domain-Driven Design modeling in C#. It keeps the domain model isolated. Instructions structure strongly typed entity identifiers, aggregate roots collecting events, and immutable value objects implemented via records.

All state changes pass through aggregate roots. Internal collections hide behind IReadOnlyList instances, while external aggregates connect solely through IDs. This avoids bloated boundaries and unexpected database locks.

Database mappings and API validation remain out of scope. Persistence details and messaging infrastructure belong to dedicated companion skills from the same author.

What it helps with

  • structure aggregate roots with encapsulated IReadOnlyList collections
  • build immutable value objects using C# records with self-validating constructors
  • register domain events inside aggregate lifecycles
  • convert anemic C# models into rich domain entities

Example prompts for the agent

  • Design an Order aggregate root with OrderLine items and an OrderSubmitted domain event
  • Create CustomerId and Money value objects using C# records with constructor validation
  • Implement an Entity<TId> base class with equality operators and ORM constructor support

How to install dotnet-domain-modeling

1Skills CLI (Vercel)

npx skills add wshaddix/dotnet-skills --skill dotnet-domain-modeling -a claude-code

2Manually: put the files in place

~/.claude/skills/dotnet-domain-modeling/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/dotnet-domain-modeling/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about dotnet-domain-modeling

How to install dotnet-domain-modeling in Claude Code?

Run npx skills add wshaddix/dotnet-skills --skill dotnet-domain-modeling -a claude-code in your terminal.

What does the dotnet-domain-modeling skill do?

It provides tactical Domain-Driven Design rules for C#, defining aggregate roots, value objects, and domain events without persistence noise.

Does this skill include EF Core mapping configurations?

No, mapping aggregates, migrations, and DbContext lifecycles are explicitly separated into companion skills like dotnet-efcore-architecture.

Similar skills

All skills for Backend and APIs →

From the same set13

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor