dotnet-backend-patterns

Master C#/.NET patterns for building production-grade APIs, MCP servers, and enterprise backends with modern best practices (2024/2025).

31,392 stars
Complexity: easy

About this skill

This skill provides comprehensive guidance on C#/.NET patterns and modern best practices (2024/2025) essential for building robust, scalable, and maintainable production-grade backend applications. It covers architectural design, performance optimization, testing strategies, and enterprise-level development for APIs, MCP servers, and other complex systems, ensuring solutions are aligned with the latest industry standards.

Best use case

To design, develop, review, and optimize C#/.NET backend applications, including Web APIs, MCP servers, and enterprise systems, adhering to modern best practices and architectural patterns.

Master C#/.NET patterns for building production-grade APIs, MCP servers, and enterprise backends with modern best practices (2024/2025).

High-quality, well-structured, performant, secure, and maintainable C#/.NET backend code. The agent will provide expert architectural guidance, suggest optimal patterns, assist in debugging, or generate code snippets that align with modern best practices, leading to more robust and scalable solutions.

Practical example

Example input

Design a robust ASP.NET Core Web API structure for an e-commerce platform. The API needs to handle product catalog, order processing, and user authentication. Include best practices for dependency injection, error handling, caching with Redis, and database interaction using Entity Framework Core. Provide code examples for a product service and controller.

Example output

The agent would generate a detailed architectural outline for the e-commerce API, proposing a clean architecture or layered approach. It would provide C# code snippets for setting up dependency injection in `Program.cs`, a global exception handling middleware, an interface and implementation for `IProductService`, a `ProductsController`, and an EF Core `DbContext` with example entities and migrations. It would also suggest specific Redis caching strategies for product data and explain how to write unit and integration tests for the service layer, all while adhering to the specified modern best practices.

When to use this skill

  • Developing new C#/.NET Web APIs or MCP servers from scratch.
  • Reviewing existing C# codebases for quality, security, performance, and adherence to modern patterns.
  • Designing service architectures that incorporate dependency injection, modularity, and scalability principles.
  • Implementing efficient data caching strategies using technologies like Redis.

When not to use this skill

  • Developing frontend user interfaces or client-side applications (e.g., React, Angular, Vue.js).
  • Working with non-C# or non-.NET programming languages and frameworks (e.g., Java, Python, Node.js).
  • Performing basic scripting tasks that do not require complex architectural patterns or enterprise considerations.
  • Troubleshooting network infrastructure, hardware issues, or operating system-level problems.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/dotnet-backend-patterns/SKILL.md --create-dirs "https://raw.githubusercontent.com/sickn33/antigravity-awesome-skills/main/plugins/antigravity-awesome-skills-claude/skills/dotnet-backend-patterns/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/dotnet-backend-patterns/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How dotnet-backend-patterns Compares

Feature / Agentdotnet-backend-patternsStandard Approach
Platform SupportClaudeLimited / Varies
Context Awareness High Baseline
Installation ComplexityeasyN/A

Frequently Asked Questions

What does this skill do?

Master C#/.NET patterns for building production-grade APIs, MCP servers, and enterprise backends with modern best practices (2024/2025).

Which AI agents support this skill?

This skill is designed for Claude.

How difficult is it to install?

The installation complexity is rated as easy. You can find the installation instructions above.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# .NET Backend Development Patterns

Master C#/.NET patterns for building production-grade APIs, MCP servers, and enterprise backends with modern best practices (2024/2025).

## Use this skill when

- Developing new .NET Web APIs or MCP servers
- Reviewing C# code for quality and performance
- Designing service architectures with dependency injection
- Implementing caching strategies with Redis
- Writing unit and integration tests
- Optimizing database access with EF Core or Dapper
- Configuring applications with IOptions pattern
- Handling errors and implementing resilience patterns

## Do not use this skill when

- The project is not using .NET or C#
- You only need frontend or client guidance
- The task is unrelated to backend architecture

## Instructions

- Define architecture boundaries, modules, and layering.
- Apply DI, async patterns, and resilience strategies.
- Validate data access performance and caching.
- Add tests and observability for critical flows.
- If detailed patterns are required, open `resources/implementation-playbook.md`.

## Resources

- `resources/implementation-playbook.md` for detailed .NET patterns and examples.

Related Skills

memory-safety-patterns

31392
from sickn33/antigravity-awesome-skills

Cross-language patterns for memory-safe programming including RAII, ownership, smart pointers, and resource management.

Software DevelopmentClaude

dotnet-architect

31392
from sickn33/antigravity-awesome-skills

Expert .NET backend architect specializing in C#, ASP.NET Core, Entity Framework, Dapper, and enterprise application patterns.

Software DevelopmentClaude

ddd-tactical-patterns

31392
from sickn33/antigravity-awesome-skills

Apply DDD tactical patterns in code using entities, value objects, aggregates, repositories, and domain events with explicit invariants.

Software DevelopmentClaude

cc-skill-backend-patterns

31392
from sickn33/antigravity-awesome-skills

Backend architecture patterns, API design, database optimization, and server-side best practices for Node.js, Express, and Next.js API routes.

Software DevelopmentClaude

backend-development-feature-development

31392
from sickn33/antigravity-awesome-skills

Orchestrate end-to-end backend feature development from requirements to deployment. Use when coordinating multi-phase feature delivery across teams and services.

Software DevelopmentClaude

backend-dev-guidelines

31392
from sickn33/antigravity-awesome-skills

You are a senior backend engineer operating production-grade services under strict architectural and reliability constraints. Use when routes, controllers, services, repositories, express middleware, or prisma database access.

Software DevelopmentClaude

nerdzao-elite

31392
from sickn33/antigravity-awesome-skills

Senior Elite Software Engineer (15+) and Senior Product Designer. Full workflow with planning, architecture, TDD, clean code, and pixel-perfect UX validation.

Software DevelopmentClaude

nerdzao-elite-gemini-high

31392
from sickn33/antigravity-awesome-skills

Modo Elite Coder + UX Pixel-Perfect otimizado especificamente para Gemini 3.1 Pro High. Workflow completo com foco em qualidade máxima e eficiência de tokens.

Software DevelopmentClaudeGemini

multi-platform-apps-multi-platform

31392
from sickn33/antigravity-awesome-skills

Build and deploy the same feature consistently across web, mobile, and desktop platforms using API-first architecture and parallel implementation strategies.

Software DevelopmentClaude

monorepo-architect

31392
from sickn33/antigravity-awesome-skills

Expert in monorepo architecture, build systems, and dependency management at scale. Masters Nx, Turborepo, Bazel, and Lerna for efficient multi-project development. Use PROACTIVELY for monorepo setup,

Software DevelopmentClaude

minecraft-bukkit-pro

31392
from sickn33/antigravity-awesome-skills

Master Minecraft server plugin development with Bukkit, Spigot, and Paper APIs.

Software DevelopmentClaude

macos-spm-app-packaging

31392
from sickn33/antigravity-awesome-skills

Scaffold, build, sign, and package SwiftPM macOS apps without Xcode projects.

Software DevelopmentClaude