/unreal-dev:unreal-editor-pythonfrom unreal-dev
Runs Unreal Editor Python scripts headlessly via UnrealEditor-Cmd. Handles binary discovery, flags, timeouts, sentinel-based verdicts, and log parsing for asset operations.
Ships in unreal-dev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Most editor work an agent needs (create, inspect, import, save assets) runs as a Python script in an editor process with no window, bounded by a wall clock and judged by what the script wrote: a JSON file for the data, one sentinel line for the verdict, the log for the errors. An exit code of 0 alone proves nothing.
| The situation | Read |
|---|---|
| Run a Python script headless, get its result back | Run one script, reference/headless-runs.md, scripts/editor_run.py |
| Which editor binary; the flags of a headless run | reference/headless-runs.md §1, §3 |
unreal.EditorAssetLibrary, AssetData, levels, undo, progress, init_unreal.py | reference/unreal-module.md |
| C++ that runs in the editor binary: a commandlet | reference/commandlets.md, templates/RouteAuditCommandlet.h |
| A script to start from | templates/courier_asset_report.py |
| Reading the run's log: the first error, the blocks | unreal-config-logs |
| Importing meshes and textures by script | unreal-asset-import |
| IK Rigs and retargeting by script | unreal-rigged-character |
| Automation tests and their report | unreal-automation-tests |
| A live editor is open with an MCP server | unreal-mcp |
export UE_ROOT=/path/to/the/engine
python3 scripts/editor_run.py which
python3 scripts/editor_run.py python --project CourierRun/CourierRun.uproject \
--script CourierRun/Content/Python/courier_asset_report.py --out report.json \
--env COURIER_ROOT=/Game/CourierRun/Props
editor: <UE_ROOT>/Engine/Binaries/Win64/UnrealEditor-Cmd.exe (from UE_ROOT)
command: <editor> <project>/CourierRun.uproject -run=pythonscript -script=<project>/Content/Python/courier_asset_report.py -unattended -nullrhi -nosplash -stdout -FullStdOutLogOutput -ABSLOG=<run>/editor.log
log: <run>/editor.log
judged: <run>/editor.log
sentinel: line <n> UNREAL_DEV_DONE courier_asset_report assets=2
out: report.json
editor_run: PASS exit=0 wall=<s>s fatal=0 errors=0 warnings=0 sentinel=DONE
The runner finds the binary under --engine or UE_ROOT (never a guessed path), adds the
headless flags and -ABSLOG=<file>, sets UNREAL_DEV_OUT to the JSON file and each --env
pair, runs under --timeout (default 1800 s), ends the whole process group on timeout, and
judges the log with the marker block unreal-config-logs uses.
| Exit | Verdict | Meaning |
|---|---|---|
| 0 | PASS | the expected exit code, no Fatal or Error line, UNREAL_DEV_DONE, a valid JSON file |
| 2 | FAIL | a Fatal or Error line, UNREAL_DEV_FAIL, another exit code, a sentinel without its JSON file |
| 3 | UNVERIFIED | no binary, a timeout, no output, no sentinel, --dry-run |
| 1 | refused / usage | no .uproject, no script, a bad flag |
| Flag | Effect |
|---|---|
--engine PATH / --editor PATH | the engine root (default $UE_ROOT) / one explicit binary |
--script FILE | the editor Python script; --script-arg A adds an argument after its name |
--full-editor | -ExecutePythonScript= (after the startup level loads) instead of the commandlet |
--out FILE, --env KEY=VALUE | the JSON result (UNREAL_DEV_OUT) and the inputs |
--timeout S, --expect N | the wall clock; the exit code a pass needs |
--log FILE | where -ABSLOG points, removed before launch (default: the run folder, kept after) |
--fail-on-warning, --echo, --dry-run | warnings fail; print the log; print the command only |
run takes any editor arguments after -- (-ExecCmds="...;Quit", or an engine commandlet such as
-run=cook) with the same bound and verdict; --sentinel requires UNREAL_DEV_DONE there.
"$UE_ROOT/Engine/Binaries/Linux/UnrealEditor" "$PWD/CourierRun/CourierRun.uproject" \
-run=pythonscript -script="$PWD/CourierRun/Content/Python/courier_asset_report.py" \
-unattended -nullrhi -nosplash -stdout -FullStdOutLogOutput -ABSLOG="$PWD/run.log"
Then, every time:
-run=pythonscript -script= loads no level: load one with
LevelEditorSubsystem.load_level first. -ExecutePythonScript= runs after the startup level
loads. The editor shuts down after the script in both.timeout command.unreal.log("UNREAL_DEV_DONE <tool> <summary>"), or
UNREAL_DEV_FAIL <tool> <reason> from an except block.Log verbosity lines reach only the file.templates/courier_asset_report.py is the shape: read inputs from the environment, check
preconditions and fail with a reason (UNREAL_DEV_FAIL courier_asset_report no content folder ...),
do the work, write the JSON to UNREAL_DEV_OUT, log the sentinel, and wrap it all so an exception
still ends in a UNREAL_DEV_FAIL line. Look every unreal. member up for the engine in use
(unreal-project → reference/api-lookup.md).
init_unreal.py small. It runs at every start, headless runs included.--timeout for a big project; never read a killed run as clean.reference/commandlets.md).reference/commandlets.md (opens in a new tab)reference/headless-runs.md (opens in a new tab)reference/unreal-module.md (opens in a new tab)scripts/editor_run.py (opens in a new tab)templates/RouteAuditCommandlet.cpp (opens in a new tab)templates/RouteAuditCommandlet.h (opens in a new tab)templates/courier_asset_report.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub tipoli5890/game-studio --plugin unreal-dev17 skills in this plugin
/unreal-animationUnreal animation: Animation Blueprint or C++ UAnimInstance, NativeUpdateAnimation, montages, slots, sections, notifies and notify states, root motion./unreal-asset-importImport meshes, textures and animation into Unreal by script: AssetImportTask, Interchange pipelines, glTF and FBX options, static or skeletal mesh, budget check./unreal-automation-testsUnreal automation tests: IMPLEMENT_SIMPLE_AUTOMATION_TEST, Automation Spec, latent commands, Automation RunTest on the command line, the JSON report as verdict./unreal-blueprint-boundarySplit Unreal work between C++ and Blueprint: BlueprintCallable, BlueprintNativeEvent, BlueprintImplementableEvent, exposed properties, data assets, soft references./unreal-compile-loopCompile Unreal C++ from a terminal: target, platform and configuration, UnrealBuildTool and compiler errors, Live Coding or a closed-editor rebuild./unreal-config-logsUnreal config and logs: Default*.ini layering, [/Script/...] sections, console variables, UE_LOG categories and verbosity, Saved/Logs, Saved/Crashes.