/ushell:ushellfrom ushell
Drives Unreal Engine build infrastructure via ushell CLI (UBT, UAT, editor, Perforce). Handles installed-build fallback when BuildUAT.bat is stripped.
Ships in ushell. 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.
ushell is Epic's command-line interface for Unreal Engine, shipped at <branch>/Engine/Extras/ushell/. It wraps UBT, UAT, the editor, the runtime, and Perforce behind a single .command arg arg --opts interface with tab completion, history, and session-scoped project state.
If Engine/Extras/ushell/ushell.bat (or .sh) exists for the active .uproject, drive build infrastructure through ushell. Do not invoke RunUAT.bat, UnrealBuildTool.exe, GenerateProjectFiles.bat, Build.bat, or raw p4 directly. There is no silent fallback — if a need genuinely isn't covered, stop and report.
Installed-engine carve-out. If the engine is an installed build (<branch>/Engine/Build/InstalledBuild.txt is present), the .uat family is non-functional: ushell's channels/unreal/core/cmds/uat.py:108 unconditionally calls Engine/Build/BatchFiles/BuildUAT.bat, which installed engines strip (UAT ships precompiled). On installed engines, fall back to <branch>\Engine\Build\BatchFiles\RunUAT.bat directly for .uat *, plus the UAT-wrappers .stage, .deploy, and .perf test *. This is the only permitted direct-RunUAT invocation under this rule. Verbs that don't go through UAT — .info, .project, .sln *, .build *, .run * (including .run commandlet), .cook * (including .cook odsc), .p4 *, .zen *, .ddc *, .kill * — work normally because they hit UBT or stand-alone Python. See reference/troubleshooting.md (.uat * fails with [WinError 2]) and reference/workflows.md DAG #13b for the canonical workaround.
Every ushell command accepts --help. Run it before guessing flags.
Don't invent a command. If .foo isn't in the Quick Reference below or reference/commands.md, look it up. Don't reach for a half-remembered RunUAT flag instead.
Before doing anything else, locate ushell:
<branch>/Engine/Extras/ushell/ushell.bat<branch>/Engine/Extras/ushell/ushell.shIf neither exists for the active .uproject's engine, stop and tell the user. This is an older or partial branch; ushell verbs will not exist. Do not silently fall back to raw UBT/UAT.
Also check <branch>/Engine/Build/InstalledBuild.txt. If present, the engine is an installed build (Epic Games Launcher install, binary distribution, or source-style build marked installed). UBT itself reveals this state during .sln generate with Program targets are not currently supported from this engine distribution and similar messages. In that state, ushell's .uat family — and anything that wraps it (.stage, .deploy, .perf test) — is non-functional; use the workarounds in iron rule #1's carve-out. This is distinct from the no-ushell-at-all case: here ushell IS installed and most verbs work fine, just not the UAT-dependent ones.
ushell normally opens an interactive cmd.exe window. To drive it from a Bash/PowerShell session without that, use one of these two forms.
Single command:
cmd.exe /d /s /c "call <branch>\Engine\Extras\ushell\ushell.bat --project=<uproject> && .info"
Multiple commands — write a temp .bat:
@echo off
call <branch>\Engine\Extras\ushell\ushell.bat --project=<uproject>
.p4 sync --all
.build editor
Exit codes:
| Code | Meaning |
|---|---|
0 | Success |
1 | Failure |
126 | Argument parse error (treat as your bug) |
127 | Help printed (the user asked for help; not a failure) |
80 / 90 | Reserved for the .p4 bisect script protocol (bad / failed-build) |
Suppress the Cmd.summarise result/time banner with --nosummary on commands decorated with @summarise: .build *, .p4 sync, .p4 mergedown, .p4 switch (and any future verb whose docstring or source declares it). Adding --nosummary to commands that don't have it (.info, .run *, .cook *, .sln *, .kill, .notify, .uat, .p4 cherrypick, .p4 clean, etc.) produces ERROR: Unknown argument(s) 'nosummary' and exits non-zero. When in doubt, omit it.
The active .uproject lives in a session noticeboard keyed by $FLOW_SID. Every fresh invocation is a new session ID, so always pass --project=<path> to ushell.bat, or run .project <path> as the first command. Do NOT cd inside a cmd /d /k ushell.bat chain — ushell deliberately unsets PWD.
Full details and PowerShell module integration: reference/invocation.md.
When the user states a goal (e.g. "an Insights trace at CL X on PS5"), do NOT jump to a single command. Walk backwards:
.info, file checks, .zen snapshot list, etc.).Each reference/commands.md entry declares Preconditions and Produces. reference/workflows.md provides full goal-to-plan DAGs. For anything passed after -- <UE args> (map URL, #Portal spawn selector, -trace=<channels>, -ExecCmds=, LLM/memory switches, commandlet -run=<Name> recipes, etc.), source the actual args from reference/unreal-args.md — do not invent UE switches.
Skip-policy: skip a precondition only when verifiable. Checks that count as verification:
.target receipt file exists at Binaries/<Plat>/<Name>[-<Plat>-<Variant>].target.Saved/Cooked/<cook_form>/ exists and is non-empty..zen snapshot list <runtime> <platform> returns a hit at the requested CL.Engine/Build/Build.version Changelist matches the target CL.If the check is unclear, re-run the precondition.
Failure-policy: if a step fails or a precondition is truly unreachable, stop, report the verbatim error, suggest the next action, hand back to the user. No silent fallback to raw tools, no destructive auto-recovery (don't delete Saved/, don't edit .uproject, don't p4 reset without consent).
| Want to… | Command |
|---|---|
| See engine/project/platform state | .info |
| List branch projects | .info projects |
| Switch active project | .project <name|path|cwd|auto> |
| Generate VS solution | .sln generate |
| Open existing solution | .sln open |
| Open a tiny solution (fzf-only) | .sln open tiny |
| Build editor | .build editor [variant] |
| Build runtime | .build {game|client|server} <platform> |
| Build a named program | .build program <Name> |
| Clean before build | .build clean editor (etc.) |
| Single file/module build | .build editor <Module/File.cpp> |
| Build XML config (BuildConfiguration.xml) | .build xml [edit|set|clear] |
| Generate compile_commands.json | .build misc clangdb |
| Run editor | .run editor -- <args> |
| Run a commandlet | .run commandlet <Name> -- <args> |
| Run a program / named target | .run program <Name> / .run target <Name> |
| Run cooked runtime | .run {game|client|server} <platform> -- <args> |
| Run runtime with Insights trace | .run game <P> --trace=<channels> -- <args> |
| Cook | .cook {game|client|server} <platform> |
| Cook iteratively | .cook game <P> --iterate |
| ODSC shader server | .cook odsc {game|client|all} <platform> |
| Stage (auto Zen/pak) | .stage <target> <platform> auto |
| Stage with Zen storage | .stage <target> <platform> zen |
| Stage with pak files | .stage <target> <platform> pak |
| Deploy already-staged | .deploy <target> <platform> |
| Run UAT directly | .uat <Command> -- <uat-args> |
| BuildCookRun via UAT | .uat BuildCookRun -- <bcr-args> (reference/uat.md §2) |
| Package a plugin | .uat BuildPlugin -- -Plugin=<path> -Package=<out> -TargetPlatforms=Win64+Linux -Rocket -StrictIncludes |
| Run a BuildGraph script | .uat BuildGraph -- -script=<path.xml> -target=<Node> [-set:Foo=Bar] |
| List BuildGraph nodes | .uat BuildGraph -- -script=<path.xml> -listonly |
| Run Gauntlet tests | .uat RunUnreal -- -test=<TestName> -build=<staged|editor> -platform=<P> |
| CI-friendly UAT baseline | append -buildmachine -CrashForUAT -nop4 -NoCodeSign -unattended -nullrhi -utf8output -stdlog |
| Kill running UE process | .kill {editor|server|client|<platform>} |
| Sync from Perforce | .p4 sync [<cl>] |
| Filter sync (edit .p4sync.txt) | .p4 sync edit |
| Cherrypick CLs | .p4 cherrypick <cl> [...] |
| Bisect a regression | .p4 bisect <good> <bad> -- <script> |
| Mergedown from parent stream | .p4 mergedown |
| Switch stream | .p4 switch <stream> / .p4 switch list |
| List CL authors | .p4 authors <path> |
| Who-broke-this-line | .p4 who <path> [<line>] |
| Open P4V on this clientspec | .p4 v |
| Create a new workspace | .p4 workspace <dir> [<depotpath>] |
| Clean intermediate/Saved/ | .p4 clean [--dryrun] |
| Authorize cloud DDC | .ddc auth [<service>] |
| Start/stop ZenServer | .zen start / .zen stop |
| ZenServer status / version | .zen status / .zen version |
| Open Zen dashboard GUI | .zen dashboard |
| Create Zen workspace / share | .zen createworkspace <dir> / .zen createshare <dir> |
| Import a Zen oplog snapshot | .zen importsnapshot <descriptor> [<index>] |
| Find a cooked-data snapshot for CL | .zen snapshot find <runtime> <platform> |
| Download + import a snapshot | .zen snapshot get <runtime> <platform> [<cl>] |
| List available snapshots | .zen snapshot list <runtime> <platform> |
| Launch Insights | .perf insights [<trace>|latest] |
| Run automated perf test | .perf test {default|sequence|replay|material|camera} <platform> |
| Download a cloud build | .getbuild {packaged|staged} <platform> |
| Flash console for attention | .notify |
| Gather standalone ushell | .ushell gather <destdir> |
.zen * commands talk to the standalone ZenServer process and the cloud/fileshare snapshot index. They are not a substitute for .stage. Staging still goes through UAT BuildCookRun, but style=zen (or style=auto driven by Saved/Cooked/<form>/ue.projectstore) tells UAT to package as a Zen oplog rather than pak/utoc. .zen snapshot get is the fast path for "pull a pre-cooked dataset for this CL" — it launches ZenServer if needed and imports the oplog. Always check .zen status before assuming Zen is running.
reference/commands.mdreference/workflows.mdreference/channel-authoring.mdreference/invocation.mdreference/troubleshooting.md#Portal spawn selector, trace channels, -ExecCmds, LLM/memory tracking, etc.) → reference/unreal-args.mdBuildCookRun recipes, BuildPlugin, RunUnreal for tests, full ProjectParams flag groups, CI-friendly invocations, packaging/signing — → reference/uat.md-script=, -target=, -set:, idiomatic pipelines) → reference/buildgraph.mdRunUAT.bat, UnrealBuildTool.exe, GenerateProjectFiles.bat, Build.bat, or raw p4 when ushell is present. Use .uat, .build, .sln generate, .p4 * instead. Single exception: on installed engines (InstalledBuild.txt present), .uat is broken at the source level — fall back to RunUAT.bat directly. See iron rule #1 carve-out and reference/troubleshooting.md.?StartPoint=<Name> or ?PlayerStartTag=<Name> — does not exist as a UE switch. The spawn selector is the URL #Portal segment: <MapName>#<PortalTag>. The tag must match an APlayerStart's PlayerStartTag property. (Resolved by AGameModeBase::FindPlayerStart_Implementation.) See reference/unreal-args.md §2.-encrypt — use -encryptinifiles plus -signpak/-signpakid= and -cryptokeys=<keychain.json>.-RunAutomationTest= under BCR — fragile (client exits before UAT polls, reports BUILD FAILED on green tests). Use .uat RunUnreal -- -test=UE.TargetAutomation -RunTest="<filter>" (Gauntlet) or .run editor -- -ExecCmds="Automation RunTests <filter>; Quit" -ReportExportPath=<dir> instead..engine <path>, .platform list — invented ushell verbs that don't exist. The full canonical list is in reference/commands.md. Use .info to inspect engine + platforms..foo isn't in the Quick Reference or commands.md, it doesn't exist.-Foo="path with spaces" through plain subprocess argv when extending ushell — use unreal.cmdline.read_ueified(). UE's quoting differs from POSIX/Windows shells; plain argv will mangle it.FLOW_SID yourself, and don't invoke _build/_cook/_uat/_run/_p4 (those are ushell's internal subprocess shims, not user-facing).cd inside a cmd /d /k ushell.bat chain — PWD is unset deliberately by ushell..cook --iterate for shipping builds (community-confirmed stale-asset bugs). Iterative cook is for dev only; always full -cook for release.-stagingdirectory= and -archive -archivedirectory= on the CLI.describe.flow.py, not __init__.py. Channels live under lowercase channels/<name>/ and declare themselves via flow.describe.Channel() + flow.describe.Command().source().invoke() in describe.flow.py. See reference/channel-authoring.md..p4 bisect <good> <bad> -- <script> exists; the script returns 0 (good), 80 (bad), or 90 (failed to build). See commands.md .p4 bisect.reference/buildgraph.md (opens in a new tab)reference/channel-authoring.md (opens in a new tab)reference/commands.md (opens in a new tab)reference/invocation.md (opens in a new tab)reference/troubleshooting.md (opens in a new tab)reference/uat.md (opens in a new tab)reference/unreal-args.md (opens in a new tab)reference/workflows.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
unreal-engine, ushell, build-automation, perforce, game-development
npx claudepluginhub abostrom/ushell-skill --plugin ushellOther plugins' skills for the same job