Skip to content

Dotnet Clean Architecture Skills

27 AI-ready skills for generating production-grade .NET code, Clean Architecture, CQRS, DDD. Works with Claude Code, GitHub Copilot, and Cursor.

Install: npx dotnet-clean-arch

Works with Claude Code, Cursor, GitHub Copilot · 76 GitHub stars

Install

$npx dotnet-clean-arch

Install command taken from the project's README or registry entry. Always review code before running it.

.NET Clean Architecture Skills

29 AI-ready skills that teach your coding assistant how to generate production-grade .NET code — Clean Architecture, CQRS, DDD — without explaining the patterns every time.

Works with: Claude Code | Codex | GitHub Copilot | Cursor

Before (plain prompt)

"Create a Product entity with name, price, and category"

Your assistant generates a basic class with public setters, no validation, no events, inconsistent patterns.

After (with skills installed)

"Using skill 04-dotnet-domain-entity-generator, create a Product aggregate root with Name (required, max 200), Price (positive decimal), and a CategoryId foreign key"

Your assistant generates a proper DDD entity with private setters, a Create() factory method, domain events, typed errors, and a repository interface — matching the patterns already in your codebase.

Get started in 30 seconds

npx dotnet-clean-arch

Interactive installer: pick your agent (Claude Code, Codex, Cursor, GitHub Copilot), cherry-pick the skills you want, done. No clone required. See dotnet-clean-arch on npm for full CLI docs.

Prefer to clone or symlink directly? See Installation below for alternatives.

Then follow Recipe 0: Scaffold a New Project or jump to Recipe 1: Add a CRUD Feature if you already have a solution.


Skills Index

Why the dotnet- prefix? Every skill in this collection is namespaced with dotnet- so the pack is identifiable in mixed-pack environments and addressable in conversation. Instead of remembering an exact skill name, you can say "use the dotnet- skill for CQRS commands" and the agent will narrow down the candidates. The prefix also prevents collisions with other skill packs that might use generic names like repository-pattern or unit-testing. Skill folders follow the pattern <NN>-dotnet-<topic>/, where the numeric prefix establishes a stable learning order and the dotnet-<topic> portion matches the name field in each skill's frontmatter.

Core Architecture Skills

# Skill Description Key Templates
1 dotnet-clean-architecture Project scaffolding Solution structure, layer setup, DI configuration
2 dotnet-cqrs-command-generator Write operations Commands, Handlers, Validators
3 dotnet-cqrs-query-generator Read operations Queries, Dapper SQL, Response DTOs
4 dotnet-domain-entity-generator Domain modeling Entities, Value Objects, Factory methods
5 dotnet-repository-pattern Data access abstraction Repository interfaces, EF Core implementations
6 dotnet-ef-core-configuration Database mapping Fluent API, Relationships, Indexes
7.1 dotnet-legacy-api-controllers REST API controllers Controllers, Authorization, Versioning
7.2 dotnet-minimal-api-endpoints Minimal API endpoints MapGet/MapPost, Filters, Versioning
8 dotnet-result-pattern Error handling Result, Result, Error types
9 dotnet-domain-events-generator Event-driven design Domain Events, Handlers, Outbox pattern
10 dotnet-pipeline-behaviors Cross-cutting concerns Logging, Validation, Transaction behaviors

Validation Skills

Similar plugs

The 1st Collaborative AI Design Agent Workspace. Local-first and open source. Create prototypes, websites, apps, dashboards, presentations, images, and videos with your team…

Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.

Open-source AI job search agent and job finder: scan job boards, score each job 1-5 against your CV before you apply, tailor an ATS-friendly resume and cover letter, get…

Explore related