dotnet-backend-patterns

Organize .NET backend architecture patterns for scalable APIs and MCP servers.

6|Updated Mar 1, 2026
One-click install
npx skills add https://github.com/ChrstprJohn/SamsonDentalCenter --skill dotnet-backend-patterns-chrstprjohn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-backend-patterns
Source: https://github.com/ChrstprJohn/SamsonDentalCenter/tree/main/.agent/skills/Backend/dotnet-backend-patterns
Command: npx skills add https://github.com/ChrstprJohn/SamsonDentalCenter --skill dotnet-backend-patterns-chrstprjohn

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This collection provides a cohesive set of patterns and best practices to build scalable, maintainable .NET backends (APIs, MCP servers, services) with modern DI, testing, caching, and data access strategies.

Core Features & Use Cases

  • Architecture boundaries and layering: define clear modular structure for scalable backends.
  • Dependency Injection and async patterns: implement DI, async flows, and resilience.
  • Data access and caching patterns: optimize EF Core or Dapper usage, caching with Redis.
  • Use Case: When starting a new .NET backend project, apply these patterns to achieve cleaner architecture and testability.

Quick Start

Set up a new .NET backend project and apply DI, async patterns, caching, and EF Core or Dapper patterns following the implementation playbook.

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 scalable .NET backend with clean architecture boundaries?

Clean architecture in .NET backends is structured by defining clear modular boundaries and layering. This pattern separates domain logic from infrastructure, ensuring scalable APIs and services remain maintainable and testable as the project grows.

What is the best way to configure dependency injection and async flows in .NET?

Dependency injection and async flows in .NET are configured by applying modern DI containers and asynchronous patterns. This approach manages service lifecycles effectively, preventing blocking calls and ensuring resilient, non-blocking backend operations.

How do I optimize data access in .NET using EF Core or Dapper?

Data access in .NET is optimized using EF Core or Dapper by applying specific data access patterns. These patterns reduce query overhead, manage database connections efficiently, and integrate caching with Redis to minimize redundant database calls.

Can I use these .NET backend patterns for building MCP servers and APIs?

These .NET backend patterns apply directly to building scalable APIs and MCP servers. They provide the necessary modular boundaries, dependency injection, and observability criteria required for robust microservice or server implementations.

Do I need Redis to implement caching patterns in my .NET backend?

Redis is the specified caching strategy for .NET backend patterns within this collection. Implementing caching with Redis provides distributed cache capabilities, reducing database load and improving response times for high-traffic backend applications.

When should I apply backend patterns for testing and observability in .NET?

Backend patterns for testing and observability in .NET should be applied when starting a new project or refactoring for maintainability. They establish modular boundaries and dependency injection, enabling isolated unit tests and comprehensive application monitoring.