cli-anything-nsight-graphics
Skill này làm gì
Skill này giúp agent AI chạy công cụ Nsight Graphics của NVIDIA để ghi lại khung hình và thời gian xử lý GPU từ một trò chơi hoặc ứng dụng đồ họa. Skill dành cho nhà phát triển game và kỹ sư đồ họa cần dữ liệu hiệu năng.
Khi nào nên dùng
- ✓Khi bạn muốn ghi lại một khung hình từ trò chơi đang chạy để xem nó được vẽ như thế nào.
- ✓Khi bạn cần bản tóm tắt bản ghi GPU để tìm các phần chậm trong ứng dụng đồ họa.
- ✓Khi bạn muốn phân tích một file ghi hình đã có sẵn.
Liên kết skill
https://github.com/HKUDS/CLI-Anything/blob/main/nsight-graphics/agent-harness/cli_anything/nsight_graphics/skills/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tôi muốn ghi lại vài khung hình từ trò chơi của mình và xem những bước nào mất nhiều thời gian nhất.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent khởi động Nsight Graphics cùng ứng dụng của bạn, hoặc gắn nó vào một ứng dụng đang chạy, kích hoạt việc ghi và lưu kết quả. Agent cũng có thể tóm tắt dữ liệu đã ghi.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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 ..
Câu hỏi thường gặp
Skill có chạy được trên Mac hoặc Linux không?
Skill được mô tả là ưu tiên Windows, nên phù hợp nhất với máy tính Windows dùng card đồ họa NVIDIA.
Tôi có cần cài Nsight Graphics không?
Có. Skill tìm phiên bản Nsight Graphics đã cài trên máy và kiểm tra trước khi chạy.
Nó có thể ghi lại ứng dụng đang chạy sẵn không?
Có. Skill có thể gắn Nsight vào một ứng dụng đang chạy bằng mã tiến trình của ứng dụng đó.
Chi tiết
Mô tả gốc của tác giả
Windows-first CLI harness for Nsight Graphics capture, GPU Trace summary, and ngfx-replay analysis
repo: HKUDS/CLI-Anything
Độ phổ biến
- Sao GitHub
- 58k
- Vị trí xếp hạng
- #3230
- Giấy phép
- Apache-2.0
- Cập nhật
- 21/9/2026
Bình luận
- …
Thêm skill từ kho mã này
cli-anything-3mf
58kCho phép agent của bạn kiểm tra và sửa file in 3D, gồm tìm lỗ tròn, đổi kích thước chúng, sửa lưới và so sánh hai file.
cli-anything-qgis
58kCho phép agent của bạn mở, sửa và xuất dự án bản đồ QGIS từ terminal, gồm các lớp, đối tượng, bố cục in và công cụ xử lý.
cli-anything-adguardhome
58kCho phép agent của bạn quản lý AdGuard Home, một bộ chặn quảng cáo toàn mạng, gồm bộ lọc, DNS rewrite, thiết bị và nhật ký truy vấn.
cli-anything-anygen
58kCho phép agent của bạn tạo slide, tài liệu, website và sơ đồ từ một prompt bằng dịch vụ AnyGen.
Skill tương tự
diffs
394kGiúp agent của bạn tạo một diff có thể chia sẻ về các chỉnh sửa, dưới dạng liên kết xem hoặc file ảnh, thay vì một bản tóm tắt viết tay.
coding-agent
394kGiúp agent của bạn giao một việc lập trình lớn cho Codex, Claude Code hoặc OpenCode chạy nền, rồi theo dõi tiến độ của nó.
gh-issues
394kGiúp agent của bạn tìm issue trên GitHub, chọn những issue cần xử lý và mở pull request với bản sửa, kể cả theo dõi nhận xét đánh giá.