What problem does it solve? Investigating slow UI, high memory usage, hangs, and CLR startup errors in .NET desktop apps is time-consuming without a structured diagnostic workflow. This Skill guides you through static performance analysis, trace and dump collection, microbenchmarking, and CLR activation debugging. ## Core Features & Use Cases - Static Performance Scan: Detect roughly 50 categories of C# performance anti-patterns (async/await, memory, strings, LINQ, regex, collections, I/O) without running the app. - Trace and Dump Collection: Capture CPU traces and memory dumps from running processes, with .NET Framework alternatives like PerfView, ProcDump, and WinDbg/SOS. - Microbenchmarking: Write BenchmarkDotNet benchmarks to measure algorithms precisely before optimizing. - Use Case: A WinForms screen freezes intermittently. Run the static anti-pattern scan on the suspect code, then capture a memory dump during the hang and analyze it with WinDbg/SOS to find the blocking call. ## Quick Start Ask the AI to scan your C# code for performance anti-patterns and recommend whether to collect a trace, a dump, or a benchmark next.