dotnet-csharp

Guide C# developers in designing idiomatic .NET code with deterministic standards.

Updated Dec 20, 2023
One-click install
npx skills add https://github.com/Thiago-Cruz-eng/Hibrygame --skill dotnet-csharp-thiago-cruz-eng
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-csharp
Source: https://github.com/Thiago-Cruz-eng/Hibrygame/tree/main/.claude/skills/dotnet-csharp
Command: npx skills add https://github.com/Thiago-Cruz-eng/Hibrygame --skill dotnet-csharp-thiago-cruz-eng

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you produce higher-quality C# and .NET implementations by consolidating best practices for language usage, runtime patterns, API design, and code-quality guardrails so your code is consistent, safe, and easier to maintain.

Core Features & Use Cases

  • C# and .NET pattern guidance: Covers async/await, dependency injection, configuration, nullable reference types, serialization, channels, LINQ optimization, and modern C# syntax (records, pattern matching, primary constructors).
  • Code quality and maintainability: Enforces SOLID, API design rules, editorconfig/analyzer expectations, concurrency primitives, and common code-smell fixes.
  • Scope-driven routing: Uses a routing table in the Skill entry to load the right companion reference topic for your specific request (e.g., async patterns, DI, serialization, input validation).

Quick Start

Load the dotnet-csharp skill for a codebase review and ask: "Check my proposed C# API design for parameter ordering, cancellation token placement, error handling strategy, and wire-compatibility considerations."

Frequently Asked Questions about dotnet-csharp

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

FAQPage Schema
What is the best way to structure async await patterns in .NET to prevent concurrency issues?

The best way to structure async await patterns in .NET involves applying deterministic standards for concurrency primitives and safe input validation to ensure performant, idiomatic code execution. This approach prevents common concurrency issues and runtime deadlocks.

How do I implement dependency injection and configuration in modern C# applications?

Implement dependency injection and configuration in modern C# by following SOLID compliance and scoped best-practice requirements to ensure your application architecture remains consistent, safe, and easier to maintain.

How do I review C# API design for parameter ordering and cancellation token placement?

Review C# API design by checking parameter ordering, cancellation token placement, error handling strategy, and wire-compatibility considerations using consolidated best practices for language usage and API design rules.

How do I fix nullable reference type correctness and editorconfig analyzer expectations in C#?

Fix nullable reference type correctness and editorconfig analyzer expectations by enforcing code-quality guardrails and applying common code-smell fixes during refactoring workflows to achieve deterministic standards.

Does this guidance cover optimizing LINQ queries and using channels in .NET?

Yes, the guidance covers optimizing LINQ queries and using channels in .NET by providing scoped best-practice requirements for modern C# features and .NET runtime behavior to produce higher-quality implementations.

When do I need to use modern C# features like records and pattern matching?

You need to use modern C# features like records, pattern matching, and primary constructors when writing idiomatic, performant .NET code that requires strict SOLID compliance and safe input validation.