dotnet-csharp

Apply .NET C# best practices for performance, security, and maintainability.

5|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/mtmattei/UnoPlatformSkills --skill dotnet-csharp-mtmattei
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-csharp
Source: https://github.com/mtmattei/UnoPlatformSkills/tree/main/dotnet-csharp
Command: npx skills add https://github.com/mtmattei/UnoPlatformSkills --skill dotnet-csharp-mtmattei

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This guide codifies the most impactful .NET C# best practices to help teams write fast, secure, and maintainable code across projects.

Core Features & Use Cases

  • Performance: promote asynchronous patterns with Task.WhenAll, avoid synchronous bottlenecks, and optimize EF Core data access.
  • Security & Reliability: prevent secrets leakage, enforce proper configuration, and robust error handling.
  • Maintainability & API Quality: encourage proper API design, typed configuration, and clean disposal patterns; supports refactoring and long-term maintenance.

Quick Start

Apply the documented patterns to your current .NET/C# projects to immediately improve performance, security, and maintainability.

Frequently Asked Questions about dotnet-csharp

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

FAQPage Schema
What are the best practices for asynchronous programming in C# .NET?

C# .NET best practices for asynchronous programming promote using Task.WhenAll to run tasks concurrently, avoiding synchronous bottlenecks, and optimizing EF Core data access to enhance performance.

How do I prevent secrets leakage in .NET C# applications?

To prevent secrets leakage in .NET C# applications, apply best practices that avoid hard-coded secrets, enforce proper typed configuration, and implement robust error handling for enhanced security.

How do I improve .NET API design and maintainability?

Improve .NET API design and maintainability by applying best practices that enforce proper API status codes, encourage clean disposal patterns, and utilize typed configuration for long-term system architecture support.

Can I use these C# best practices for refactoring existing code?

Yes, you can use these C# best practices for refactoring existing code by reviewing it for performance issues, correcting improper async patterns, and fixing disposal patterns to improve maintainability.

What is the best way to handle parallelism and disposal in C#?

The best way to handle parallelism and disposal in C# involves applying proper async patterns for parallelism and enforcing clean disposal patterns to ensure safe, fast, and maintainable code execution.