dotnet-patterns

Guide .NET 8 and ASP.NET Core projects with Clean Architecture, CQRS, and Vertical Slice patterns.

1|Updated Feb 2, 2026
One-click install
npx skills add https://github.com/roberflo/claude-csharp --skill dotnet-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-patterns
Source: https://github.com/roberflo/claude-csharp/tree/main/skills/dotnet-patterns
Command: npx skills add https://github.com/roberflo/claude-csharp --skill dotnet-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Streamlines the design of robust .NET 8 and ASP.NET Core applications by providing reusable architecture patterns and best practices that teams can adopt consistently.

Core Features & Use Cases

  • Clean Architecture guidance with layered project structures and Dependency Inversion.
  • CQRS and Vertical Slice patterns with example command and query organization and pipelines.
  • Domain-Driven Design concepts, including entities, value objects, and domain events, applied to real-world scenarios.

Quick Start

Explore ready-to-use architecture templates and example project skeletons to accelerate project setup.

Frequently Asked Questions about dotnet-patterns

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

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

Clean Architecture in .NET 8 organizes projects into concentric layers with dependency inversion, separating domain logic from infrastructure. This Skill provides guidance on layered project structures and dependency injection to ensure enforceable boundaries and scalable application design.

What is the Vertical Slice pattern and how does it work in ASP.NET Core?

The Vertical Slice pattern in ASP.NET Core organizes features by use case rather than technical layer, grouping related commands and queries together. This Skill offers example organizations and pipelines to implement this structure effectively in your projects.

When do I need CQRS in my .NET application?

You need CQRS in .NET when separating read and write operations to optimize performance and scalability independently. This Skill provides example command and query organizations, demonstrating how to implement CQRS alongside Vertical Slice patterns.

Can I use Domain-Driven Design patterns with .NET 8?

Yes, you can apply Domain-Driven Design in .NET 8 using entities, value objects, and domain events. This Skill provides guidance on implementing these DDD concepts within real-world scenarios and mapping them to your Clean Architecture project structure.

What is the best way to refactor an existing ASP.NET Core project to Clean Architecture?

Refactoring to Clean Architecture involves migrating logic into layered project structures and applying dependency inversion. This Skill supports refactoring by providing reusable architecture conventions and templates to transition your ASP.NET Core applications consistently.

Does this architecture guidance include dependency injection and validation examples?

Yes, the architecture guidance covers dependency injection and validation requirements within ASP.NET Core projects. It supplies conventions and example project skeletons that integrate these elements across layers to satisfy scalable application setup.