/unreal-skills:onboardfrom Unreal Harness Skills
Walks through dependency installation, Unreal Engine root detection, and plugin wiring for the Unreal MCP repo. Use when setting up a fresh clone or configuring an existing UE project.
Ships in Unreal Harness Skills. 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.
Get this repo runnable on the user's machine. Onboarding has one dependency phase, two required parts, plus two optional parts:
DEPENDENCIES.md
(same directory as this skill).UNREAL_ENGINE_ROOT.UNREAL_PROJECT_ROOT./icon skill;
AI-generated keycaps for /key-indicator-helper). Offer it once; skippable.video_analyze / pie_analyze) and the visual-judgment skill
(/visual-critique). Offer it once; skippable.If the user has no project yet, use the bootstrap skill instead of Part 2.
Bootstrap scaffolds a fresh C++ project under projects/, enables the recommended
plugins, wires AdditionalPluginDirectories, builds it, and sets
UNREAL_PROJECT_ROOT — i.e. it does Part 2 for a new project. Part 1 (engine
location) is still a prerequisite for it. Run Part 1 here, then hand off to
bootstrap. Use Part 2 below only to wire an existing project.
Related helpers the agent can run once configured: scripts/build-editor,
scripts/launch-editor (-Headless for unattended MCP driving),
scripts/stop-editor, and scripts/install-plugins (fetch non-bundled
third-party plugins). All read the two env vars this skill sets.
Source-of-truth rule (non-negotiable): this repo is the one canonical copy of
the plugin (src/Plugin/UnrealMCP/). Never copy, vendor, or git submodule the
plugin into the user's project, and never create a junction/symlink under their
Plugins/ folder. Wiring is done purely by pointing the project's .uproject at
this repo via AdditionalPluginDirectories. If the user already has a copied or
linked Plugins/UnrealMCP from an older setup, flag it and offer to remove it so
there's exactly one source.
Out of scope: configuring the user's MCP client (that's README.md → "Run the
server"). If asked, point them there and stop.
Goal: the user picks a setup profile; every dependency that profile needs is either
verified present, installed with their consent from a source they chose, or
consciously skipped (with the disabled feature named). The full matrix — what each
dependency is for, its detection command, and per-platform install sources — lives in
DEPENDENCIES.md next to this file. Read it before running this part.
The tiers, in one line each:
bun install at the repo root.uv (provides Python/pytest ephemerally for tests/run.*)./visual-critique) · OpenAI
key + Python art packages (/icon) · Python + Pillow/numpy (/see, /texture) ·
GIMP 3 + a client-configured GIMP MCP server (/gimp-import) · Docker + Neo4j 5
(/neo4j) · Pulumi + AWS CLI (deploy/hosting).Run the detection commands from DEPENDENCIES.md for everything — they're cheap, so
survey all tiers regardless of profile, in parallel. Summarize present/missing in a
short table before asking anything.
AskUserQuestion: Minimal (Recommended to start) / Full / Custom. If
Custom, follow up with a multi-select over the Tier 2/3 features (tests, video+critique,
AI art, image tooling, GIMP pipeline, Neo4j graphs, deploy toolchain). Tier 1 is in
every profile — it is not offered as a choice, only sequenced.
For what the profile needs and the survey didn't find:
bun install): run
them after one batch confirmation, then re-verify each with its detection command.Note anything skipped and the feature that stays off (this feeds the final summary in
step 10). /onboard can be re-run any time to add a tier — nothing here is one-shot.
Goal: a validated absolute path to the engine root (the directory containing
Engine/), persisted as UNREAL_ENGINE_ROOT. That variable is what the MCP
server (editor_build_game_target) and the test harness (tests/harness/config.py)
read to find the engine.
Run the discovery helper — it scans the registry, conventional install locations, and sibling projects, then prints ranked candidates as JSON. Read-only.
pwsh -NoProfile -File scripts/find-engine.ps1
Each candidate has: path, version, kind (source = built from GitHub
source; installed = Epic Games Launcher build), hasEditor (is the editor
binary actually compiled), and sources (how it was found). Pre-ranked best-first.
On macOS/Linux there is no PowerShell discovery script yet — fall back to step 3 and validate with step 4.
source build with hasEditor: true. This project is developed
against an Unreal Engine source build, so a source build is the right default
when both kinds are present.UNREAL_ENGINE_ROOT is already set and matches a discovered candidate
(sources includes env), say it's already configured and confirm the path is
what they want — don't blindly re-write it.AskUserQuestion. Lead with the recommended source build.Always show the path you intend to use and get explicit confirmation before recording.
Ask the user where Unreal Engine is installed (the folder containing Engine/).
Typical spots: a GitHub source build under something like C:\UE5\UnrealEngine-*,
or a Launcher install under C:\Program Files\Epic Games\UE_5.x. Then validate
(step 4). If they don't have the engine, tell them they need to install or build
it first — that's a prerequisite, not something onboarding does.
Whatever path you land on, confirm:
<path>/Engine/ exists.<path>/Engine/Build/Build.version exists (read it to confirm the version).<path>/Engine/Binaries/Win64/UnrealEditor.exe exists — if not, the
engine isn't built yet; flag this, since the server can locate it but can't
build a target against an uncompiled engine.If the path fails the first two checks, do not record it — go back to step 3.
Persist UNREAL_ENGINE_ROOT so future shells (and the run/test scripts) see it.
Windows — set it for both the current session and persistently:
$env:UNREAL_ENGINE_ROOT = '<confirmed-path>' # this session
setx UNREAL_ENGINE_ROOT '<confirmed-path>' # new shells (takes effect next launch)
macOS/Linux — set it for the session and add the export to their shell
profile (~/.bashrc, ~/.zshrc, etc.):
export UNREAL_ENGINE_ROOT='<confirmed-path>'
setx only affects newly-launched shells, so a running run-server process must
be restarted to pick it up. (Background/non-interactive shells spawned before
the setx won't see it either — pass the value inline when invoking build scripts
from such a shell rather than relying on the persisted var.)
EngineAssociation)The way the engine is registered — not just its version — decides the
EngineAssociation a .uproject must carry, and a mismatch makes the editor
refuse to open the project ("made for a different engine version"). A source
/ custom build registers a {GUID} = <engine path> under
HKCU\Software\Epic Games\Unreal Engine\Builds; a Launcher install uses the
version string ("5.7"). The bootstrap skill resolves this when it writes the
.uproject (Step 2.1 there) — but note that find-engine.ps1's kind can read
installed even for a registry-GUID build, so the Builds registry key, not the
label, is authoritative. When wiring an existing project (Part 2), check its
EngineAssociation matches the registered identity for UNREAL_ENGINE_ROOT.
Goal: the user's UE project loads the plugin from this repo (no copy), and
UNREAL_PROJECT_ROOT points at that project so the project-coupled server tools
(editor_read_logs, editor_build_game_target) work.
This is the .uproject the user will drive with the MCP.
.uproject file or the directory containing it.projects/<Name>/) or anywhere
external — both are fine.bootstrap skill —
it scaffolds a C++ project, enables the recommended plugins, wires the plugin,
builds it, and sets UNREAL_PROJECT_ROOT, replacing the rest of Part 2. Come
back here only for an existing project.Resolve the project directory (the folder containing the single .uproject) and
confirm it with the user before editing.
The plugin's parent directory in this repo is what AdditionalPluginDirectories
must point at — the parent src/Plugin, not src/Plugin/UnrealMCP (UE scans
subdirectories for .uplugin files).
Get this repo's root reliably and build the path:
$repo = (git rev-parse --show-toplevel) # this repo's root
$pluginDir = Join-Path $repo 'src/Plugin' # the value to register
Choose the form to write into the .uproject:
<repo>/projects/Foo/): write a path
relative to the .uproject, e.g. ../../src/Plugin. This keeps the whole
tree portable if it moves as a unit.<repo>/src/Plugin.Use forward slashes in the JSON (valid and cross-platform); avoid Windows backslashes, which must be escaped in JSON and break on other platforms.
.uprojectRead the .uproject (it's JSON) and merge in two keys without clobbering
anything that's already there:
Plugins — ensure an entry { "Name": "UnrealMCP", "Enabled": true }
exists. If the array already has it, leave it. If the array is missing, create
it.AdditionalPluginDirectories — ensure the plugin path from step 7 is
present. If the array exists, append the path only if it's not already there
(don't duplicate). If missing, create it.Keep the file valid JSON and preserve existing formatting/fields as much as possible. Re-read it after editing to confirm it still parses.
C++ caveat — check and warn, don't auto-fix: the plugin ships C++, so the
host project must itself be a C++ project (a Source/ directory with a module and
a *.Target.cs) for the plugin to compile. If the project has no Source/, tell
the user it's Blueprint-only and the plugin won't build until it has at least one
C++ module — offer to help add a minimal module, but don't silently convert it.
After editing, rebuild so the C++ plugin is compiled in — run
scripts/build-editor.ps1 (it reads UNREAL_ENGINE_ROOT + UNREAL_PROJECT_ROOT;
pass -Project <dir> if the env var isn't set yet), or just open the project in
the editor, which will prompt to rebuild. The plugin then loads directly from this
repo.
Toolchain caveat (Windows): the build needs two pieces that a partial VS install can lack, each failing before any code compiles (so they look like project faults but aren't):
14.40–14.43 and wants 14.44.35207 ("MSVC v143 — v14.44-17.14").
Only-banned → Result: Failed (OtherCompilationError), no compiler output.SwarmInterface — missing → Could not find NetFxSDK install dir … Result: Failed (RulesError).Check: vswhere -latest -property installationPath → VC\Tools\MSVC for toolsets,
and Test-Path "HKLM:\SOFTWARE\Microsoft\Microsoft SDKs\NETFXSDK" for the .NET SDK.
Both ship with VS's "Game development with C++" workload; if either is missing
the user must add it via the Visual Studio Installer (a user action — don't
auto-install it).
UNREAL_PROJECT_ROOTPersist the project directory (the folder containing the .uproject) so the
project-coupled server tools can find it.
Windows:
$env:UNREAL_PROJECT_ROOT = '<project-dir>' # this session
setx UNREAL_PROJECT_ROOT '<project-dir>' # new shells
macOS/Linux:
export UNREAL_PROJECT_ROOT='<project-dir>'
As with the engine var, a running run-server must be restarted to pick it up.
Goal: a stored OpenAI API key so the host-side art-generation skills work. This is
optional and only matters for AI image generation — the /icon skill (generate → import
→ wire UI icons) and AI-generated keycaps for /key-indicator-helper. The editor, the MCP
server, and everything else need nothing here. Skipping this is fine; the user is
re-prompted automatically the first time they actually try to generate art (a PreToolUse
hook gates the generation command — .claude/hooks/openai-cred-gate.py), so you won't nag
them every session.
Ask whether they want to set up AI art generation now (AskUserQuestion): Set up now /
Skip (they can do it later, and will be prompted when they first generate). If a key is
already configured, say so and move on — scripts/openai-key.sh check reports it.
If they want to set it up, get their key and store it without echoing it into the transcript — pipe it straight into the shared helper (the same command the generation-gate hook tells them to run, so the process is identical wherever it's triggered):
printf %s '<their-OpenAI-key>' | scripts/openai-key.sh set
This writes OPENAI_API_KEY to a gitignored .env at the repo root; iconify.py
auto-loads it (python-dotenv) with no shell restart. Prefer having the user run that
command themselves (so the key never transits the assistant) — or, if they'd rather, accept
the key and run it for them. Confirm with scripts/openai-key.sh check (exit 0 = configured).
Don't have a key / don't want AI art? That's a valid choice — skip. Art can always be supplied another way (existing PNGs +
--skip-gen, hand-authored assets); only generation needs the key.
Goal: a stored Google AI Studio (Gemini) API key. Optional and opt-in — one key powers
two features: the server's video analysis tools (video_analyze / pie_analyze — the
server reads GEMINI_API_KEY or GOOGLE_STUDIO_API_KEY and returns feature_disabled
without one; recording itself needs no key) and the visual-judgment skill
(/visual-critique — grade a render against a reference image OR a written spec). The
editor, the rest of the MCP server, and everything else need nothing here. Unlike AI art
there's no offline mode — these fundamentally call the Gemini API — so without a key
they're simply unavailable. Skipping is fine; the user is re-prompted automatically the first time they
actually run one (a PreToolUse hook gates the command — .claude/hooks/gemini-cred-gate.py),
so you won't nag them every session.
Ask whether they want to enable the visual-judgment skills now (AskUserQuestion): Set up
now / Skip (they can do it later, and will be prompted when they first run one). If a key
is already configured, say so and move on — scripts/google-key.sh check reports it.
If they want it, get their key (from https://aistudio.google.com/apikey) and store it without echoing it into the transcript — pipe it straight into the shared helper (the same command the gate hook tells them to run, so the process is identical wherever it's triggered):
printf %s '<their-Google-AI-Studio-key>' | scripts/google-key.sh set
This writes GOOGLE_STUDIO_API_KEY to the gitignored .env at the repo root;
critique.ts picks it up automatically (Bun auto-loads .env, and the script
also walks parent dirs for it) with no shell restart. Prefer having the user run that command
themselves (so the key never transits the assistant) — or, if they'd rather, accept the key
and run it for them. Confirm with scripts/google-key.sh check (exit 0 = configured).
Don't have a key / don't want the visual critics? That's a valid choice — skip. You can always judge a render yourself or have the user eyeball it; only the automated reference/spec scoring needs the key.
Summarize:
/onboard adds it later.UNREAL_ENGINE_ROOT now points at it..uproject was wired, the AdditionalPluginDirectories value
added, and that UNREAL_PROJECT_ROOT now points at the project dir.video_analyze/pie_analyze) and /visual-critique
are unavailable until set, and they'll be prompted automatically the first time they
run the critic.scripts/build-editor to compile,
scripts/launch-editor to open the editor (-Headless for unattended MCP
driving), scripts/stop-editor to shut it down.README.md → "Run the server"), which onboarding deliberately leaves to them.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
unreal-engine, onboarding, setup, dependencies, plugin-wiring
npx claudepluginhub oliver-io/unreal-harness --plugin unreal-skills22 skills in this plugin
/architectWrite or update an architecture document for an Unreal Engine system — a conceptual spec a senior engineer can build from. Use when someone wants to "document this system", "write an architecture doc", "spec a feature before building it", "describe how X works for the team", or "update the docs to match the code". Plan-only and code-free: it researches the live editor, Blueprints, and source, then writes a Design-level document about intent, boundaries, contracts, and invariants — no implementation, no builds, no editor mutation. Works in any UE project, not one studio's house style./automated-testerSet up an automated, agent-observed end-to-end test (or a guarded dev loop) for an Unreal feature in this harness. Use when someone wants to "add a test", "test this feature end-to-end", "verify X works in PIE", "build a verification harness", "guard this feature with a test", or "make a guardrail loop for an agent building X". Opinionated: the engine constructs the scenario via typed C++ primitives, the agent observes the behaviour it controls through a DIFFERENT read primitive, no mocks, headless-first. Encodes docs/TESTING.md./bootstrapCreate a new Unreal Engine project under projects/ wired to this repo's UnrealMCP plugin and pre-configured with the recommended engine built-in plugins (Niagara, Water, GeometryScripting, GAS, StateTree, animation, runtime mesh, etc.), and give the project its own agent-facing CLAUDE.md. Use when someone wants to "bootstrap a project", "make a new UE project", "scaffold a test/sandbox project", get a fresh project to drive with the MCP, or "write a CLAUDE.md for this game". Produces a minimal C++ host project that loads the plugin from this repo (no copy) and builds against the engine at UNREAL_ENGINE_ROOT. Asks the intended architecture (C++-first vs Blueprint-first, single- vs multiplayer) and writes a project CLAUDE.md tuned to the answers; can also adopt an existing project by exploring it and writing a CLAUDE.md that describes it.