dotnet-backend-patterns

Guide C#/.NET backend development with Clean Architecture and dependency injection.

Updated Mar 10, 2026
One-click install
npx skills add https://github.com/buisihung11/prototype-zero --skill dotnet-backend-patterns-buisihung11
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-backend-patterns
Source: https://github.com/buisihung11/prototype-zero/tree/main/.agents/skills/dotnet-backend-patterns
Command: npx skills add https://github.com/buisihung11/prototype-zero --skill dotnet-backend-patterns-buisihung11

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides a comprehensive guide and practical examples for building robust, scalable, and maintainable .NET backend applications following modern best practices.

Core Features & Use Cases

  • Architectural Patterns: Implement Clean Architecture, Dependency Injection, and asynchronous programming.
  • Data Access: Master Entity Framework Core and Dapper for efficient data persistence.
  • Configuration & Caching: Utilize IOptions for configuration and Redis for caching.
  • Testing: Write effective unit and integration tests using xUnit.
  • Use Case: When starting a new .NET API project, use this Skill to establish a solid project structure, implement core patterns like DI and async/await, and set up data access with EF Core or Dapper.

Quick Start

Use the dotnet-backend-patterns skill to generate a new .NET Web API project with a Clean Architecture structure.

Frequently Asked Questions about dotnet-backend-patterns

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

FAQPage Schema
How do I structure a new .NET Web API project using Clean Architecture?

This Skill provides guidance to generate a .NET Web API project with a Clean Architecture structure, establishing separation of concerns across domain, application, and infrastructure layers for scalable C# backend development.

When should I use Dapper instead of Entity Framework Core for data access?

Use Dapper instead of EF Core for lightweight, high-performance read queries in .NET. This Skill provides code examples for both Dapper and EF Core to help you implement efficient data persistence tailored to your query complexity.

How does dependency injection work in C# backend development?

Dependency injection in C# supplies objects with their dependencies rather than having them construct the objects internally. This Skill provides practical examples to configure DI, decoupling .NET backend components for easier testing and maintenance.

What is the best way to configure .NET application settings with IOptions?

The best way to configure .NET settings with IOptions is binding strongly-typed classes to appsettings.json files. This Skill demonstrates configuration management using IOptions to validate and inject settings directly into your C# backend services.

Can I use xUnit for both unit and integration testing in a .NET backend?

You can use xUnit for both unit and integration testing in a .NET backend. This Skill guides you through writing effective tests using xUnit to verify C# code, async/await operations, and API endpoints across different testing scenarios.

How do I implement Redis caching in an ASP.NET Core API?

Implement Redis caching in an ASP.NET Core API by configuring distributed cache services to store frequently accessed data. This Skill provides code examples for integrating Redis to reduce database load and improve .NET backend response times.