dotnet-clean-architecture

Scaffold a layered .NET solution with Clean Architecture boundaries.

69|13|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/ronnythedev/dotnet-clean-architecture-skills --skill dotnet-clean-architecture
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-clean-architecture
Source: https://github.com/ronnythedev/dotnet-clean-architecture-skills/tree/main/sample/POS/.claude/skills/01-dotnet-clean-architecture
Command: npx skills add https://github.com/ronnythedev/dotnet-clean-architecture-skills --skill dotnet-clean-architecture

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the challenge of starting new .NET projects by providing a ready-to-use Clean Architecture scaffolder that creates a properly layered solution (API, Application, Domain, Infrastructure) with consistent structure and wiring.

Core Features & Use Cases

  • Automatically scaffolds a multi-project solution with Domain, Application, Infrastructure, and API layers following the Dependency Rule.
  • Provides a ready-made structure for DI, project references, and baseline templates to jump-start development.
  • Use Case: When starting a new .NET initiative, run this skill to generate a complete skeleton that you can immediately customize for business domains.

Quick Start

dotnet new sln -n {SolutionName} dotnet new classlib -n {name}.domain -o src/{name}.domain dotnet new classlib -n {name}.application -o src/{name}.application dotnet new classlib -n {name}.infrastructure -o src/{name}.infrastructure dotnet new webapi -n {name}.api -o src/{name}.api

dotnet sln add src/{name}.domain/{name}.domain.csproj dotnet sln add src/{name}.application/{name}.application.csproj dotnet sln add src/{name}.infrastructure/{name}.infrastructure.csproj dotnet sln add src/{name}.api/{name}.api.csproj

dotnet add src/{name}.application/{name}.application.csproj reference ../{name}.domain/{name}.domain.csproj dotnet add src/{name}.infrastructure/{name}.infrastructure.csproj reference ../{name}.domain/{name}.domain.csproj dotnet add src/{name}.infrastructure/{name}.infrastructure.csproj reference ../{name}.application/{name}.application.csproj dotnet add src/{name}.api/{name}.api.csproj reference ../{name}.application/{name}.application.csproj dotnet add src/{name}.api/{name}.api.csproj reference ../{name}.infrastructure/{name}.infrastructure.csproj

Frequently Asked Questions about dotnet-clean-architecture

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

FAQPage Schema
How do I scaffold a .NET Clean Architecture solution automatically?

A .NET Clean Architecture solution separates Domain, Application, Infrastructure, and API layers to enforce the Dependency Rule, ensuring inner layers remain independent of outer layers for maintainable enterprise code.

What packages are required for a .NET Clean Architecture setup with CQRS?

To scaffold a .NET Clean Architecture solution, this skill generates a multi-project skeleton with Domain, Application, Infrastructure, and API layers, enforcing the Dependency Rule and setting up project references automatically.

Does this .NET Clean Architecture scaffolder include Dependency Injection setup?

A .NET Clean Architecture setup with CQRS requires the .NET 8+ SDK and standard packages like MediatR, FluentValidation, EF Core, and Dapper to generate a ready-to-use skeleton with baseline DI templates.

What is the best way to structure a new .NET 8 solution using Clean Architecture?

Yes, this .NET Clean Architecture scaffolder includes ready-made Dependency Injection (DI) setup and project reference wiring across the Application, Infrastructure, and API layers for immediate development.

Related Skills