dotnet-architecture

Generate a Clean Architecture blueprint with layered projects for .NET applications.

Updated Apr 16, 2026
One-click install
npx skills add https://github.com/tassosgomes/poc-iam-service --skill dotnet-architecture-tassosgomes
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-architecture
Source: https://github.com/tassosgomes/poc-iam-service/tree/main/.github/skills/csharp/dotnet-architecture
Command: npx skills add https://github.com/tassosgomes/poc-iam-service --skill dotnet-architecture-tassosgomes

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provide a ready-to-use Clean Architecture blueprint for .NET applications to address inconsistent project structure.

Core Features & Use Cases

  • Layered architecture blueprint: enforces the 1-Services, 2-Application, 3-Domain, 4-Infra, 5-Tests structure for new projects.
  • Native CQRS & repository patterns: demonstrates commands, queries, and repository usage without MediatR.
  • Validation and error handling guidance: includes global exception handling, DI wiring, and FluentValidation integration sample.

Quick Start

Create a new solution and scaffold the standard layered projects (API, Application, Domain, Infra, and Tests) following the convention in this guide.

Frequently Asked Questions about dotnet-architecture

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

FAQPage Schema
How do I structure a .NET microservice using Clean Architecture?

Structure a .NET microservice using Clean Architecture by dividing it into API, Application, Domain, Infra, and Tests projects. This blueprint enforces a strict layered setup to standardize project structures and ensure consistent dependency injection wiring.

Can I implement CQRS in .NET without using MediatR?

Yes, you can implement native CQRS in .NET without MediatR. This architecture demonstrates how to handle commands and queries directly within the Application layer, reducing external dependencies while maintaining strict separation of concerns.

What is the best way to organize Domain and Infra layers in a .NET application?

Organize .NET Domain and Infra layers by isolating business logic in the Domain layer and implementing data access via the repository pattern in Infra. This separation enforces dependency inversion and uses EF Core for data operations.

How do I set up global exception handling and validation in a clean architecture .NET project?

Set up global exception handling and validation by configuring DI wiring in the API layer and integrating FluentValidation in the Application layer. This ensures consistent error handling across the entire .NET project structure.

When should I apply the repository pattern with EF Core in a .NET application?

Apply the repository pattern with EF Core when you need to abstract data access and centralize query logic within the Infra layer. This is especially useful when restructuring large legacy projects into a standardized layered setup.

Does this .NET clean architecture blueprint require specific dependencies or frameworks?

No specific external dependencies are required to start. The blueprint relies on native .NET patterns for CQRS and DI, while providing integration samples for EF Core and FluentValidation to guide your implementation.