Use the free official .NET diagnostics CLI tools for profiling and runtime investigation in .NET repositories. USE FOR: the repo needs performance or runtime profiling for a .NET application; the user asks about slow code, high CPU, GC pressure, allocation growth, exception storms, lock. DO NOT USE FOR: replacing realistic performance tests or load tests with ad-hoc tracing alone; production heap collection when the pause risk has not been. INVOKES: inspect the repository context, edit targeted
SkillScore86Maintained
Automatic
◆Coding pack
Last verified 8/19/2026
What it changes
Passed 16 of 18 test cases with the skill, and 11 of 18 without it.
Without skill59%
With skill86%
Checks it passed that the model alone missed
returns status set to improved
returns status set to configured
specifies the profile dotnet-common
and 5 more in the full report
7 fixed12 passed either way2 still failing1 broke
Pass-rate lift
+27 pp
Tokens
+44%
Agent turns
0%
Response time
-28%
Model gemini-3.6-flashMeasured 8/19/2026v119 of 22 cases passed with skill · 18 comparable
Tokens, turns and time describe resource use, not a dollar price.
See it in action
One of 6 test cases the skill fixed. Same model, same prompt, with and without the skill.
1 of 6
Prompt
What exact CLI command and profile arguments should be recorded in AGENTS.md for capturing CPU runtime hotspots and thread sampling on PID 1234 into trace.nettrace?
What was checked, without and with the skill
Checked
Without skill
With skill
uses dotnet-trace collect with process ID parameter
Passed
Passed
specifies the profile dotnet-common
Missed
Passed
case-16 · gemini-3.6-flash · 8/19/2026 · answers are capped and redacted
What's inside
The instructions your model reads when the skill loads.
SKILL.md128 lines4 files
.NET Profiling
Trigger On
the repo needs performance or runtime profiling for a .NET application
the user asks about slow code, high CPU, GC pressure, allocation growth, exception storms, lock contention, or startup diagnostics
the team wants official CLI-based diagnostics without depending on dnx
Value
produce a concrete project delta: code, docs, config, tests, CI, or review artifact
reduce ambiguity through explicit planning, verification, and final validation skills
leave reusable project context so future tasks are faster and safer
Do Not Use For
replacing realistic performance tests or load tests with ad-hoc tracing alone
production heap collection when the pause risk has not been accepted
GUI-only workflows that the repo cannot automate or document
Inputs
the nearest AGENTS.md
target application, process, or startup path
the symptom being investigated: CPU, memory, GC, contention, exceptions, or startup
Quick Start
Read the nearest AGENTS.md and confirm scope and constraints.
Run this skill's Workflow through the Ralph Loop until outcomes are acceptable.
Return the Required Result Format with concrete artifacts and verification evidence.
Workflow
Build and run a realistic target first:
prefer Release
prefer realistic config, inputs, and data volume
Start with the lightest useful tool:
dotnet-counters for live health signals
dotnet-trace for CPU, exception, contention, GC, and startup traces
Set up or refine open-source .NET code-quality gates for CI: formatting, `.editorconfig`, SDK analyzers, third-party analyzers, coverage, mutation testing, architecture tests, and security scanning. USE FOR: .NET quality gates in CI; analyzer, coverage, mutation, and architecture-test choices; standardizing `.editorconfig`, `dotnet format`, and warning policy. DO NOT USE FOR: non-.NET repositories; generic CI/CD guidance with no .NET quality stack decisions. INVOKES: inspect the repository conte