
.NET Best Practices Reviewer
Checks and shapes C#/.NET code against common best practices for DI, async, testing and logging.
- Repository
- github/awesome-copilot
- Stars
- 40,703
- Licence
- MIT
- Files
- 1 file
What it does
When installed, the agent reviews or writes .NET and C# code with a checklist of conventions in mind: XML documentation comments, dependency injection with constructor null checks, async/await for I/O, MSTest with FluentAssertions and Moq for tests, structured logging, localized resource strings, and SOLID-style design. It applies these to the code you select or point it at, so output follows typical .NET project conventions instead of generic C#.
Great for
- C# developers working on .NET 8 projects who want consistent code style
- Teams that already use MSTest, FluentAssertions, Moq and Microsoft.Extensions.* libraries
- Developers adding tests or documentation to existing .NET code
Skip it if
- Projects using different frameworks (e.g. xUnit, NUnit, NSubstitute) or older .NET versions, since the rules assume MSTest, Moq and C# 12/.NET 8; the agent may push the wrong conventions
- Teams that want strict, verified compliance; the skill is a set of guidelines, not an analyzer, so it can miss issues or suggest changes that do not fit the codebase
Try asking
- “Review the selected C# class and suggest changes to match .NET best practices”
- “Add XML documentation comments to all public methods in this service”
- “Write MSTest unit tests with FluentAssertions and Moq for this handler, including null checks”
- “Refactor this class to use constructor dependency injection and async/await for I/O”
Install in 3 steps
- 1
Download the skill
The ZIP contains the 1 original files, the MIT licence and an attribution note.
dotnet-best-practices.zip - 2
Add it to your agent
Claude Code (all projects)
mkdir -p ~/.claude/skills && unzip dotnet-best-practices.zip -d ~/.claude/skills/Claude Code / Agent SDK (this project only)
mkdir -p .claude/skills && unzip dotnet-best-practices.zip -d .claude/skills/Claude apps (web/desktop): Settings → Capabilities → Skills → Upload skill, and choose the ZIP.
- 3
Ask for the task
No special command needed — the agent reads the skill's description and loads it when your request matches. Try one of the prompts above.
Get better results
- Select the specific code or file you want reviewed so the ${selection} placeholder has useful input
- Tell the agent which test framework and DI setup your project actually uses, since the skill defaults to MSTest and Moq
- Treat suggestions as a starting point and run your build and tests before accepting changes
What's inside
- SKILL.md
Redistributed unmodified from github/awesome-copilot under the MIT licence. The assessment was drafted with AI from the skill's files on 2026-10-29. Skills can instruct your agent to run code — read SKILL.md and any scripts before installing.