dotnet-trace-collect

dotnet-trace-collect is a skill for Claude Code, Codex from Cratis/AI. It costs 43 tokens per session (2,092 once invoked), scanned A, original, MIT.

A guide for collecting diagnostic traces from production .NET applications to investigate performance problems. A trace is recorded runtime activity that can reveal issues such as high CPU, memory leaks, slow requests, or excessive garbage collection.

In plain words
What is it for?
It helps collect performance data from Windows or Linux applications, including containerized and Kubernetes workloads, and understand the trade-offs between available tools.
Why use it?
It helps choose a suitable collection tool for the .NET version, operating system, and deployment environment before gathering data. It does not analyze the collected trace or diagnose the root cause.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps collect performance data from Windows or Linux applications, including containerized and Kubernetes workloads, and understand the trade-offs between available tools.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cratis/ai/dotnet-trace-collect
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Cratis/AI --skill dotnet-trace-collect
Clone the repo
git clone --depth 1 https://github.com/Cratis/AI

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for dotnet-trace-collect

README.md
[![agentmods](https://agentmods.dev/badge/skills/cratis/ai/dotnet-trace-collect/github.svg)](https://agentmods.dev/skills/cratis/ai/dotnet-trace-collect)
Your own site
<a href="https://agentmods.dev/skills/cratis/ai/dotnet-trace-collect"><img src="https://agentmods.dev/badge/skills/cratis/ai/dotnet-trace-collect/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for dotnet-trace-collect

Your own site · 80×15
<a href="https://agentmods.dev/skills/cratis/ai/dotnet-trace-collect"><img src="https://agentmods.dev/badge/skills/cratis/ai/dotnet-trace-collect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 43 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,092 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00043 $0.02092
Opus 5.5 $0.00017 $0.00837
Sonnet 5.5 $0.00009 $0.00418
Haiku 4.5 $0.00004 $0.00209

Measured today against content hash ceeb07309c6c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dotnet-trace-collect scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

2. **PID discovery (required before any `-p <PID>` command)**: Verify the target process first (for example: `dotnet-trace ps`, `curl <monitor-endpoint>/processes`, or `ps` inside a container). If the app is expected to
.cratis/ai/skills/dotnet-trace-collect/SKILL.md · 117 lines

How it starts

The opening of the file, as written. The whole thing — 117 lines — stays where its author put it; the contents beside it link to each section on GitHub.

.NET Trace Collect

Cratis rules in .cratis/ai/rules/ (including csharp.md, specs.csharp.md, and orleans.md) and the cratis-* skills win where they differ.

This skill helps developers diagnose production performance issues by recommending the right diagnostic tools for their environment, guiding data collection, and suggesting analysis approaches. It does not analyze code for anti-patterns or perform the analysis itself.

When to Use

  • A developer needs to investigate a production performance issue (high CPU, memory leak, slow requests, excessive GC, networking errors, etc.)
  • Choosing the right diagnostic tool for a specific runtime, OS, or deployment topology
  • Setting up and running diagnostic tool commands for data collection
  • Understanding trade-offs between available tools (e.g. PerfView vs dotnet-trace)
  • Collecting diagnostics from containerized or Kubernetes workloads

When Not to Use

  • Reviewing source code for performance anti-patterns (use a code review skill instead)
  • Benchmarking during development (e.g. BenchmarkDotNet setup)
  • Analyzing collected trace or dump files (this skill recommends tools for analysis, but does not perform it)

Inputs

Input Required Description
Symptom Yes What the developer is observing (high CPU, memory growth, slow requests, hangs, excessive GC, HTTP 5xx errors, networking timeouts, connection failures, assembly loading failures, etc.)
Runtime Yes .NET Framework or modern .NET (and version, especially whether .NET 10+)
OS Yes Windows or Linux
Deployment Yes Non-container, container, or Kubernetes
Admin privileges Recommended Whether the developer has admin/root access on the target machine
Repro characteristics Recommended Whether the issue is easy to reproduce or requires a long time to manifest

Read the full file on GitHub · 117 lines

Files

What ships with it

8 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed ceeb07309c6c
  2. 1mo ago Changed · -51 tokens per session 98dc9af6cefb
  3. 1mo ago First seen · 117 lines · 94 tokens per session scan A 229292365af2

Subscribe to this mod's changes

dotnet-trace-collect is a skill published in the GitHub repository Cratis/AI (4 stars, last pushed today), licensed MIT. It adds 43 tokens to every session and 2,092 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-23.

Related

dotnet-trace-collect compared with skills from other repositories

dotnet-trace-collect next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dotnet-trace-collectCratis/AISkill4todayMITA43Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill330k2d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill14kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code