What problem does it solve?
This Skill helps you quickly identify common .NET performance anti-patterns that cause excessive allocations, slower execution, and scalability issues, then translates them into prioritized, concrete code fixes.
Core Features & Use Cases
- Performance anti-pattern scanning: Detects ~50 targeted issues across async patterns, memory/string handling, collections & LINQ, regex usage, serialization, and I/O.
- Prioritized, severity-based reporting: Classifies findings as 🔴 Critical, 🟡 Moderate, or ℹ️ Info, with escalation rules for hot paths and high repetition.
- Evidence-driven output: Produces exact hit counts and includes file+line locations plus one-line fixes and any caveats (e.g., version requirements).
Use case examples:
- Auditing an allocation-heavy API endpoint before a release to reduce latency and GC pressure.
- Reviewing hot-path code to eliminate culture-sensitive string operations, inefficient LINQ chains, and problematic regex usage.
- Running a systematic pre-optimization pass to surface risky async/task patterns (e.g., deadlock-prone sync-over-async).
Quick Start
Use the analyzing-dotnet-performance skill to scan your C# repository for performance anti-patterns and return a prioritized list of findings with concrete fixes and exact counts.