/unreal-dev:unreal-compile-loopfrom unreal-dev
Compiles Unreal C++ from the terminal: runs UnrealBuildTool, reads compiler errors, and handles Live Coding or closed-editor rebuilds.
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.
A compile loop an agent can trust runs the engine's build tool from the command line, keeps the whole output, and reads the first real error rather than the last line. The verdict comes from the error lines and the exit code together. A zero exit alone proves nothing.
| The situation | Read |
|---|---|
The build command: target, platform, configuration, -Project=, one module | The build below; reference/build-commands.md §1–2 |
| A failed build: which line matters, what each phase's errors look like | reference/reading-errors.md |
| The editor is open: Live Coding, Hot Reload, or close it and rebuild | Editor open or closed below; reference/live-coding.md |
Project files, deleting Intermediate, BuildConfiguration.xml, a non-unity check | reference/build-commands.md §4–5 |
| A header-tool error on a reflection macro | unreal-cpp-reflection |
| An include or link error: which module, macro or body is missing | unreal-modules-build |
| Cooking, staging, packaging a build | unreal-packaging |
| Running tests after a green build | unreal-automation-tests |
| Editor and game logs, crash folders | unreal-config-logs |
| Finding the engine in use and its folders | unreal-project → reference/engine-discovery.md |
The target triple is <Target> <Platform> <Configuration>. Targets come from the project's
<Name>.Target.cs files: CourierRunEditor for the editor, CourierRun for the game. Platforms are
Win64, Mac and Linux. Configurations are Debug, DebugGame, Development, Test and
Shipping. The Windows form, from the engine root:
Engine\Build\BatchFiles\Build.bat -Target="CourierRunEditor Win64 Development" -Project="C:\Work\CourierRun\CourierRun.uproject"
Add -Module="CourierRun" to build one module. Through the runner, which finds the platform's build
script under the engine root (--engine or $UE_ROOT), prints what it found, applies a wall-clock
timeout, and keeps the log:
python3 scripts/build_run.py run --engine "$UE_ROOT" --target CourierRunEditor --platform Mac \
--configuration Development --project ~/Work/CourierRun/CourierRun.uproject --log-out build.log
python3 scripts/build_run.py run --build-script /path/to/the/build/script --target CourierRun --platform Linux \
--configuration DebugGame --project CourierRun/CourierRun.uproject --module CourierRun --timeout 1800
python3 scripts/build_run.py log build.log # judge a saved log
python3 scripts/build_run.py --selftest
The verdict, the last line: build-run: PASS means exit 0 and no error line. FAIL means an error
line, or a non-zero exit with none. UNVERIFIED means no engine, no build script, a timeout, or no
output. Exit 0, 2, 3, and 1 for usage. Above the verdict come the first errors, each as
ERROR <kind> line <n> (header-tool, include, link, rules, compile, build-tool), and a
HINT naming the skill that owns the first one. The argument form is the Windows script's. On Mac and
Linux, read the platform script's own usage once, or build through RunUAT BuildCookRun -Build
(unreal-packaging → reference/buildcookrun.md).
build_run.py run ... --log-out build.log.ERROR line. The header tool runs before the compiler, so a header-tool error
means nothing compiled yet. Ten errors after one missing include are one error.unreal-modules-build's module_graph.py classify build.log names the
missing module, export macro or function body. Header-tool errors: lint the header with
unreal-cpp-reflection's reflection_lint.py.build-run: PASS, then run the tests.| Change | With the editor open | Editor closed |
|---|---|---|
| A function body | Live Coding (Ctrl+Alt+F11) | |
A constructor default in the .cpp | compiles, but existing objects keep the old value | rebuild, reopen |
| New functions or members, a refactor | Live Coding with reinstancing, and it may crash | preferred |
A reflected header change: a UPROPERTY, UFUNCTION, specifier or new type | rebuild | |
| A new file or module, a Build.cs, Target.cs or descriptor change | rebuild after regenerating project files |
A command-line build of the editor target replaces the module binaries a running editor has loaded.
Close the editor first, and run one build at a time per project. With Live Coding off the editor falls
back to Hot Reload. On Mac and Linux, plan for the closed-editor rebuild. Settings, reinstancing and
crashes: reference/live-coding.md. When an editor MCP server is configured, a Live Coding compile can
go through it (unreal-mcp decides).
Mac. Xcode project files come from right-clicking the .uproject > Generate Xcode
Files (CourierRun.xcodeproj). The build itself does not need them.BuildConfiguration.xml is read from ~/.config/Unreal Engine/UnrealBuildTool/ and the project's
Saved/UnrealBuildTool/.arm64, x86_64 and arm64+x86_64. A universal package is chosen at packaging
time (-architecture= for the automation tool, in unreal-packaging).build_run.py finds the script
by glob, and unreal-project → reference/engine-discovery.md finds the editor. Report the paths found.module_graph.py classify.--timeout for a first build.Intermediate only as a reset:
it costs a full rebuild.unreal-modules-build → reference/link-errors.md: what each include and link error lacks.unreal-cpp-reflection → reference/specifiers.md: header-tool errors on specifiers.unreal-packaging → reference/buildcookrun.md: build, cook and stage in one command.unreal-automation-tests → reference/running-tests.md: the next step after a green build.unreal-config-logs → reference/logging.md: logs after the build.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
17 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.npx claudepluginhub tipoli5890/game-studio --plugin unreal-dev