csharp-dotnet-review
Skill9 starsChanged 8 months agoMITView on GitHub
Review .NET/C# code: ASP.NET Core, EF Core, Minimal APIs, Azure patterns and performance
In this repository53 other files it gives its agents.
- adrSkill
- ai-ml-engineeringSkill
- api-documentationSkill
- api-gateway-patternsSkill
- architecture-review-boardSkill
- backend-reviewSkill
- chaos-engineeringSkill
- code-reviewSkill
- compliance-reviewSkill
- cost-optimizationSkill
- database-reviewSkill
- data-engineeringSkill
- design-patternsSkill
- developer-experienceSkill
- devops-infraSkill
- domain-modelingSkill
- elixir-reviewSkill
- engineering-budgetSkill
- engineering-metricsSkill
- event-driven-architectureSkill
- feature-flagsSkill
- flutter-reviewSkill
- frontend-reviewSkill
- full-reviewSkill
- git-flowSkill
- go-reviewSkill
- graphql-reviewSkill
- health-checkSkill
- incident-postmortemSkill
- kubernetes-reviewSkill
- migration-strategySkill
- multi-tenancySkill
- observabilitySkill
- on-call-designSkill
- one-on-oneSkill
- pentestSkill
- performance-profilingSkill
- pr-descriptionSkill
- python-reviewSkill
- quality-standardSkill
- rust-reviewSkill
- security-reviewSkill
- sprint-planningSkill
- swift-reviewSkill
- systematic-debuggingSkill
- team-scalingSkill
- tech-debt-prioritizationSkill
- technical-interviewSkill
- tech-specSkill
- terraform-iacSkill
- testing-strategySkill
- ux-reviewSkill
- vendor-evaluationSkill
The file
Files
C# / .NET Code Review
When to Use
- Reviewing C#/.NET code (ASP.NET Core, EF Core, Minimal APIs)
- Evaluating .NET architecture patterns (Clean Architecture, CQRS, MediatR)
- Azure service integration review
Review Checklist
Architecture & Patterns
- Clean Architecture: Domain independent of infrastructure
- Dependency Injection used throughout (no
new Service()) - CQRS separation when appropriate (Commands vs Queries)
- MediatR or similar for decoupled handlers
- Repository pattern for data access abstraction
- Options pattern for configuration (
IOptions<T>)
C# Best Practices
async/awaitused correctly (no.Resultor.Wait())CancellationTokenpropagated through async chainsIDisposableimplemented for unmanaged resourcesnullhandled with nullable reference types (?,??,?.)- Records used for immutable DTOs
sealedclasses where inheritance not neededreadonlyfor immutable fields- Pattern matching instead of type casting
EF Core
- No N+1 queries (use
.Include()or.AsSplitQuery()) AsNoTracking()for read-only queries- Indexes defined on frequently queried columns
- Migrations tested and reversible
- Connection pooling configured
- Query filters for soft delete / multi-tenancy
Security
[Authorize]on all protected endpoints- Input validation with data annotations or FluentValidation
- Anti-forgery tokens for forms
- CORS configured restrictively
- User secrets / Azure Key Vault for credentials
- No SQL string concatenation (parameterized queries)
Performance
- Response caching where appropriate
IMemoryCacheorIDistributedCachefor hot data- Minimal API for high-throughput endpoints
System.Text.Jsonconfigured (not Newtonsoft unless needed)- Pagination on list endpoints
- Background tasks via
IHostedService/ Hangfire
Output Format
## .NET Review: [Component]
**Health Score**: X/10
### Critical Issues
- [Issue with fix]
### Improvements
- [Suggestion with example]
### Architecture Notes
- [Pattern observations]Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

