Skip to main content

Build

CLI Anything Nsight Graphics

CLI-Anything

Windows-first CLI harness for Nsight Graphics capture, GPU Trace summary, and ngfx-replay analysis

  • New
  • v0.2.0
  • Reviewed Aug 18
  • No reviews yet

Getting started

Full instructions

Install the skill, then ask your AI tool for the task in plain words. The full SKILL.md below shows what it covers.

Instructions: SKILL.mdv0.2.0

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

bash
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

bash
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

bash
cli-anything-nsight-graphics --output-dir D:\captures frame capture ^
  --exe "C:\Path\To\App.exe" ^
  --wait-frames 10

GPU Trace

bash
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

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

Generate C++ Capture

bash
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 ..

Explore more skills

Browse all
This skill doesn’t include stateful context yet, instructions only. Learn about stateful skills.

Security

Loading security scan...

Reviews (0)

More from CLI-Anything

View source →

Frequently asked questions about cli-anything-nsight-graphics

What does the cli-anything-nsight-graphics skill do?

Windows-first CLI harness for Nsight Graphics capture, GPU Trace summary, and ngfx-replay analysis It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.

How do I install the cli-anything-nsight-graphics skill?

Run `npx @skills-hub-ai/cli install cli-anything-nsight-graphics` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/cli-anything-nsight-graphics/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.

Which AI tools does cli-anything-nsight-graphics work with?

cli-anything-nsight-graphics runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.

Is the cli-anything-nsight-graphics skill free?

Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.

How do I use cli-anything-nsight-graphics after installing it?

In Claude Code, type `/cli-anything-nsight-graphics` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.

Can I share the cli-anything-nsight-graphics skill with my team?

Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.

Badge for your README

Show that this skill is on Skills Hub. The badge links back to this page and shows the live install count.

Install on Skills Hub badge preview
Markdown
[![Install on Skills Hub](https://skills-hub.ai/api/badges/skill/cli-anything-nsight-graphics)](https://skills-hub.ai/skills/cli-anything-nsight-graphics)
HTML
<a href="https://skills-hub.ai/skills/cli-anything-nsight-graphics"><img src="https://skills-hub.ai/api/badges/skill/cli-anything-nsight-graphics" alt="Install on Skills Hub"></a>

More options in the badge docs.