Communitygithub.com

Nsight Graphics CLI スキル

Windows 向けの CLI ハーネスで、Nsight Graphics のキャプチャ、GPU Trace のサマリー、ngfx-replay 分析を実行できます。

Nsight Graphics CLI スキル とは?

このスキルは、公式の NVIDIA Nsight Graphics ツールをコマンドラインから操作するための CLI ハーネスを提供します。主に Windows 環境をターゲットとしており、インストール済みの Nsight バイナリの探索、アプリケーションの起動やプロセスアタッチ、Graphics Capture や GPU Trace の取得と自動エクスポート・サマリー生成、既存の .ngfx-capture ファイルに対する ngfx-replay を使った詳細分析などをサポートします。また、.ngfx-gputrace 入力の互換性診断や C++ キャプチャコード生成も可能です。開発者や AI エージェントは、このスキルを使って GPU ワークロードのパフォーマンストリアージやフレームデバッグをスクリプト化・自動化でき、特に CI/CD パイプラインや自動テスト環境での活用が期待されます。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/HKUDS/CLI-Anything/tree/main/skills/cli-anything-nsight-graphics

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

Nsight Graphics CLI スキル は何をしますか?

公式の NVIDIA Nsight Graphics アクティビティをコマンドラインで統括します。

機能

  • インストール済みの Nsight バイナリと互換性モードの検出
  • アプリケーションを Nsight 配下でデタッチ状態で起動
  • 実行中の PID に Nsight をアタッチ
  • Graphics Capture または OpenGL フレームデバッガキャプチャのトリガー
  • GPU Trace キャプチャのトリガー、自動エクスポート、サマリー生成
  • 既存の .ngfx-capture ファイルを ngfx-replay で分析
  • .ngfx-gputrace 入力の明確な互換性診断レポート
  • C++ キャプチャコードの生成

コマンド

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

フレームキャプチャ

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

リプレイ分析

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

C++ キャプチャ生成

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

エージェント向け注意事項

  • 最初に doctor info を使用して、利用可能な互換性モードを確認することを推奨します。
  • 複数の Nsight Graphics バージョンが存在する場合は、doctor versions を使用して検出されたインストールを一覧表示します。
  • --nsight-path を使用して、特定のインストールディレクトリまたは ngfx.exe を強制的に指定します。
  • プログラムによるワークフローには --json を使用します。
  • ワンステップのパフォーマンストリアージには、gpu-trace capture --auto-export --summarize を推奨します。サマリーには、エクスポートされたテーブル一覧、メトリクス一覧、フレームバジェット分類、ワークロード分類、スループットランキング、ボトルネックヒント、空のイベント/レジームテーブルに対する警告が含まれます。
  • 入力が既存の .ngfx-capture ファイルの場合は、replay analyze を使用します。分析スイッチを指定しない場合、メタデータ、ログ、キャプチャされたログエラー、リプレイパフォーマンスレポートがエクスポートされ、構造化された analysis.highlights / analysis.warnings が追加されます。
  • ngfx-replay は入力を Graphics Capture ファイルとして文書化しています。.ngfx-gputrace 入力は明確な診断のために受け入れられますが、Nsight Graphics 2026.1.0 では Invalid file header と報告される可能性があります。その場合は gpu-trace summarize を使用して、エクスポートされた GPU Trace テーブルを分析してください。
  • replay analyze は公式の ngfx-replay メタデータ/ログ/スクリーンショット/パフォーマンスレポート出力を使用します。RenderDoc スタイルのシェーダー、パイプライン、テクスチャ、リソースインスペクタではありません。
  • フレーム/GPU/C++ キャプチャコマンドは、--exe で起動ターゲットを指定するか、事前に設定されたルートレベルの --project が必要です。
  • グローバルな cli-anything-nsight-graphics コマンドが古いワークツリーを指している場合は、nsight-graphics/agent-harness から python -m pip install -e . で再インストールしてください。

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

cli-anything-adguardhome

>-

cli-anything-anygen

>-

cli-anything-audacity

>-

cli-anything-blender

>-

cli-anything-browser

Browser automation CLI using DOMShell MCP server. Maps Chrome

cli-anything-calibre

>-

cli-anything-ccswitch

CLI interface for CC Switch — manage AI coding tool configurations from the terminal

cli-anything-chromadb

>-

cli-anything-cloudanalyzer

Command-line interface for CloudAnalyzer — Agent-friendly harness for CloudAnalyzer, a QA platform for mapping, localization, and perception outputs. Supports 27 commands across 8 groups: point cloud evaluation, trajectory evaluation, ground segmentation QA, config-driven quality gates, baseline evolution, processing, visualization, and interactive REPL.

cli-anything-cloudcompare

Command-line interface for CloudCompare — Agent-friendly harness for CloudCompare, the open-source 3D point cloud and mesh processing software. Supports 41 commands across 9 groups: project management, session control, point cloud operations (subsample, filter, segment, analyze), mesh operations, distance computation (C2C, C2M), transformations (ICP, matrix), export (LAS/LAZ/PLY/PCD/OBJ/STL/E57), and interactive REPL.

cli-anything-comfyui

>-

cli-anything-dify-workflow

Wrapper for the Dify workflow DSL CLI. Create, inspect, validate, edit, and export Dify workflow files through a CLI-Anything harness.

cli-anything-drawio

>-

cli-anything-eez-studio

Use EEZ Studio from the command line: inspect and modify native .eez-project files, edit LVGL screens/widgets, manage SCPI commands, and invoke the real EEZ Studio backend for LVGL builds.

cli-anything-eth2-quickstart

>-

cli-anything-exa

>-

cli-anything-firefly-iii

Firefly III CLI - Personal finance management via CLI-Anything

cli-anything-freecad

Complete CLI harness for FreeCAD parametric 3D CAD modeler (258 commands). Covers ALL workbenches: Part (29 primitives + boolean + mirror + loft + sweep), Sketcher (26 cmds: geometry + constraints + editing), PartDesign (38 cmds: pad/pocket/groove/fillet/chamfer/patterns/hole/datum), Assembly (11 cmds), Mesh (16 cmds), TechDraw (15 cmds: views + dimensions + PDF/SVG), Draft (33 cmds: 2D shapes + arrays + transforms), FEM (12 cmds), CAM/CNC (10 cmds), Surface (6 cmds), Spreadsheet (7 cmds), Import (13 formats), Export (17 formats), Measure (12 cmds), Materials (21 presets). Headless FreeCAD export to STEP/IGES/STL/OBJ/DXF/PDF/glTF/3MF.

cli-anything-gimp

>-

cli-anything-godot

>-

関連スキル