clean-architecture

Implement Clean Architecture with dependency inversion across .NET solution layers.

2|Updated Apr 6, 2026
One-click install
npx skills add https://github.com/bingeli1379/eli-claude-marketplace --skill clean-architecture-bingeli1379
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: clean-architecture
Source: https://github.com/bingeli1379/eli-claude-marketplace/tree/main/plugins/eureka-sdd/skills/clean-architecture
Command: npx skills add https://github.com/bingeli1379/eli-claude-marketplace --skill clean-architecture-bingeli1379

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Organizes and enforces architectural boundaries in .NET projects to reduce coupling and preserve domain integrity.

Core Features & Use Cases

  • Dependency inversion is the foundation: keep domain free from infrastructure concerns and ensure inward dependencies.
  • Domain-owned rules and use cases: place business logic inside the Domain and Application layers with clear handlers.
  • Thin API layer and pluggable infrastructure: expose endpoints with minimal logic while relying on Infrastructure implementations for I/O.

Quick Start

Apply Clean Architecture to structure your solution into Domain, Application, Infrastructure, and Api layers and enforce inward dependencies.

Frequently Asked Questions about clean-architecture

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

FAQPage Schema
How do I enforce dependency inversion in a multi-layer .NET solution?

Dependency inversion in .NET is enforced by keeping the domain layer free from infrastructure concerns and ensuring all dependencies point inward toward the domain. This preserves domain integrity by organizing your architecture so infrastructure depends on application, not the other way around.

What is the best way to structure a .NET project using clean architecture and domain-driven design?

Clean architecture for .NET projects is structured by separating your solution into Domain, Application, Infrastructure, and API layers. This layout places business logic inside Domain and Application layers with clear use-case handlers, exposing endpoints through a thin API layer.

How do I isolate domain-owned rules and use cases from infrastructure in .NET?

Domain-owned rules are isolated by placing all business logic inside the Domain and Application layers with well-defined use-case handlers. A pluggable infrastructure layer handles I/O operations, ensuring the domain remains pure and independent of external data sources.

Does clean architecture work for .NET solutions that require a thin API layer and pluggable infrastructure?

Clean architecture works for .NET solutions by exposing endpoints with minimal logic in a thin API layer while relying on Infrastructure implementations for I/O. This approach satisfies requirements for inward-facing dependencies and pluggable infrastructure across domain boundaries.

Why does my .NET application architecture have high coupling between domain logic and infrastructure?

High coupling in .NET architecture happens when domain logic references infrastructure directly, violating dependency inversion. You resolve this by enforcing inward-facing dependencies where infrastructure implementations serve the application layer, keeping domain behavior isolated and intact.

When should I not use clean architecture for my .NET project?

Clean architecture may be unnecessary for simple .NET projects that do not require multi-layer solutions or strict domain-driven rules. It is designed for complex applications needing pluggable infrastructure and clear use-case separation across domain, application, and API boundaries.