csharp-best-practices

Retrieve C# best-practice guidelines for modern features, SOLID, and GoF patterns.

5|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/JeongHeonK/c-sharp-custom-marketplace --skill csharp-best-practices
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: csharp-best-practices
Source: https://github.com/JeongHeonK/c-sharp-custom-marketplace/tree/main/skills/csharp-best-practices
Command: npx skills add https://github.com/JeongHeonK/c-sharp-custom-marketplace --skill csharp-best-practices

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Designed to provide quick, authoritative guidelines for modern C# development, enabling developers to reference best-practices during coding and design decisions without sifting through scattered docs.

Core Features & Use Cases

  • Reference guidance on C# 12/NET 8 features such as Primary Constructors, Collection Expressions, and pattern matching.
  • In-context coaching for applying SOLID principles and GoF patterns during implementation and review.
  • Topic-driven retrieval for topics like records, required/init, and file-scoped namespaces, with concrete examples and trade-offs.

Quick Start

Specify a topic to fetch the corresponding csharp-best-practices guideline.

Frequently Asked Questions about csharp-best-practices

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

FAQPage Schema
What are the best practices for using C# 12 primary constructors and collection expressions?

C# 12 best practices recommend using primary constructors for concise dependency injection and collection expressions for simplified initialization. Guidelines deliver safe, non-executable examples demonstrating trade-offs for modern .NET 8 development.

How do I apply SOLID principles and GoF design patterns during a C# code review?

Apply SOLID principles and GoF design patterns during C# code reviews by retrieving topic-driven guidelines that offer in-context coaching. This references architectural rules to ensure maintainable, high-quality code structure.

When should I use C# records and file-scoped namespaces in modern .NET development?

Use C# records for immutable data contracts and file-scoped namespaces to reduce nesting in modern .NET development. Best-practices guidance delivers concrete examples and trade-offs for implementing required and init properties.

How does pattern matching work in C# for real-world coding scenarios?

Pattern matching in C# works by enabling expressive type checks and data extraction in real-world coding scenarios. Topic-driven retrieval guidelines demonstrate safe, non-executable examples to apply switch expressions and property patterns.

Does the csharp-best-practices reference require specific project dependencies or components to use?

The csharp-best-practices reference does not require specific project dependencies or components to use. It sources content from rules and AGENTS files to deliver authoritative guidelines for code creation and review.