dotnet-create-entity

Create .NET domain entities with DDD patterns and EF Core configuration.

21|4|Updated Jan 8, 2026
One-click install
npx skills add https://github.com/JotJunior/claude-ai-tips --skill dotnet-create-entity
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-create-entity
Source: https://github.com/JotJunior/claude-ai-tips/tree/main/language-related/dotnet/skills/dotnet-create-entity
Command: npx skills add https://github.com/JotJunior/claude-ai-tips --skill dotnet-create-entity

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates scaffolding of a domain entity in a .NET project following Domain-Driven Design, generating Entities, Value Objects, domain events, exceptions, and EF Core mappings.

Core Features & Use Cases

  • Generates a full domain entity with private setters, a static factory, and domain events.
  • Creates supporting types (Value Objects, Events, Exceptions) and repository scaffolding (interface and implementation) plus EF Core configuration.
  • Use case: bootstrap a new bounded context by quickly creating a feature-rich aggregate with persistence integration.

Quick Start

Provide a name and core properties to scaffold a complete domain entity with DDD patterns and EF Core wiring.

Frequently Asked Questions about dotnet-create-entity

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a .NET domain entity with DDD patterns and EF Core?

To create a .NET domain entity with DDD patterns, you scaffold a rich domain model using a static factory method, private setters, domain events, and EF Core configuration. This approach enforces validation and encapsulates persistence mapping within the aggregate.

What is included in a DDD domain entity scaffold for .NET?

A DDD domain entity scaffold includes the main entity, supporting value objects, custom exceptions, and domain events. It also generates repository interfaces, implementations, and EF Core mapping configurations to ensure complete persistence integration.

How do I bootstrap a new bounded context in .NET with rich domain models?

To bootstrap a new bounded context in .NET, you generate a feature-rich aggregate that encapsulates business logic. This involves creating entities with static factories, domain events, and repository scaffolding to integrate persistence seamlessly.

Does generating a DDD entity with this method include domain event integration?

Yes, generating a DDD entity includes domain event integration. The scaffolding process automatically creates domain events alongside value objects and custom exceptions, ensuring the aggregate can communicate state changes effectively within the bounded context.

Can I use this DDD scaffolding approach for an existing EF Core repository?

This DDD scaffolding approach generates a new repository interface and implementation alongside the entity. It is designed for adding rich domain models that require a repository, making it suitable for extending existing bounded contexts with properly mapped aggregates.

Why does my DDD domain entity need a static factory creation method?

A DDD domain entity needs a static factory creation method to enforce invariants and ensure valid object state upon instantiation. This pattern encapsulates construction logic, replacing public constructors to maintain strict domain model integrity.