Communitygithub.com

cli-anything-unrealinsights

Capturez des traces Unreal Engine, inspectez les fichiers Trace Store, maintenez l'interface Unreal Insights ouverte et exportez/résumez les données de chronométrage et de compteurs.

Qu'est-ce que cli-anything-unrealinsights ?

Ce skill permet aux agents IA (comme Claude Code, Cursor ou Codex) d'interagir directement avec Unreal Insights sur Windows pour la capture, l'inspection et l'exportation de traces de performance Unreal Engine. Il est particulièrement utile pour les workflows automatisés de profilage et d'analyse de jeux ou d'outils basés sur Unreal Engine. Le skill prend en charge la découverte du backend (via `UnrealInsights.exe`), l'orchestration de sessions de capture continue avec options de snapshot et d'arrêt, la navigation dans le Trace Store, l'ouverture de l'interface graphique Unreal Insights, l'exportation hors ligne de threads, statistiques de temporisateurs et valeurs de compteurs, ainsi que l'analyse de résumé avec rapports sur les temporisateurs principaux, les goulots d'étranglement des threads et les domaines non couverts. Les sorties en JSON sont conçues pour être facilement interprétables par un agent, avec des champs comme `succeeded`, `output_status`, `export_status` et `exit_code` pour guider les décisions de réessai ou de débogage. Le skill fonctionne sur Windows avec Unreal Engine 5.5 (et compatibilité partielle pour UE 5.3) et peut être utilisé via l'exécutable `cli-anything-unrealinsights`.

Compatible avec~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/HKUDS/CLI-Anything/tree/main/skills/cli-anything-unrealinsights

Demander à votre IA préférée

Ouvre une nouvelle conversation avec cette compétence d'agent déjà préchargée.

Documentation

Que fait cli-anything-unrealinsights ?

Utilisez ce CLI lorsque vous avez besoin d'un accès orienté agent aux workflows de capture et d'exportation de traces Unreal Insights sur Windows.

Prérequis

  • Windows
  • Outils Unreal Engine installés avec UnrealInsights.exe
  • Validé avec UE 5.5 ; les exportateurs de chronométrage en mode non-interactif incluent une gestion de compatibilité pour l'analyse des commandes de style UE 5.3 lorsque c'est possible
  • Variables d'environnement explicites optionnelles :
    • UNREALINSIGHTS_EXE
    • UNREAL_TRACE_SERVER_EXE
    • UNREALINSIGHTS_TRACE

Commandes principales

Découverte du backend

cli-anything-unrealinsights --json backend info

Pour utiliser le UnrealInsights.exe correspondant à un moteur compilé depuis les sources :

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

Cette commande cherche d'abord Engine\Binaries\Win64\UnrealInsights.exe dans le répertoire racine du moteur spécifié, puis le compile avec Build.bat de ce moteur si nécessaire.

État de la session de trace

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

Découverte du Trace Store

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

Orchestration de capture

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

Vous pouvez également utiliser la forme explicite :

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'

Contrôle de session de capture continue

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

Ce flux est préféré lorsqu'un agent doit démarrer le profilage immédiatement et arrêter ou prendre un instantané plus tard dans un tour suivant.

Si une session de capture suivie est toujours en cours, capture start nécessite désormais --replace afin que le processus précédent soit arrêté avant qu'un nouveau ne soit lancé.

Backend de contrôle de trace en direct

$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

La livraison de commandes en direct nécessite UNREALINSIGHTS_LIVE_EXEC ou --backend-command. Si aucun backend n'est configuré, les commandes en direct renvoient une erreur JSON et ne déclarent pas de succès. live stop-trace arrête la collecte de trace sans tuer le processus UE ; capture stop termine toujours l'arborescence de processus lancée par le harnais.

Copilote de l'interface graphique

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

Les commandes GUI omettent -NoUI et -AutoQuit afin qu'Unreal Insights reste ouvert.

Exportateurs hors ligne

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=*

Préférez les filtres par joker avec la forme égale comme --timers=* et --counter=*. Le harnais transmet des valeurs simples à UnrealInsights sans guillemets internes afin que les jokers restent utilisables dans -ExecOnAnalysisCompleteCmd.

Fichiers de réponse par lot

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

Résumés d'analyse

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

Le résumé rapporte les temporisateurs principaux, les goulots d'étranglement ciblés (GameThread/RenderThread/RHIThread), les temporisateurs liés aux attentes/tâches, les pics de compteurs et les domaines non couverts pour une future analyse Mémoire/Réseau/Slate/Asset/Cooking.

analyze summary renvoie également export_status et summary.diagnostics.export_status_counts afin que les agents puissent distinguer les exportations réussies des combinaisons trace/filtre qui se sont terminées mais n'ont produit aucune ligne.

Guide de sortie JSON

  • Préférez --json pour les workflows d'agent.
  • Les commandes d'exportation renvoient :
    • trace_path
    • exec_command
    • output_files
    • output_status
    • status_message
    • log_path
    • exit_code
    • warnings
    • errors
    • succeeded
  • La capture renvoie :
    • command
    • trace_path
    • trace_exists
    • trace_size
    • pid ou exit_code
  • Le statut de capture continue renvoie :
    • pid
    • running
    • target_exe
    • project_path
    • trace_path
    • trace_size
    • started_at
  • Les commandes Trace Store renvoient :
    • store_dir
    • trace_count
    • traces
    • latest
  • Les commandes en direct renvoient :
    • pid
    • live_command
    • backend
    • exit_code
    • succeeded
  • Le résumé d'analyse renvoie :
    • exports
    • export_status
    • summary.top_timers
    • summary.focus_threads
    • summary.wait_timers
    • summary.counter_peaks
    • summary.diagnostics
    • summary.uncovered_domains

Considérez output_status == "ok" comme une exportation matérialisée. Considérez output_status == "no_output" comme un résultat trace/filtre vide, pas un crash du backend. Utilisez exporter_error, process_failed et timed_out pour les décisions de réessai ou de débogage.

Remarques

  • v1 est prioritairement Windows.
  • v1 inclut la navigation dans le Trace Store, l'ouverture/statut de l'interface graphique, la livraison de commandes en direct enfichable et les résumés de chronométrage/compteurs.
  • capture stop est un arrêt au mieux de l'arborescence de processus lancée par le harnais.
  • capture snapshot est un instantané au mieux du système de fichiers de la trace active.
  • Les tests de régression découvrent automatiquement l'exemple example_trace.decomp.utrace d'UE lorsqu'il est présent ; la trace binaire n'est pas vendue.

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

>-

Skills associés