dotnet-clean-architecture

Scaffold a .NET Clean Architecture solution with four-layer separation.

Updated Apr 4, 2026
One-click install
npx skills add https://github.com/hiiamsky/multi-agent-dev-team --skill dotnet-clean-architecture-hiiamsky
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-clean-architecture
Source: https://github.com/hiiamsky/multi-agent-dev-team/tree/main/.github/skills/dotnet-clean-architecture
Command: npx skills add https://github.com/hiiamsky/multi-agent-dev-team --skill dotnet-clean-architecture-hiiamsky

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Scaffolds a complete .NET solution following Clean Architecture principles with proper layer separation (API, Application, Domain, Infrastructure). Creates project structure, dependency injection setup, and cross-cutting concerns configuration.

Core Features & Use Cases

  • Generates a four-layer solution: API, Application, Domain, Infrastructure with clear boundaries.
  • Sets up dependency injection, MediatR pipelines, and common cross-cutting concerns.
  • Provides a runnable starting point for enterprise-grade apps using .NET 8+ and EF Core, Dapper, and Mediatr.
  • Use case: Teams standardize architecture across multiple services, accelerating project bootstrap and maintainability.

Quick Start

Run the tool to scaffold a new .NET Clean Architecture solution.

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 project with MediatR and EF Core?

Scaffolding a .NET Clean Architecture project automates creating a four-layer solution (API, Application, Domain, Infrastructure) with MediatR pipelines, EF Core, and dependency injection pre-configured. You get a runnable enterprise-grade starting point standardizing architecture across teams.

What is Clean Architecture in .NET and when do I need it for my backend?

Clean Architecture in .NET separates an enterprise backend into API, Application, Domain, and Infrastructure layers. You need it when your team requires strict separation of concerns, domain-driven design alignment, and high maintainability for complex, enterprise-grade applications.

Does the .NET Clean Architecture scaffolding include dependency injection setup?

Yes, the .NET Clean Architecture scaffolding includes comprehensive dependency injection setup. It automatically configures cross-cutting concerns and MediatR pipelines across the generated Application and Infrastructure layers to provide a ready-to-use project structure.

Can I use Dapper alongside EF Core in a Clean Architecture solution?

Yes, the scaffolded .NET Clean Architecture solution provides a runnable starting point that supports both EF Core and Dapper. This allows your enterprise backend to utilize both ORMs within the properly separated Infrastructure layer.

What's the best way to standardize .NET architecture across multiple services?

The best way to standardize .NET architecture across multiple services is using a scaffolding tool to generate consistent project structures. It ensures every service follows identical Clean Architecture principles, accelerating project bootstrap and long-term maintainability.