From dotnet-skills
Triage .NET heap allocations using dotnet-inspect for static analysis, then confirm with BenchmarkDotNet or dotnet-trace before fixing. Use on hot-path allocation hot spots.
How this skill is triggered — by the user, by Claude, or both
Slash command
/dotnet-skills:dotnet-allocation-triageThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Find allocation hot spots statically, confirm they matter dynamically, fix, then verify — pairing `dotnet-inspect` (static, IL-precise) with a benchmark or profiler (dynamic, ground truth). This skill is the *workflow*; for tool capabilities, output modes, shapes, and flags, defer to the version-matched guide:
Find allocation hot spots statically, confirm they matter dynamically, fix, then verify — pairing dotnet-inspect (static, IL-precise) with a benchmark or profiler (dynamic, ground truth). This skill is the workflow; for tool capabilities, output modes, shapes, and flags, defer to the version-matched guide:
dnx dotnet-inspect -y -- skill
dotnet-inspect's Performance Triage over the assembly to get a ranked list of pay-dirt allocation sites (member, shape, fix, confidence, in-loop). The cheapest first pass — works on a binary and its dependencies, no profiler needed. See the embedded guide for the exact command and filters.[MemoryDiagnoser]; record allocated bytes before/after.dotnet-trace collect --profile gc-verbose, or watch System.Runtime GC counters with dotnet-counters monitor, and confirm the member shows up and shrinks.Findings are heuristics over IL: candidates with evidence, not proof. Always confirm impact with a benchmark or profiler and human review before changing production code.
npx claudepluginhub richlander/dotnet-skills --plugin dotnet-skillsDiagnosing .NET performance issues. dotnet-counters, dotnet-trace, dotnet-dump, flame graphs.
Profiles .NET applications for CPU, memory, lock contention, exceptions, heap analysis, and JIT inlining. Use for performance bottlenecks, memory leaks, high CPU, or slow code.
Ranks .NET library members by call-graph leverage and triages against actionable rewrite shapes (allocations, delegates, loops) to surface hot, fixable code first.