cli-anything-nsight-graphics
它能做什么
这个技能让 AI 智能体运行 NVIDIA 的 Nsight Graphics 工具,从游戏或图形应用中捕获帧和 GPU 计时数据。适合需要性能数据的游戏开发者和图形工程师。
适用场景
- ✓当你想从正在运行的游戏中捕获一帧,查看它是如何绘制的时候。
- ✓当你需要一份 GPU 追踪摘要,以找出图形应用中较慢部分的时候。
- ✓当你想分析一个已有的捕获文件的时候。
技能链接
https://github.com/HKUDS/CLI-Anything/blob/main/nsight-graphics/agent-harness/cli_anything/nsight_graphics/skills/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请帮我从游戏中捕获几帧,并看看哪些步骤耗时最长。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会用你的应用启动 Nsight Graphics,或将其附加到正在运行的应用上,触发捕获并保存结果。它也可以汇总所记录的数据。
技术内容(原始 SKILL.md)
作者在 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 ..
常见问题
它能在 Mac 或 Linux 上运行吗?
该技能以 Windows 为主,因此最适合使用 NVIDIA 显卡的 Windows 电脑。
我需要安装 Nsight Graphics 吗?
需要。该技能会在运行前找到你已安装的 Nsight Graphics 版本并进行检查。
它可以捕获已经在运行的应用吗?
可以。该技能可以使用进程 ID 将 Nsight 附加到正在运行的应用上。
详情
作者的原始描述
Windows-first CLI harness for Nsight Graphics capture, GPU Trace summary, and ngfx-replay analysis
repo: HKUDS/CLI-Anything
热度
- GitHub 星标
- 58k
- 排名
- #3230
- 许可证
- Apache-2.0
- 更新时间
- 2026/9/21
评论
- …
同一仓库的更多技能
cli-anything-3mf
58k帮你的智能体检查和修复 3D 打印文件,包括查找圆孔、调整孔径、修复网格,以及比较两个文件。
cli-anything-qgis
58k帮你的智能体在终端中打开、编辑和导出 QGIS 地图项目,包括图层、要素、打印布局和处理工具。
cli-anything-adguardhome
58k帮你的智能体管理 AdGuard Home,这是一款全网络广告拦截器,可管理过滤规则、DNS 重写、客户端和查询日志。
cli-anything-anygen
58k帮你的智能体借助 AnyGen 服务,根据文字提示生成幻灯片、文档、网站和图表。