Dotnet Skills banner
nesbo nesbo

Dotnet Skills

Development community Intermediate

Description

Production-ready Domain-Driven Design patterns and data persistence implementations for .NET projects using Claude Code.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

.NET Claude Code Skills Library

Production-ready Domain-Driven Design patterns and data persistence implementations for .NET projects using Claude Code.

**Applicability**: While these patterns are explained using C# and .NET, the DDD principles and hexagonal architecture concepts apply to any object-oriented programming language.

**For Claude Code Users**: See [CLAUDE.md](CLAUDE.md) for information about using this repository with Claude Code.

Available Skills

1. Domain-Driven Design Basics (`ddd-dotnet/`)

**Purpose**: Core DDD patterns for building the domain layer (ports) in hexagonal architecture.

**What it covers:**

  • Domain object hierarchy (IDomainObject, IAggregate, IEntity)
  • Aggregate root patterns with versioning
  • Repository pattern with CQRS separation
  • Command pattern using Paramore.Brighter
  • Query pattern with ViewModels
  • Time control pattern (IClock)
  • Unit of Work pattern
  • Domain exceptions
  • Best practices and anti-patterns

**When to use:**

  • Creating new aggregates or entities
  • Implementing command handlers
  • Implementing query handlers
  • Understanding domain layer structure
  • Code reviews for domain logic

**Key templates included:**

  • New aggregate class
  • Command & handler
  • Query & handler
  • Domain exceptions

2. Data Persistence Layer (`data-dotnet/`)

**Purpose**: Implementing the data persistence layer as an adapter in hexagonal architecture. This skill demonstrates one approach using Entity Framework Core, but the patterns apply to any ORM or data access technology.

**What it covers:**

  • Data context configuration (production & testing)
  • Entity-to-table mapping and configurations
  • Repository implementations (write & query)
  • Unit of Work implementation
  • Dependency injection auto-registration
  • In-memory database testing support
  • Schema migration workflow
  • Database schema organization
  • Performance optimization patterns

**When to use:**

  • Adding new aggregates to the database

...