ncu-rep-analyzer

A profiler and report analyzer for CUDA kernels. NCU is NVIDIA's tool for measuring GPU-kernel performance, and an .ncu-rep file stores one of its profiling reports.

In plain words
What is it for?
Use it to profile a .cu file, inspect an .ncu-rep report, diagnose slow parts of a CUDA kernel, and produce optimization recommendations.
Why use it?
It turns profiling data into an explanation of performance bottlenecks and suggested improvements. When given source code, it can run the profiler before analyzing the results.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/forceinjection/cuda-code-skill/ncu-rep-analyzer
Any agent
npx skills add ForceInjection/cuda-code-skill --skill ncu-rep-analyzer
Clone the repo
git clone --depth 1 https://github.com/ForceInjection/cuda-code-skill

Made for: Claude Code, Codex.

Per session 149 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,605 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
Origin fork From a forked repository.
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 $0.00149 $0.02605
Opus 5 $0.00075 $0.01303
Sonnet 5 $0.00030 $0.00521
Haiku 4.5 $0.00015 $0.00261

Measured 2d ago against content hash d02193f7f89d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

ncu-rep-analyzer scanned grade B 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 2d 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.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

| `ERR_NVGPUCTRPERM` | Container/profiling permission denied | Use `--set launch` instead of `--set full`, OR on the host: `echo 0 \| sudo tee /proc/sys/kernel/perf_event_paranoid` |
skills/ncu-rep-analyzer/SKILL.md · 300 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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. 2d ago First seen · 300 lines · 149 tokens per session scan B d02193f7f89d

Subscribe to this mod's changes

ncu-rep-analyzer is a skill published in the GitHub repository ForceInjection/cuda-code-skill (25 stars, last pushed 1mo ago), with no licence file. It adds 149 tokens to every session and 2,605 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). It comes from a forked repository.

Related

Other skills, from other repositories

kernel-loop

Iterative GPU kernel optimization orchestrator for CUDA/CUTLASS/CuTe DSL/Triton kernels. Use for measured, one-change-at-a-time optimization loops with correctness, NCU profiling, KBS evidence, hypothesis discipline, hard iteration gates, final benchmarking, and a traceable report.

fmh66/kernel-opt-agent · 63 tokens

kernel-KBS

Corpus-backed GPU kernel knowledge base for CUDA, Triton, CuTe, CUTLASS, and Ampere/Hopper/Blackwell kernel research. Use when the user needs to search merged kernel PR pages, inspect PR diff/provenance artifacts, find KernelWiki synthesis pages, query blog/doc/contest notes, or retrieve evidence-backed implementation…

fmh66/kernel-opt-agent · 109 tokens

kernel-benchmark

Standalone kernel benchmarking skill for cuda-cpp, cutlass, cute-dsl, and triton implementations. Use when the user wants to compare a custom CUDA/CUTLASS .cu kernel or CuTe DSL/Triton .py kernel against selectable PyTorch eager, torch.compile, or FlashInfer baselines, validate correctness, measure execution time with…

fmh66/kernel-opt-agent · 90 tokens

kernel-profile

Standalone kernel profiling skill for cuda-cpp, cute-dsl, cutlass, and triton implementations. Checks CUDA/PyTorch/Triton/CuTe DSL/CUTLASS/NCU/nsight-python readiness, optionally locks GPU clocks, validates correctness, collects Nsight Compute metrics with nsight-python, produces envcheck.md, correctness.md…

fmh66/kernel-opt-agent · 168 tokens

mlir-opt-skill

Use when optimizing MLIR GPU performance, compiling PyTorch or linalg/tensor MLIR to PTX, writing Transform dialect schedules, tuning auxiliary pass pipelines, benchmarking MLIR kernels against PyTorch, or diagnosing linalg/torch-mlir GPU codegen.

fmh66/MLIR-OPT-SKILL · 59 tokens

claude-md-improver

Audit and improve CLAUDE.md files in repositories. Use when user asks to check, audit, update, improve, or fix CLAUDE.md files. Scans for all CLAUDE.md files, evaluates quality against templates, outputs quality report, then makes targeted updates. Also use when the user mentions "CLAUDE.md maintenance" or "project…

anthropics/claude-plugins-official · 82 tokens