Skip to main content
skill CX Codex

cli-anything-unrealinsights — Claude Code skill

This skill controls Unreal Engine trace capture, Trace Store inspection, and Unreal Insights, then exports timing and counter data. It fits agent-driven profiling.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add HKUDS/CLI-Anything --skill cli-anything-unrealinsights -a claude-code
Open on GitHub

What cli-anything-unrealinsights does

The skill gives an agent CLI access to Unreal Engine traces on Windows. It can find and validate UnrealInsights.exe, set a current .utrace, browse the Trace Store, run one-shot or continuous captures, and open a trace while leaving the Unreal Insights GUI running.

JSON output covers capture, export, live control, and analysis workflows. The skill exports thread data, timer statistics, and counter values, supports response-file batches, and produces summaries with GameThread, RenderThread, and RHIThread hotspots, counter peaks, and export diagnostics.

Windows and Unreal Engine tools with UnrealInsights.exe are required. The skill was verified with UE 5.5, while headless exporter handling includes UE 5.3-style command parsing where possible. Check the executable paths before using it: live commands require UNREALINSIGHTS_LIVE_EXEC or --backend-command.

What it helps with

  • capture a trace from an Unreal project
  • inspect files in the Trace Store
  • keep Unreal Insights open on a selected trace
  • export timing and counter data
  • summarize thread hotspots and export results

Example prompts for the agent

  • Run a JSON trace capture for D:\Projects\MyGame\MyGame.uproject with cli-anything-unrealinsights and save it as D:\captures\boot.utrace.
  • Find the latest Trace Store trace with cli-anything-unrealinsights --json store latest --set-current, then open it in Unreal Insights.
  • Export timer data and counter values from D:\captures\session.utrace to D:\out\stats.csv and D:\out\counter_values.csv with JSON output.

How to install cli-anything-unrealinsights

1Skills CLI (Vercel)

npx skills add HKUDS/CLI-Anything --skill cli-anything-unrealinsights -a claude-code

2Manually: put the files in place

~/.claude/skills/cli-anything-unrealinsights/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/cli-anything-unrealinsights/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about cli-anything-unrealinsights

How do I install cli-anything-unrealinsights in Claude Code?

Run npx skills add HKUDS/CLI-Anything --skill cli-anything-unrealinsights -a claude-code, then run the same command again: npx skills add HKUDS/CLI-Anything --skill cli-anything-unrealinsights -a claude-code. The skill file is at ~/.claude/skills/cli-anything-unrealinsights/SKILL.md.

What does cli-anything-unrealinsights do?

It controls Unreal Engine trace capture, browses the Trace Store, opens Unreal Insights, and exports timing and counter data. Its analyzer reports thread hotspots, wait timers, counter peaks, and export diagnostics.

What does cli-anything-unrealinsights require?

It requires Windows and Unreal Engine tools with UnrealInsights.exe. Live commands also require UNREALINSIGHTS_LIVE_EXEC or --backend-command.

Source text

SKILL.md · Apache-2.0
---
name: "cli-anything-unrealinsights"
description: "Capture Unreal Engine traces, inspect Trace Store files, keep Unreal Insights GUI open, and export/summarize timing/counter data."
---

# cli-anything-unrealinsights

Use this CLI when you need agent-friendly access to Unreal Insights trace capture
and exporter workflows on Windows.

## Prerequisites

- Windows
- Unreal Engine tools installed with `UnrealInsights.exe`
- Verified with UE 5.5; headless timing exporters include compatibility handling
  for UE 5.3-style command parsing where possible
- Optional explicit env vars:
  - `UNREALINSIGHTS_EXE`
  - `UNREAL_TRACE_SERVER_EXE`
  - `UNREALINSIGHTS_TRACE`

## Core Commands

### Backend discovery

```powershell
cli-anything-unrealinsights --json backend info
```

To use a source-built engine's matching `UnrealInsights.exe`:

```powershell
cli-anything-unrealinsights --json backend ensure-insights `
  --engine-root 'D:\code\D5\d5render-ue5_3'
```

This first looks for `Engine\Binaries\Win64\UnrealInsights.exe` under the
specified engine root, then builds it with that engine's `Build.bat` if needed.

### Trace session state

```powershell
cli-anything-unrealinsights trace set D:\captures\session.utrace
cli-anything-unrealinsights --json trace info
```

### Trace Store discovery

```powershell
cli-anything-unrealinsights --json store info
cli-anything-unrealinsights --json store list --live-only
cli-anything-unrealinsights --json store latest --set-current
```

### Capture orchestration

```powershell
cli-anything-unrealinsights --json capture run `
  --project 'D:\Projects\MyGame\MyGame.uproject' `
  --engine-root 'D:\Program Files\Epic Games\UE_5.5' `
  --output-trace D:\captures\boot.utrace `
  --channels "default,bookmark" `
  --exec-cmd "Trace.Bookmark BootStart" `
  --wait --timeout 300
```

You can also keep using the explicit form:

```powershell
cli-anything-unrealinsights --json capture run `
  'D:\Program Files\Epic Games\UE_5.5\Engine\Binaries\Win64\UnrealEditor.exe' `
  --target-arg 'D:\Projects\MyGame\MyGame.uproject'
```

### Continuous capture session control

```powershell
cli-anything-unrealinsights --json capture start `
  --project 'D:\Projects\MyGame\MyGame.uproject' `
  --engine-root 'D:\Program Files\Epic Games\UE_5.5' `
  --output-trace D:\captures\live_session.utrace

cli-anything-unrealinsights --json capture status
cli-anything-unrealinsights --json capture snapshot D:\captures\live_snapshot.utrace
cli-anything-unrealinsights --json capture stop
```

This is the preferred flow when an agent needs to start profiling now and stop
or snapshot later in a follow-up turn.

If a tracked capture session is still running, `capture start` now requires
`--replace` so the previous process is stopped before a new one is launched.

### Live trace control backend

```powershell
$env:UNREALINSIGHTS_LIVE_EXEC='ushell-wrapper --pid {pid} --cmd "{cmd}"'
cli-anything-unrealinsights --json live processes
cli-anything-unrealinsights --json live trace-status --pid 1234
cli-anything-unrealinsights --json live bookmark --pid 1234 "BeforeExport"
cli-anything-unrealinsights --json live stop-trace --pid 1234
```

Live command delivery requires `UNREALINSIGHTS_LIVE_EXEC` or `--backend-command`.
If no backend is configured, live commands return a JSON error and do not claim
success. `live stop-trace` stops trace collection without killing the UE process;
`capture stop` still terminates the harness-launched process tree.

### GUI co-pilot

```powershell
cli-anything-unrealinsights --json gui status
cli-anything-unrealinsights --json gui open --trace D:\captures\session.utrace
cli-anything-unrealinsights --json gui open-latest
```

GUI commands omit `-NoUI` and `-AutoQuit` so Unreal Insights remains open.

### Offline exporters

```powershell
cli-anything-unrealinsights --json -t D:\captures\session.utrace export threads D:\out\threads.csv
cli-anything-unrealinsights --json -t D:\captures\session.utrace export timer-stats D:\out\stats.csv --region=EXPORT_CAPTURE
cli-anything-unrealinsights --json -t D:\captures\session.utrace export counter-values D:\out\counter_values.csv --counter=*
```

Prefer equals-form wildcard filters such as `--timers=*` and `--counter=*`.
The harness passes simple values to UnrealInsights without inner quotes so
wildcards remain usable inside `-ExecOnAnalysisCompleteCmd`.

### Batch response files

```powershell
cli-anything-unrealinsights --json -t D:\captures\session.utrace batch run-rsp D:\out\exports.rsp
```

### Analyze summaries

```powershell
cli-anything-unrealinsights --json -t D:\captures\session.utrace analyze summary --out D:\out\summary
cli-anything-unrealinsights --json analyze summary --skip-export --out D:\out\summary
```

The summary reports top timers, focused GameThread/RenderThread/RHIThread
hotspots, wait/task-related timers, counter peaks, and uncovered domains for
future Memory/Network/Slate/Asset/Cooking analysis.

`analyze summary` also returns `export_status` and
`summary.diagnostics.export_status_counts` so agents can distinguish successful
exports from trace/filter combinations that completed but produced no rows.

## JSON Output Guidance

- Prefer `--json` for agent workflows.
- Export commands return:
  - `trace_path`
  - `exec_command`
  - `output_files`
  - `output_status`
  - `status_message`
  - `log_path`
  - `exit_code`
  - `warnings`
  - `errors`
  - `succeeded`
- Capture returns:
  - `command`
  - `trace_path`
  - `trace_exists`
  - `trace_size`
  - `pid` or `exit_code`
- Continuous capture status returns:
  - `pid`
  - `running`
  - `target_exe`
  - `project_path`
  - `trace_path`
  - `trace_size`
  - `started_at`
- Trace Store commands return:
  - `store_dir`
  - `trace_count`
  - `traces`
  - `latest`
- Live commands return:
  - `pid`
  - `live_command`
  - `backend`
  - `exit_code`
  - `succeeded`
- Analyze summary returns:
  - `exports`
  - `export_status`
  - `summary.top_timers`
  - `summary.focus_threads`
  - `summary.wait_timers`
  - `summary.counter_peaks`
  - `summary.diagnostics`
  - `summary.uncovered_domains`

Treat `output_status == "ok"` as a materialized export. Treat
`output_status == "no_output"` as an empty trace/filter result, not a backend
crash. Use `exporter_error`, `process_failed`, and `timed_out` for retry or
debugging decisions.

## Notes

- v1 is Windows-first.
- v1 includes Trace Store browsing, GUI open/status, pluggable live command delivery,
  and timing/counter summaries.
- `capture stop` is a best-effort stop of the harness-launched process tree.
- `capture snapshot` is a best-effort filesystem snapshot of the active trace.
- Regression tests auto-discover the UE `example_trace.decomp.utrace` sample
  when present; the binary trace is not vendored.

© HKUDS · Apache-2.0 · HKUDS/CLI-Anything

Similar skills

Everything for Game dev and 3D: Unity, Unreal, Godot, Blender →

From the same set55

cli-anything-novita Gives an agent CLI commands for Novita API chat, streamed replies, and model discovery. Use it when calling DeepSeek or GLM models from a terminal. CX Codex +1 462installs cli-anything-unimol-tools CLI skill for training and running Uni-Mol molecular property prediction models. It handles experiment tracking, inference, and storage cleanup for chemistry workflows. CX Codex +1 457installs cli-anything-seaclip A stateless CLI for managing tasks, pipelines, and schedules on the SeaClip-Lite board. It allows AI agents to inspect and update issues using structured JSON output. CX Codex +1 452installs cli-anything-rms Gives your coding agent a command line for Teltonika RMS, so it can list routers, gateways and IoT devices, read alerts and pull reports. CX Codex +1 451installs cli-anything-nsight-graphics Runs NVIDIA Nsight Graphics captures and analysis from the command line. Use it when investigating frames or GPU trace output. CX Codex +1 412installs cli-anything-lldb This skill runs stateful LLDB workflows with JSON output for breakpoints, process inspection, memory reads, and AI-client debugging through DAP. CX Codex +1 405installs cli-anything-quietshrink Compresses macOS screen recordings using Apple Silicon hardware HEVC encoding without stressing the CPU. It reduces .mov and .mp4 file size by 70–90% with visually lossless quality. CX Codex +1 387installs cli-anything-sbox A CLI with 79+ commands for s&box (Source 2): edit scenes, prefabs, materials, and configs from your agent, generate C# code, and validate your project without launching the editor. CX Codex +1 378installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor