dotnet-csharp

Applies C# and .NET language, runtime, and analyzer guidance to code review and implementation.

46|7|Updated Apr 9, 2026
One-click install
npx skills add https://github.com/sunyonghuan/Netor.Madorin --skill dotnet-csharp-sunyonghuan
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: dotnet-csharp
Source: https://github.com/sunyonghuan/Netor.Madorin/tree/main/.github/skills/dotnet-csharp
Command: npx skills add https://github.com/sunyonghuan/Netor.Madorin --skill dotnet-csharp-sunyonghuan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you write, review, and modernize C# and .NET code with consistent language patterns, runtime best practices, and analyzer-aware guidance.

Core Features & Use Cases

  • Baseline C# Guidance: Covers naming, file organization, async/await, LINQ, dependency injection, serialization, concurrency, globalization, native interop, and nullable reference types.
  • Version-Aware Advice: Matches recommendations to the project’s target framework and C# version, including modern features from .NET 8 through .NET 11 preview.
  • Use Cases: Refactor services, fix async or nullability bugs, review public APIs, improve performance, and produce production-ready, AOT-friendly .NET implementations.

Quick Start

Ask for a C# implementation or review and include the target framework, then apply the skill’s guidance to generate the safest and most idiomatic .NET result.

Frequently Asked Questions about dotnet-csharp

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

FAQPage Schema
How do I fix async-await and dependency injection bugs in C#?▼

To fix async-await and dependency injection bugs in C#, apply analyzer-aware guidance that verifies async correctness, DI lifetimes, and nullability to ensure production-ready and idiomatic .NET implementations.

What is the best way to make .NET serialization AOT-friendly?▼

Making .NET serialization AOT-friendly involves applying version-aware runtime guidance to refactor domain models and APIs, ensuring collection choices and serialization patterns satisfy Ahead-of-Time compilation safety requirements.

Does this C# guidance cover modern .NET 8 through .NET 11 preview features?▼

Yes, this C# guidance covers modern .NET 8 through .NET 11 preview features by matching recommendations to the project's target framework and C# version for version-aware code modernization.

How do I review public APIs for nullable reference types and performance in .NET?▼

Review public APIs for nullable reference types and performance in .NET by applying authoritative language and runtime guidance that enforces nullability, LINQ choices, and globalization standards.

Can I use this guidance for native interop and background workers in .NET?▼

Yes, you can use this guidance for native interop and background workers in .NET, as it applies analyzer-aware patterns across service code, background workers, and native interop scenarios.