net-domain-model

Design .NET domain models with Domain-Driven Design patterns.

165|62|Updated Jan 9, 2026
One-click install
npx skills add https://github.com/mitkox/ai-coding-factory --skill net-domain-model
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: net-domain-model
Source: https://github.com/mitkox/ai-coding-factory/tree/main/.opencode/skill/net-domain-model
Command: npx skills add https://github.com/mitkox/ai-coding-factory --skill net-domain-model

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides a structured approach for modeling a business domain using Domain-Driven Design, ensuring consistent boundaries, semantics, and maintainability across Entities, Value Objects, Aggregates, domain events, and repository patterns within .NET projects.

Core Features & Use Cases

  • DDD-aligned domain modeling: Entities with identities, immutable Value Objects, and clearly defined Aggregates.
  • Domain events & repositories: Built-in patterns for capturing domain events and repository abstractions for persistence.
  • Scaffold for EF Core integration: Practical folder structure and patterns ready to be wired into Entity Framework Core in a .NET solution.

Quick Start

Create a new .NET solution and add a Domain folder structure that mirrors the example to model your business concepts. Implement sample Entities, Value Objects, and Aggregates to demonstrate DDD patterns.

Frequently Asked Questions about net-domain-model

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

FAQPage Schema
How do I structure a Domain-Driven Design domain model in .NET?

Structure a DDD domain model in .NET by organizing folders into Entities, Value Objects, and Aggregates. This skill scaffolds these patterns to define clear domain boundaries and maintainable business semantics.

What are value objects and aggregates in Domain-Driven Design?

Value objects are immutable domain components without identity, while aggregates group related entities under a root to enforce consistency. This skill provides patterns to implement both for robust domain modeling.

Can I use this DDD domain model pattern with Entity Framework Core?

Yes, the domain model patterns are explicitly designed to be wired into EF Core. The scaffold provides repository interfaces and folder structures ready for Entity Framework Core persistence integration.

How do I implement domain events and repositories in a .NET domain model?

Implement domain events and repositories by applying the built-in patterns from this skill. It captures domain events for business workflows and defines repository abstractions for data persistence within .NET solutions.

What is the best way to enforce consistent domain boundaries in .NET?

The best way to enforce consistent domain boundaries in .NET is using DDD aggregates and entities. This skill models clear transactional limits and semantic rules to keep your business logic scalable and isolated.