/veloq:nsys-profile-analysisfrom veloq
Analyzes Nsight Systems timeline traces (.nsys-rep) using the VeloQ CLI to identify GPU idle gaps, launch causes, CPU/GPU correlation, NVTX regions, CUDA graphs, metric streams, and concurrency issues.
Ships in veloq. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use veloq as the evidence extractor for NSys timeline traces: what ran,
when, how CPU work caused GPU work, where idle gaps are, and whether
captured metric streams are trustworthy. Requires veloq on PATH.
For Nsight Compute .ncu-rep kernel reports use ncu-profile-analysis;
for PyTorch/Kineto Chrome traces use pytorch-profile-analysis.
veloq info trace.nsys-rep # detect source, trace map, applicable recipes
veloq summary trace.nsys-rep | jq '.data.auxiliary.capabilities'
Then query with stats / search / inspect / correlate / slices /
gaps / timeline / concurrency / graph-replays / metrics /
hardware. Per-command flags and the response schema live in
veloq <cmd> --help and veloq schema <cmd>; canonical multi-step
workflows live in veloq recipes / veloq recipes <id>. Those are the
SSOT — do not duplicate them here.
stdout is always one JSON envelope: data.rows[] on success (every row
carries a stable key), error on failure. Parse .data/.error,
never stderr.
Querying the exported sqlite/parquet directly is possible but you re-implement — and can silently get wrong — things veloq already does:
correlationId bridged by
TARGET_INFO_CUDA_CONTEXT_INFO and the globalTid PID mask
(correlate/inspect do this for you).--nvtx scoping.<trace>.veloq/) reused
across queries; first .nsys-rep access runs nsys export for you.kernel:1234, gap|pid:..|@..) — diff two
captures with INDEX(.data.rows; .key) in jq.If you do read raw tables anyway (user asked, or veloq lacks the query), you own the invariants in the pitfalls list below — every one of them has produced a plausible-but-wrong answer in practice.
GRAPH_TRACE held 753 replay rows in
a ~1.7 s window while cudaGraphLaunch ran ~4.2k times per rank to
the end of the trace. Before any CUDA-graph split/hotspot claim,
cross-check graph-replays total_matched against the runtime
cudaGraphLaunch count; on mismatch, declare partial coverage and
conclude only for the covered window.graphId NULL means "eager OR unrecorded replay", never proof of
eager.globalTid is packed: PID = (id >> 24) & 0xFFFFFF, TID =
id & 0xFFFF (16 bits). TID ≠ PID — do not assume the main thread;
resolve names via ThreadNames (join on the PID mask).--from/--to duration literals are relative to the trace origin;
absolute timestamps need @<ns>. A wrong window returns
plausible-looking numbers from the wrong region — or zero rows.sum double-counts
overlap and can exceed 100% of wall; use concurrency's
union_busy_ns (and compute_vs_copy for copy hiding).metrics --type * only after checking coverage; low
coverage means recapture, not "the counter was low".summary.data.auxiliary.capabilities first and say
INSUFFICIENT_EVIDENCE when the trace cannot answer.ncu-profile-analysis; veloq nsys ncu-command T kernel:N --print
emits the capture command).inspect
(kept in sync with the Rust structs; veloq schema inspect is the
interactive equivalent)curl -fsSL https://raw.githubusercontent.com/lucifer1004/veloq/main/scripts/install.sh | bash
# or from source: cargo build --release -p veloq
.nsys-rep inputs need nsys >= 2024.6 on PATH once (parquet
export); _pqtdir/ inputs are read directly.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub lucifer1004/veloq --plugin veloq3 skills in this plugin
/ncu-profile-analysisAnalyze Nsight Compute `.ncu-rep` and `.ncu-repz` kernel reports using the VeloQ CLI. Use for occupancy, warp stalls, memory/instruction bottlenecks, rule findings, source/SASS/PTX correlation, and metric CSV/table export./pytorch-profile-analysisAnalyze single-file PyTorch/Kineto Chrome trace `.json(.gz)` files using the VeloQ CLI. Use for CPU/CUDA/kernel correlation, ProfilerStep/annotation slicing, memory/shape grouping, and single-trace NCCL evidence.Other plugins' skills for the same job