csharp-dotnet-review

Review .NET and C# code for architecture, security, performance, and best practices.

7|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/camilooscargbaptista/cto-toolkit --skill csharp-dotnet-review
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: csharp-dotnet-review
Source: https://github.com/camilooscargbaptista/cto-toolkit/tree/main/csharp-dotnet-review
Command: npx skills add https://github.com/camilooscargbaptista/cto-toolkit --skill csharp-dotnet-review

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Many .NET/C# projects accumulate architecture anti-patterns, EF Core inefficiencies, security misconfigurations, and performance regressions that are time-consuming to detect manually. This Skill centralizes a checklist-driven review to quickly surface critical issues across ASP.NET Core, EF Core, Minimal APIs, and related project files so teams can prioritize fixes and reduce production risk.

Core Features & Use Cases

  • Architecture & Patterns: Evaluates separation of concerns, dependency injection usage, CQRS/MediatR patterns, repository abstractions, and configuration best practices.
  • EF Core & Data Access: Detects N+1 queries, missing AsNoTracking, index suggestions, migration hygiene, and connection pooling issues.
  • Security & Compliance: Flags missing authorization, insecure secrets handling, CORS misconfiguration, and SQL injection risks from concatenated queries.
  • Performance & Operations: Recommends caching, appropriate JSON serializer settings, pagination, background task design, and high-throughput API patterns.
  • Output & Integration: Produces a Health Score, a prioritized list of Critical Issues, actionable Improvements with examples, and Architecture Notes suitable for PR comments or design docs.

Quick Start

Run a review of the repository's C# source files and csproj metadata to generate a Health Score, list critical issues, and receive recommended fixes.

Frequently Asked Questions about csharp-dotnet-review

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

FAQPage Schema
How do I review C# code for EF Core performance issues like N+1 queries?

You can evaluate ASP.NET Core architecture by reviewing source files for separation of concerns, dependency injection usage, CQRS/MediatR patterns, and repository abstractions, outputting Architecture Notes for design documentation.

What is the best way to check .NET code quality during a pull request?

The best way to check .NET code quality during a pull request is to run a checklist-driven review on source files and csproj metadata to generate a Health Score, critical issues list, and recommended fixes suitable for PR comments.

Does this code review approach work with Blazor and Minimal APIs?

Yes, this code review approach works with Blazor and Minimal APIs by analyzing the specific source files and csproj metadata to detect architecture anti-patterns, security misconfigurations, and performance regressions across those project types.

How do I find insecure configuration and missing authorization in ASP.NET Core?

To find insecure configuration and missing authorization in ASP.NET Core, scan the codebase to flag missing authorization attributes, improper secrets handling, and CORS misconfigurations, providing remediation examples to reduce production risk.

What do I need to run an automated .NET architecture assessment?

To run an automated .NET architecture assessment, you need access to the repository's C# source files and csproj metadata to evaluate dependency injection, configuration best practices, and separation of concerns for a comprehensive health evaluation.