跳到正文
Skillpedia
通用编程58k · #3230

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/HKUDS/CLI-Anything/blob/main/nsight-graphics/agent-harness/cli_anything/nsight_graphics/skills/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 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-capture files through ngfx-replay
  • Report clear compatibility diagnostics for .ngfx-gputrace inputs
  • 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 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 ..
常见问题

它能在 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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能