pvanalyze

pvanalyze is a skill for Claude Code, Codex from Cratis/AI. It costs 45 tokens per session (989 once invoked), scanned A, original, MIT.

A command-line tool for analysing existing .nettrace files, which are saved performance recordings from .NET programs. It examines garbage collection, just-in-time compilation, CPU stacks, memory allocations, exceptions, and call trees without collecting a new trace.

In plain words
What is it for?
It is for offline analysis of .NET performance traces and for finding where CPU time, allocations, exceptions, or garbage collection are occurring.
Why use it?
It helps investigate a recorded performance problem without attaching to a running program or setting up a profiler. It keeps trace collection and memory-dump work separate.

Skill for Claude CodeCodex

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

Good fit It is for offline analysis of .NET performance traces and for finding where CPU time, allocations, exceptions, or garbage collection are occurring.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/cratis/ai/pvanalyze
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 pvanalyze
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 pvanalyze

README.md
[![agentmods](https://agentmods.dev/badge/skills/cratis/ai/pvanalyze/github.svg)](https://agentmods.dev/skills/cratis/ai/pvanalyze)
Your own site
<a href="https://agentmods.dev/skills/cratis/ai/pvanalyze"><img src="https://agentmods.dev/badge/skills/cratis/ai/pvanalyze/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 pvanalyze

Your own site · 80×15
<a href="https://agentmods.dev/skills/cratis/ai/pvanalyze"><img src="https://agentmods.dev/badge/skills/cratis/ai/pvanalyze.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 989 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00045 $0.00989
Opus 5.5 $0.00018 $0.00396
Sonnet 5.5 $0.00009 $0.00198
Haiku 4.5 $0.00005 $0.00099

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

Security

Grade A, and why

pvanalyze scanned grade A with 0 findings 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 6d ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cratis/ai/skills/pvanalyze/SKILL.md · 55 lines

How it starts

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

pvanalyze

Cratis rules in .cratis/ai/rules/ and the cratis-* skills win where they differ. pvanalyze reads .nettrace files that already exist. Collecting a trace, attaching to a process, installing a profiler and capturing dumps belong to the profiling, dotnet-trace-collect and dump-collect skills, with explicit approval; never make them the default first step of an analysis.

Install

Read references/install.md before the first run. It explains the preflight (dotnet --list-runtimes must show Microsoft.NETCore.App 10.x), the approved nuget.org-only restore into an owned directory and the stop conditions. Copy these two assets into that directory's .config/ as install.md describes:

Run commands as dotnet tool run pvanalyze -- <arguments> from that directory. Do not install globally, use floating dnx, build from source or overwrite an existing manifest.

Workflow

  1. Confirm the trace path and whether it was collected with the events the question needs.
  2. Copy the trace into an owned directory. Parsing writes a sibling .pvanalyze.etlx cache, so never analyze a trace in a directory you do not own.
  3. Run pvanalyze info <trace> first to verify the file opens and contains the expected processes. Use events --list to see what was collected.
  4. Pick one focused command and bound its output:
    • gcstats for GC count, heap size and pause questions
    • alloc for allocation by type
    • datas for Dynamic Adaptation To Application Sizes heap-count tuning
    • jitstats for JIT compilation cost
    • cpustacks for top CPU methods, module or namespace grouping and SpeedScope export
    • calltree for hot paths and caller/callee exploration
    • events and exceptions for provider, event type, payload, PID, TID or thrown-exception filtering
    • timeline and snapshot for time-bucketed or point-in-time context
  5. Prefer --format json when another tool consumes the output, and add --from/--to only after a baseline run shows the interesting window.
  6. Report the command, process, window and filters used, plus generated files such as a .speedscope.json.

Read the full file on GitHub · 55 lines

Files

What ships with it

7 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. 6d ago First seen · 55 lines · 45 tokens per session scan A e570e2392457

Subscribe to this mod's changes

pvanalyze is a skill published in the GitHub repository Cratis/AI (4 stars, last pushed today), licensed MIT. It adds 45 tokens to every session and 989 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-23.

Related

pvanalyze compared with skills from other repositories

pvanalyze next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pvanalyzeCratis/AISkill4todayMITA45Claude Code, Codex
cs0618-hunterjoslat/maf-doctorSkill1414d agoMITA85Claude Code, Codex
nuget-diff-analyzerjoslat/maf-doctorSkill1414d agoMITA56Claude Code, Codex
dotnet-performancewieslawsoltes/Performance-SkillSkill374mo agoMITA42Claude Code, Codex
dotnet-aot-compatmanagedcode/dotnet-skillsSkill52716d agoMITA112Claude Code, Codex
msbuildmanagedcode/dotnet-skillsSkill52716d agoMITA219Claude Code, Codex
build-perf-diagnosticsmanagedcode/dotnet-skillsSkill52716d agoMITA135Claude Code, Codex