code-review-csharp
Installation
SKILL.md
Review C# Code for Best Practices
Perform a structured code review of C# source code. Identify issues related to naming conventions, performance, security, readability, and .NET best practices. Produce a prioritized report with actionable suggestions.
Gather Context
Before reviewing, determine:
- Code to review — the C# file, class, or snippet. If the user points to a file, read it. If they paste code, use it directly.
- Review focus — what to prioritize:
all(default) — full review across all categoriesnaming— naming conventions onlyperformance— performance and memory onlysecurity— security vulnerabilities onlyreadability— clarity, structure, and maintainability only
- Target framework — the .NET version. Default to .NET 8 if not specified. Auto-detect from
<TargetFramework>in.csprojif accessible. - Severity threshold —
all(default),warnings-and-above, orcritical-only.
If context is missing: Default to all focus, .NET 8, and all severities. Don't block the review to ask — just state your assumptions at the top of the report. Only ask if you genuinely have no code to review.