agentleFS
alvarlaignaalvarlaigna/agent-skills/skills/unreal-engine/SKILL.md

unreal-engine

Skill1 starsChanged 5 months agoMITView on GitHub

Builds, debugs, tests, and ships Unreal Engine 5 games with a coding agent that drives the editor through Unreal MCP, editor Python, and the command line. Use for UE5 C++ gameplay code, UCLASS/UPROPERTY reflection, Blueprint and UMG work, levels and actors, asset imports, Live Coding versus full rebuilds, UnrealBuildTool and UAT packaging, cook errors, Windows and web (Wasm) builds, character animation (AnimGen, motion matching, retargeting), UE 5.8 and 5.9 features (Sandboxes, PCG, in-editor agents, Blueprints as text), automation tests, PIE and self-play testing, multi-agent setups on one project, and game jams. Complements Epic's unreal-mcp skill, which covers MCP tool discovery.

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the project's AGENTS.md / CLAUDE.md.

    line 30
  2. Very specific:

    Read the clock (date / Get-Date) before writing any time into a log.

    line 37
  3. Distinctive:

    Every touched asset is saved and the change is visible in git status.

    line 76
  4. Very specific:

    Run these; do not read their source unless debugging the skill.

    line 107

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Unreal Engine

An operating model for agent-driven Unreal work: which channel to use for what, the rules that stop work from being lost, how to build and ship, and how to prove a change works. Tool discovery over MCP (list_toolsets, describe_toolsets, describe_tools, call_tool) belongs to Epic's unreal-mcp skill; use it when installed. This skill does not repeat it.

Pick the channel

NeedChannel
Editor state: actors, assets, Blueprints, materials, widgets, PIE, settingsUnreal MCP, one call at a time, read before write
Five or more similar edits, imports, a level layoutAn editor Python script in the repo (scripts/editor/*.py), re-runnable, run through MCP or headless
Gameplay rules and systemsC++. Blueprint and UMG assets stay thin subclasses that hold tuning and asset references
Build, package, run tests, headless Pythonscripts/ue.py (wraps UnrealBuildTool, UAT and UnrealEditor-Cmd)
See the editor or the gameMCP viewport capture, scripts/capture_window.ps1, or the game's own screenshot mode
Feel, sound, taste, "does this read"A human. Ask for a specific check and record the answer

Text beats graphs: C++ over Blueprint graphs, Material Custom nodes over large node graphs, data files over hand-placed values. Text is cheaper to write, diff, review, and rebuild from nothing.

Start of every session

  1. Read the project's AGENTS.md / CLAUDE.md. Run git pull --rebase and git status.
  2. python scripts/ue.py env --project <dir>: engine root, .uproject, whether an editor is running.
  3. python scripts/check_log.py --project <dir>: any Can't find class descriptor means the editor runs a stale game module. Save nothing from that editor; rebuild first.
  4. Confirm which editor answers MCP before changing anything (the instance metadata in the initialize result names the project and process). Keep the exact tool names and arguments that worked in docs/MCP_TOOLS.md; it saves the search next session.
  5. Read the clock (date / Get-Date) before writing any time into a log. Never estimate it.

Rules that prevent lost work

  1. Save, then prove it saved. MCP graph tools compile a Blueprint but do not save it. A Python transform change on an actor in a One File Per Actor level does not always mark its external package dirty, so "save all" skips it and only PIE (which uses memory) looks right. Call actor.modify() before the change, save dirty packages, then confirm the file changed on disk (git status, mtime). See the editor loop.
  2. Reflection changes need a closed editor. New or changed UCLASS, USTRUCT, UPROPERTY, UFUNCTION, new files, or Build.cs edits: save all, close the editor, ue.py build, reopen, recheck the log. Live Coding is for function bodies only. Batch reflection changes so one restart covers them.
  3. Builds refuse to run beside a live game module. "Unable to build while Live Coding is active" comes from any running editor or game of the project. Close it (and its Live Coding console) before building or packaging.
  4. One writer per editor. A second agent gets its own worktree, its own editor, its own MCP port. Two agents on one editor need an explicit handoff. See multi-agent.
  5. Never edit .uasset or .umap files on disk, and never commit a binary asset that the editor held locked during a pull: restore it from HEAD after the editor closes.
  6. Do not delete and recreate a loaded asset under the same name. It leaves broken references and can crash the editor and the game. Create under a new name, or delete with the editor closed.
  7. No modal dialogs mid-session. A setting that asks "restart now?" blocks the editor's game thread and every MCP call behind it. Set such prerequisites in .ini files with the editor closed.
  8. Package a test build on day one, then at every milestone. Cook-only failures (constructor side effects, missing scan rules, stale references the editor masks in memory) never show in PIE.
  9. Trust the screen over names. Enum values, asset names and comments lie; a screenshot or a log line from the running game does not.
  10. Automated runs start from default settings and save none, and every build has a frame-rate cap. Uncapped frame rates and leftover user settings both produce false results.

Definition of done

A change is done when all of these hold, and the report says which ones were not checked:

  1. It compiles with no new warnings from the project's modules.
  2. Logic changes: the project's automation tests pass (ue.py test --filter <Project>).
  3. Visual changes: a screenshot was read at full size and given a one-line verdict.
  4. Gameplay changes: the changed step ran in PIE or a self-play run, through the real input path.
  5. Every touched asset is saved and the change is visible in git status.
  6. Committed with a short message; one line added to the devlog if the project keeps one.

Reference routing

  • Editor loop: MCP etiquette, editor Python, save-and-verify, the Live Coding versus restart protocol, ports, headless runs, seeing the editor.
  • C++ architecture: module layout, reflection rules, thin Blueprints, subsystems, data-driven design, UI from C++, logging, automation tests.
  • Content pipeline: folders and naming, imports (textures, audio, meshes), DataTables, redirectors, cook rules, dependency closure, external actors, licences.
  • Build and ship: UBT and UAT commands, Shipping builds, size limits, cook-only failures, verifying the artifact, the web (Wasm) target.
  • Animation: choosing between state machines, motion matching and AnimGen; AnimGen training, tuning and limits; retargeting; procedural layers; measuring motion.
  • Testing: the testing ladder, self-play modes, shot runs, real input, measuring performance, human playtests.
  • Multi-agent: ownership, worktrees, shared hub files, reviewers, machine locks, when to stop parallel work.
  • Jam production: pre-jam proof, gates, cut ladder, devlog, submission checklist.
  • Ecosystem: built-in plugins and open-source plugins worth knowing, with caveats.
  • Modern engine: what UE 5.8 and 5.9 changed for agents: MCP and execute_python rules, server instructions, in-engine skills, the Assistant panel, Blueprints as text, Sandboxes, PCG with an agent, rendering and world-building choices, cooked-build MCP.
  • In-game AI: language-model characters and generated speech inside the game: the rules engine owns the facts, the model only acts.

Scripts

Run these; do not read their source unless debugging the skill. Each prints --help.

  • scripts/ue.py env|build|package|test|python|running: engine discovery and UBT/UAT/commandlet wrappers. Refuses to build or package while an editor of the project runs.
    • python scripts/ue.py build --project ./MyGame
    • python scripts/ue.py package --project ./MyGame --platform Win64 --config Shipping --out ./Build
    • python scripts/ue.py test --project ./MyGame --filter MyGame
    • python scripts/ue.py python --project ./MyGame --script scripts/editor/fix_spawn.py
  • scripts/check_log.py: scans the newest editor, cook or UAT log for known blockers and prints what each one means. Exit code 1 when a blocker is found.
  • scripts/audit_source_assets.py: checks source art and audio before import: non-power-of-two textures, clipped or silent WAVs, loop seams, stereo music, oversized files.
  • scripts/init_agent_files.py: writes AGENTS.md, CLAUDE.md, .gitignore and .gitattributes (Git LFS) into a UE project from templates/. Refuses to overwrite. --install-skill also copies this skill into <Project>/Skills/ so agents connected to the editor (including the in-editor Assistant) can load it.
  • scripts/capture_window.ps1 (Windows): screenshot of the editor or game window, even when covered, for the agent to read.
  • scripts/editor/dependency_closure.py (runs inside the editor): lists every package a map pulls into the cook that lives outside the allowed content roots.
  • scripts/editor/save_and_verify.py (runs inside the editor): saves dirty packages and reports anything still dirty, including external actor packages.

Gotchas

  • Agent toolset plugins enable GameFeatures, and the cook then fails on a missing scan rule for GameFeatureData. Add the scan rule or keep the toolsets editor-only. See build and ship.
  • A component that renders (particles, lights, meshes) placed on the GameMode never shows: the GameMode actor is hidden in game. Put visuals on a world actor.
  • A variable added to a Blueprint after its actor was placed may read 0 on the placed instance rather than the class default. Check the instance, not the class.
  • In UE 5.9 hidden bones stop animating: meshes attached to a hidden head or hand bone jump every other frame. Call SetAlwaysAnimateHiddenBones(true). Stills never show it; compare frames.
  • Overlay materials do not draw on Nanite meshes. Use custom depth and stencil for outlines.
  • A material used by Niagara mesh particles needs its "Used with Niagara Mesh Particles" flag, or it renders as the default material.
  • Canvas text in a packaged build needs a real UFont asset; a font built in memory from TTF files draws nothing, with no error.
  • Imported models that are a few centimetres long were authored in other units; check scale on import. Mirroring an axis in a converter flips triangle winding and makes the mesh look hollow.
  • Non-power-of-two textures get no mips and do not stream. Fix them in the source or import with power-of-two padding or stretch.
  • Looping audio needs the looping flag on the imported asset. Browsers keep audio muted until the first click or key press.
  • The replay system records at a low rate by default (demo.RecordHz), and physics actors jitter on playback. Test a replay-based feature with real content on day one.
  • MCP import tools default to bSave = false and bReplaceExisting = false. Pass both, or the import exists only in memory.
  • The Blueprint graph text round trip (read_graph_dsl then write_graph_dsl) loses wiring for multi-output nodes and merged branches in 5.8. Inspect with it; edit with create_node and connect_pins; compile and read back.
  • MCP tool results can be bulleted text rather than JSON. Parse defensively and test the parser.
  • The default MCP port (8000) collides with common dev servers. Give each editor its own port.
  • Anything an agent session launches dies with that session. Start long-lived editors outside it.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.