🎯

dotnet-best-practices

🎯Skill

from github/awesome-copilot

VibeIndex|
What it does
|

Ensures .NET/C# code follows best practices for XML documentation, naming conventions, SOLID principles, async/await patterns, and security hardening.

Overview

A .NET/C# best practices enforcement skill for GitHub Copilot that ensures code in a solution or project meets established quality standards. It covers comprehensive XML documentation, design patterns, dependency injection, async/await patterns, testing standards, error handling, and integration with Microsoft Semantic Kernel for AI operations — all aligned with modern C# 12+ and .NET 8 conventions.

Key Features

  • Documentation and architecture standards: Enforces comprehensive XML documentation for all public APIs, established namespace structures, and SOLID principles compliance with meaningful domain-driven naming.
  • Modern C# patterns: Uses primary constructor syntax for dependency injection, implements the Command Handler pattern with generics, follows interface segregation with 'I' prefix naming, and applies Factory patterns for complex object creation.
  • Dependency injection and configuration: Requires constructor injection with ArgumentNullException null checks, appropriate service lifetimes (Singleton, Scoped, Transient), strongly-typed configuration with data annotations, and IConfiguration binding.
  • Testing and quality assurance: Mandates MSTest with FluentAssertions, AAA pattern (Arrange, Act, Assert), Moq for mocking, null parameter validation tests, and coverage of both success and failure scenarios.
  • AI integration via Semantic Kernel: Includes guidance for Microsoft.SemanticKernel configuration, kernel service registration, AI model settings (ChatCompletion, Embedding), and structured output patterns for reliable AI responses.

Who is this for?

This skill is built for .NET developers and teams who want Copilot to generate code that consistently adheres to enterprise-grade C# standards. It is especially valuable for teams working with Microsoft's Semantic Kernel, maintaining large .NET solutions with strict code quality requirements, or onboarding developers to a project's established patterns and conventions.

📦

Same repository

github/awesome-copilot(315 items)

dotnet-best-practices

Installation

Vibe Index InstallInstalls to .claude/skills/ - auto-recognized by Claude Code
npx vibeindex add github/awesome-copilot --skill dotnet-best-practices
skills.sh Install⚠ Installs to .agents/skills/ - may not be auto-recognized by Claude Code
npx skills add github/awesome-copilot --skill dotnet-best-practices
Manual InstallCopy SKILL.md content and save to the path below
~/.claude/skills/dotnet-best-practices/SKILL.md

SKILL.md

10,693Installs
27,820
-
Last UpdatedMar 31, 2026

More from this repository10

🎯
git-commit🎯Skill

A community-curated collection of custom agents, prompts, instructions, and skills to enhance GitHub Copilot across different domains, languages, and use cases.

🎯
gh-cli🎯Skill

A community-curated collection of custom agents, prompts, instructions, and skills to enhance GitHub Copilot across different domains, languages, and use cases.

🎯
prd🎯Skill

Generates comprehensive Product Requirements Documents (PRDs) by systematically analyzing requirements and crafting detailed technical specifications

🎯
documentation-writer🎯Skill

Expert technical writer guided by the Diataxis framework, creating tutorials, how-to guides, reference docs, and explanation pages for software documentation.

🎯
excalidraw-diagram-generator🎯Skill

Generates Excalidraw diagrams from natural language descriptions, creating visual representations of processes, systems, relationships, and ideas.

🎯
refactor🎯Skill

A community-curated collection of custom agents, prompts, instructions, and skills to enhance GitHub Copilot across different domains, languages, and use cases.

🎯
java-springboot🎯Skill

Provides Spring Boot best practices covering project setup, dependency injection, REST API design, data access with JPA, security configuration, and testing strategies.

🎯
multi-stage-dockerfile🎯Skill

Creates optimized multi-stage Dockerfiles for any language or framework, separating builder and runtime stages to produce smaller, more secure container images.

🎯
create-readme🎯Skill

Creates README.md files for projects.

🎯
memory-merger🎯Skill

Merges mature lessons from domain memory files into instruction files, consolidating knowledge with minimal redundancy across global, user, and workspace scopes.