cli-anything-nsight-graphics
できること
このスキルは、AIエージェントがNVIDIAのNsight Graphicsツールを実行し、ゲームやグラフィックスアプリからフレームとGPUの処理時間を取得できるようにします。性能データが必要なゲーム開発者やグラフィックスエンジニア向けです。
使う場面
- ✓動いているゲームから1フレームを取得し、どう描画されたかを見たいとき。
- ✓グラフィックスアプリの遅い部分を見つけるため、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に貼り付けるだけ。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プリントのファイルを調べて直せるようにします。丸い穴を見つける、そのサイズを変える、メッシュを修復する、2つのファイルを比べることができます。
cli-anything-qgis
58kエージェントがターミナルからQGISのマッププロジェクトを開き、編集し、書き出せるようにします。レイヤー、フィーチャー、印刷レイアウト、処理ツールを含みます。
cli-anything-adguardhome
58kエージェントがAdGuard Homeを管理できるようにします。AdGuard Homeはネットワーク全体で広告を遮断するツールで、フィルター、DNSの書き換え、クライアント、クエリのログを扱います。
cli-anything-anygen
58kエージェントが、AnyGenのサービスを使って、書かれたプロンプトからスライド、文書、ウェブサイト、図を生成できるようにします。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。