dotnet-best-practices

Provide .NET backend best practices for architecture, EF Core, CQRS, and async programming.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/KaiBoo404/agent-skills-with-project-template --skill dotnet-best-practices-kaiboo404
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-best-practices
Source: https://github.com/KaiBoo404/agent-skills-with-project-template/tree/main/.agents/skills/dotnet-best-practices
Command: npx skills add https://github.com/KaiBoo404/agent-skills-with-project-template --skill dotnet-best-practices-kaiboo404

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Provides a centralized, expert-curated set of .NET best practices to help teams build robust, scalable software with consistent architectural and coding patterns.

Core Features & Use Cases

  • Architecture guidance for Simple API, Clean Architecture, Vertical Slice, and Modular Monolith to fit team size and domain complexity.
  • Performance, CQRS, API design, and async patterns guidance including EF Core optimization tips and security considerations.
  • Practical checklists, annotated examples, and discovery prompts to accelerate planning and review.

Quick Start

Ask the AI to outline a recommended .NET backend blueprint applying architecture patterns, EF Core optimizations, and CQRS guidelines for your project.

Frequently Asked Questions about dotnet-best-practices

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

FAQPage Schema
What .NET architecture pattern should I choose for my backend project?

.NET backend architecture patterns span Simple API, Clean Architecture, Vertical Slice, and Modular Monolith, selected based on team size and domain complexity. This guide provides structured decision criteria to match your project scale with the correct architectural pattern.

How do I optimize EF Core performance in an enterprise .NET application?

To optimize EF Core performance in enterprise .NET applications, apply structured best practices for query efficiency and context management. This guide provides specific EF Core optimization tips and annotated examples to accelerate your database layer planning and review processes.

What is the best way to implement CQRS in a .NET backend?

Implementing CQRS in a .NET backend requires separating read and write operations using structured patterns. This guide provides CQRS guidelines and practical checklists ensuring proper command and query responsibility segregation across enterprise projects.

Does this .NET best practices guide cover async programming and API design?

This .NET best practices guide covers async programming patterns and API design principles comprehensively. It provides structured guidance on asynchronous operations and endpoint design to ensure backends remain robust and scalable across enterprise projects.

Can I use these .NET best practices for a small team or simple API project?

These .NET best practices apply to small teams and simple API projects effectively. Architecture guidance includes Simple API patterns tailored for smaller scopes, ensuring practices scale down appropriately to fit your team size and domain complexity.

When should I not use Clean Architecture for my .NET application?

You should not use Clean Architecture for your .NET application when domain complexity is low and team size is small, as it introduces unnecessary overhead. This guide provides discovery prompts to help evaluate if simpler patterns like Vertical Slice or Simple API are more appropriate for your context.