Skip to main content
skill CX Codex

cli-anything-nsight-graphics — Claude Code skill

Runs NVIDIA Nsight Graphics captures and analysis from the command line. Use it when investigating frames or GPU trace output.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add HKUDS/CLI-Anything --skill cli-anything-nsight-graphics -a claude-code
Open on GitHub

What cli-anything-nsight-graphics does

This skill launches an application under NVIDIA Nsight Graphics or attaches to a running PID, then triggers Graphics Capture or OpenGL Frame Debugger capture. It can capture GPU Trace data, export the results, and produce a summary of tables, metrics, frame budget, workload classification, and bottleneck hints.

replay analyze processes .ngfx-capture files through ngfx-replay. It exports metadata, logs, captured log errors, and a replay performance report. Use --json in scripted flows; doctor info detects the available compatibility mode, while doctor versions lists detected installations.

NVIDIA Nsight Graphics must already be installed, and a Windows host is recommended. .ngfx-gputrace files may return Invalid file header on Nsight Graphics 2026.1.0, so gpu-trace summarize is the right path for exported GPU Trace tables.

What it helps with

  • check detected Nsight Graphics installations
  • launch an application for frame capture
  • attach Nsight to a running PID
  • capture and export a GPU Trace
  • analyze an existing .ngfx-capture file

Example prompts for the agent

  • “Run cli-anything-nsight-graphics --json doctor info and report the available compatibility mode.”
  • “Capture a GPU Trace for C:\Path\To\App.exe, then export and summarize it.”
  • “Analyze D:\captures\frame.ngfx-capture and write the results to D:\analysis.”

How to install cli-anything-nsight-graphics

1Skills CLI (Vercel)

npx skills add HKUDS/CLI-Anything --skill cli-anything-nsight-graphics -a claude-code

2Manually: put the files in place

~/.claude/skills/cli-anything-nsight-graphics/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/cli-anything-nsight-graphics/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about cli-anything-nsight-graphics

How do I install cli-anything-nsight-graphics in Claude Code?

Run npx skills add HKUDS/CLI-Anything --skill cli-anything-nsight-graphics -a claude-code twice, then open ~/.claude/skills/cli-anything-nsight-graphics/SKILL.md.

What does cli-anything-nsight-graphics do?

It orchestrates NVIDIA Nsight Graphics tasks from the command line, including application launch or attachment, frame capture, GPU Trace capture, and .ngfx-capture analysis.

Can replay analyze process .ngfx-gputrace files?

It accepts them to provide diagnostics, but Nsight Graphics 2026.1.0 may report Invalid file header. Use gpu-trace summarize for exported GPU Trace table analysis.

Source text

SKILL.md · Apache-2.0
---
name: "cli-anything-nsight-graphics"
description: Windows-first CLI harness for Nsight Graphics capture, GPU Trace summary, and ngfx-replay analysis
version: 0.2.0
command: cli-anything-nsight-graphics
install: pip install cli-anything-nsight-graphics
requires:
  - NVIDIA Nsight Graphics installation
  - Windows host recommended
categories:
  - graphics
  - debugging
  - gpu
  - profiling
---

# Nsight Graphics CLI Skill

Command-line orchestration of official NVIDIA Nsight Graphics activities.

## Capabilities

- Probe installed Nsight binaries and compatibility mode
- Launch an application detached under Nsight
- Attach Nsight to a running PID
- Trigger Graphics Capture or OpenGL Frame Debugger capture
- Trigger GPU Trace capture, auto-export, and summarize
- Analyze existing `.ngfx-capture` files through `ngfx-replay`
- Report clear compatibility diagnostics for `.ngfx-gputrace` inputs
- Trigger Generate C++ Capture

## Commands

### doctor

```bash
cli-anything-nsight-graphics --json doctor info
cli-anything-nsight-graphics --json doctor versions
cli-anything-nsight-graphics --nsight-path "C:\Path\To\Nsight Graphics 2024.2\host\windows-desktop-nomad-x64" --json doctor info
```

### launch

```bash
cli-anything-nsight-graphics launch detached --activity "Graphics Capture" --exe "C:\Path\To\App.exe"
cli-anything-nsight-graphics launch attach --activity "Graphics Capture" --pid 12345
```

### frame capture

```bash
cli-anything-nsight-graphics --output-dir D:\captures frame capture ^
  --exe "C:\Path\To\App.exe" ^
  --wait-frames 10
```

### GPU Trace

```bash
cli-anything-nsight-graphics --output-dir D:\traces gpu-trace capture ^
  --exe "C:\Path\To\App.exe" ^
  --start-after-ms 1000 ^
  --limit-to-frames 1 ^
  --auto-export ^
  --summarize

cli-anything-nsight-graphics gpu-trace summarize ^
  --input-dir D:\traces
```

### Replay analysis

```bash
cli-anything-nsight-graphics --json replay analyze ^
  --capture-file D:\captures\frame.ngfx-capture ^
  --output-dir D:\analysis
```

### Generate C++ Capture

```bash
cli-anything-nsight-graphics --output-dir D:\cpp cpp capture ^
  --exe "C:\Path\To\App.exe" ^
  --wait-seconds 5
```

## Agent Notes

- Prefer `doctor info` first to discover the available compatibility mode.
- Use `doctor versions` to list detected installs when multiple Nsight Graphics versions exist.
- Use `--nsight-path` to force a specific install directory or `ngfx.exe`.
- Use `--json` for programmatic workflows.
- Prefer `gpu-trace capture --auto-export --summarize` for one-step performance
  triage. The summary includes exported table inventory, metric inventory,
  frame-budget classification, workload classification, throughput ranking,
  bottleneck hints, and warnings for empty event/regime tables.
- Use `replay analyze` when the input is an existing `.ngfx-capture` file. With
  no analysis switches it exports metadata, logs, captured log errors, and a
  replay performance report, then adds structured `analysis.highlights` /
  `analysis.warnings`.
- `ngfx-replay` documents its input as a Graphics Capture file. `.ngfx-gputrace`
  inputs are accepted for clear diagnostics, but on Nsight Graphics 2026.1.0
  they may report `Invalid file header`; use `gpu-trace summarize` for exported
  GPU Trace table analysis.
- `replay analyze` uses official `ngfx-replay` metadata/log/screenshot/perf-report
  outputs; it is not a RenderDoc-style shader, pipeline, texture, or resource inspector.
- Frame/GPU/C++ capture commands require a launch target through `--exe` or a
  preconfigured root-level `--project`.
- If a global `cli-anything-nsight-graphics` command points at an old worktree,
  reinstall from `nsight-graphics/agent-harness` with `python -m pip install -e .`.

© HKUDS · Apache-2.0 · HKUDS/CLI-Anything

Similar skills

Everything for Game dev and 3D: Unity, Unreal, Godot, Blender →

From the same set55

cli-anything-unimol-tools CLI skill for training and running Uni-Mol molecular property prediction models. It handles experiment tracking, inference, and storage cleanup for chemistry workflows. CX Codex +1 457installs cli-anything-seaclip A stateless CLI for managing tasks, pipelines, and schedules on the SeaClip-Lite board. It allows AI agents to inspect and update issues using structured JSON output. CX Codex +1 452installs cli-anything-rms Gives your coding agent a command line for Teltonika RMS, so it can list routers, gateways and IoT devices, read alerts and pull reports. CX Codex +1 451installs cli-anything-unrealinsights This skill controls Unreal Engine trace capture, Trace Store inspection, and Unreal Insights, then exports timing and counter data. It fits agent-driven profiling. CX Codex +1 434installs cli-anything-lldb This skill runs stateful LLDB workflows with JSON output for breakpoints, process inspection, memory reads, and AI-client debugging through DAP. CX Codex +1 405installs cli-anything-quietshrink Compresses macOS screen recordings using Apple Silicon hardware HEVC encoding without stressing the CPU. It reduces .mov and .mp4 file size by 70–90% with visually lossless quality. CX Codex +1 387installs cli-anything-sbox A CLI with 79+ commands for s&box (Source 2): edit scenes, prefabs, materials, and configs from your agent, generate C# code, and validate your project without launching the editor. CX Codex +1 378installs cli-anything-macrocli This skill converts GUI workflows into parameterized CLI commands. An agent calls macro run <name> with parameters, and the system automatically routes execution to the right backend — API, file transformation, or UI automation. CX Codex +1 373installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor