dotnet-clean-architecture

Scaffold a .NET solution with Clean Architecture layers and dependency injection.

Updated Jan 30, 2026
One-click install
npx skills add https://github.com/spallempati/AI-Studio --skill dotnet-clean-architecture-spallempati
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-clean-architecture
Source: https://github.com/spallempati/AI-Studio/tree/main/skills/dotnet-architecture/dotnet-clean-architecture
Command: npx skills add https://github.com/spallempati/AI-Studio --skill dotnet-clean-architecture-spallempati

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the setup of a new .NET project structured according to Clean Architecture principles, saving developers significant time and ensuring best practices are followed from the start.

Core Features & Use Cases

  • Project Scaffolding: Generates a complete .NET solution with distinct layers (API, Application, Domain, Infrastructure).
  • Dependency Injection Setup: Configures DI for seamless integration between layers.
  • Cross-Cutting Concerns: Includes basic setup for common concerns like logging and validation.
  • Use Case: When starting a new .NET microservice, use this Skill to quickly generate the foundational project structure, allowing you to focus immediately on business logic.

Quick Start

Use the dotnet-clean-architecture skill to scaffold a new .NET 8 solution named 'MyCleanApi'.

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?

To scaffold a .NET Clean Architecture solution, this Skill generates a complete project structure with distinct API, Application, Domain, and Infrastructure layers. It configures dependency injection and cross-cutting concerns like logging and validation.

What is the correct dependency direction in a .NET Clean Architecture project?

In a .NET Clean Architecture project, dependencies must point unidirectionally inward, with the Domain layer being the most isolated. This Skill establishes the correct layered separation to enforce these boundaries from the start.

Can I use this scaffolding tool for a new .NET microservice?

Yes, you can use this scaffolding tool for a new .NET microservice. It quickly generates the foundational Clean Architecture project structure, allowing you to focus immediately on implementing business logic.

Does the generated .NET Clean Architecture solution include dependency injection setup?

Yes, the generated .NET Clean Architecture solution includes dependency injection setup. The Skill configures DI for seamless integration between the API, Application, Domain, and Infrastructure layers.

What cross-cutting concerns are included when scaffolding a Clean Architecture .NET solution?

When scaffolding a Clean Architecture .NET solution, basic setup for common cross-cutting concerns like logging and validation is included. This ensures essential infrastructure is configured alongside the core project layers.

Why use a scaffolding tool for .NET Clean Architecture instead of manual setup?

Using a scaffolding tool for .NET Clean Architecture saves significant time and ensures best practices are followed from the start. It automates creating distinct layers and configuring dependency injection, preventing structural errors.