cli-anything-nsight-graphics
What it does
This skill lets an AI agent run NVIDIA's Nsight Graphics tool to capture frames and GPU timing from a game or graphics app. It is for game developers and graphics engineers who need performance data.
When to use it
- ✓When you want to capture a single frame from a running game to see how it was drawn.
- ✓When you need a GPU trace summary to find the slow parts of a graphics app.
- ✓When you want to analyze a capture file that already exists.
Skill link
https://github.com/HKUDS/CLI-Anything/blob/main/nsight-graphics/agent-harness/cli_anything/nsight_graphics/skills/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“I want to capture a few frames from my game and see which steps take the longest.”
5 new skills a week. 1 minute to read.
How it works
The agent starts Nsight Graphics with your app, or attaches it to a running app, triggers a capture, and saves the results. It can also summarize the data it recorded.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
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-capturefiles throughngfx-replay - Report clear compatibility diagnostics for
.ngfx-gputraceinputs - Trigger Generate C++ Capture
Commands
doctor
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
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
cli-anything-nsight-graphics --output-dir D:\captures frame capture ^
--exe "C:\Path\To\App.exe" ^
--wait-frames 10
GPU Trace
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
cli-anything-nsight-graphics --json replay analyze ^
--capture-file D:\captures\frame.ngfx-capture ^
--output-dir D:\analysis
Generate C++ Capture
cli-anything-nsight-graphics --output-dir D:\cpp cpp capture ^
--exe "C:\Path\To\App.exe" ^
--wait-seconds 5
Agent Notes
- Prefer
doctor infofirst to discover the available compatibility mode. - Use
doctor versionsto list detected installs when multiple Nsight Graphics versions exist. - Use
--nsight-pathto force a specific install directory orngfx.exe. - Use
--jsonfor programmatic workflows. - Prefer
gpu-trace capture --auto-export --summarizefor 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 analyzewhen the input is an existing.ngfx-capturefile. With no analysis switches it exports metadata, logs, captured log errors, and a replay performance report, then adds structuredanalysis.highlights/analysis.warnings. ngfx-replaydocuments its input as a Graphics Capture file..ngfx-gputraceinputs are accepted for clear diagnostics, but on Nsight Graphics 2026.1.0 they may reportInvalid file header; usegpu-trace summarizefor exported GPU Trace table analysis.replay analyzeuses officialngfx-replaymetadata/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
--exeor a preconfigured root-level--project. - If a global
cli-anything-nsight-graphicscommand points at an old worktree, reinstall fromnsight-graphics/agent-harnesswithpython -m pip install -e ..
FAQ
Does this work on Mac or Linux?
The skill is described as Windows-first, so it is best suited to Windows computers that use NVIDIA graphics.
Do I need Nsight Graphics installed?
Yes. The skill finds your installed Nsight Graphics version and checks it before running.
Can it capture an app that is already running?
Yes. The skill can attach Nsight to a running app using its process ID.
Details
Original description by the author
Windows-first CLI harness for Nsight Graphics capture, GPU Trace summary, and ngfx-replay analysis
repo: HKUDS/CLI-Anything
Popularity
- GitHub stars
- 58k
- Ranking position
- #3230
- License
- Apache-2.0
- Updated
- 9/21/2026
Comments
- …
More skills from this repository
cli-anything-3mf
58kLets your agent inspect and fix 3D printing files, including finding round holes, resizing them, repairing meshes, and comparing two files.
cli-anything-qgis
58kLets your agent open, edit, and export QGIS map projects from the terminal, including layers, features, print layouts, and processing tools.
cli-anything-adguardhome
58kLets your agent manage AdGuard Home, a network-wide ad blocker, including filters, DNS rewrites, clients, and query logs.
cli-anything-anygen
58kLets your agent generate slides, documents, websites, and diagrams from a written prompt using the AnyGen service.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.