agentleFS
NAJEMWEHBENAJEMWEHBE/unreal-ai-connection/skills/driving-unreal/SKILL.md

driving-unreal

Skill9 starsChanged 28 days agoMITView on GitHub

Use when driving an Unreal Engine editor through the unreal-ai-connection MCP tools: building a level or placing actors, authoring materials, lighting, rebuilding a scene from a reference photo, sequencer shots, viewport or off-screen renders, compiling or auditing Blueprints, or asset hygiene (move, rename, delete, fix up redirectors). Covers which tools to chain, the verification checkpoints and the UE traps that silently no-op or corrupt state.

The file

We split this skill into the rules it gives an agent

6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After any structural step (placement, material apply, lighting), capture and look before adding detail.

    line 49
  2. Very specific:

    Async events: never block the game thread: Use bridge-side waits, not editor sleeps.

    line 52
  3. Very specific:

    If a response has dropped: true, the buffer overflowed — unsubscribe and re-register.

    line 55
  4. Very specific:

    All of the above take continue_on_error (default true.

    line 63
  5. Very specific:

    Read back and verify after mutating assets: After create/duplicate/move/rename, call inspect_asset / inspect_material_instance, and use …

    line 70
  6. Very specific:

    execute_unreal_python is the escape hatch: When a typed tool genuinely can't express something (e.g.

    line 78

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “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

Driving Unreal Engine via the unreal-ai-connection MCP tools

This skill is the know-how layer for the unreal-ai-connection plugin. The plugin exposes 150+ UE editor-automation tools; this file tells you how to operate them — the chaining order, the verification checkpoints, and the failure modes. Deep step-by-step recipes and the full UE-quirk table live in reference.md; read it when executing a specific workflow.

Your client shows the tools under a server prefix (for example mcp__unreal-ai-connection__<name>; a plugin install can add its own prefix). Below, names are written bare.

Before you touch any tool

  1. Confirm the bridge is live. The UE plugin binds 127.0.0.1:18888. A cold editor launch takes ~2 minutes to bind; warm is seconds. Call list_tools first: it returns every callable tool (its source map tags each native, live from the editor, or bridge), so an answer means you are connected. A tool missing from that list doesn't exist; trust it over any doc. An error with error_code: ue_busy_timeout means the editor is running but still working: wait and check the result instead of re-sending a mutating call.
  2. Establish a clean baseline. For anything that places actors, plan an idempotent re-run: prefix your actor labels (e.g. Test_*) and start the workflow by deleting that prefix via find_actors_by_class + delete_actor, so repeated attempts don't pile up duplicates.

Cross-cutting operating patterns (apply to every workflow)

These rules matter more than any single recipe. Internalize them.

  • Actor targeting is hybrid. Actor-targeting tools accept either a display label or an FName. Label is tried first. If a label is ambiguous you get an ambiguous_actor error listing candidate FNames — retry with a specific FName. Don't guess; read the candidates back.
  • Verify visually, and pick the right capture tool. Three ways to capture, with different trade-offs:
    • render_camera_to_png — off-screen render to a render target. Deterministic; use this for headless/automated verification. Provide an absolute output path whose parent exists.
    • get_viewport_screenshot / take_high_res_screenshot — capture the active viewport. Can return a frozen frame if the editor window is backgrounded (the viewport stops pumping render frames). Keep the editor foreground if you rely on these.
    • screenshot_actor — convenience wrapper that frames and renders a single actor. After any structural step (placement, material apply, lighting), capture and look before adding detail. Don't build blind.
  • Async events: never block the game thread. Use bridge-side waits, not editor sleeps. Pattern: register_subscription → poll with poll_events / poll_subscription, or use wait_for_events to wrap the polling loop. The sequence cursor is inclusive (return events with seq >= since). If a response has dropped: true, the buffer overflowed — unsubscribe and re-register. (There is no start_event_subscription tool; the real entry point is register_subscription.)
  • Bulk ops: the input differs by family; check every entry's result.
    • Asset lists take paths: bulk_delete_assets, bulk_inspect_assets, bulk_compile_blueprints, bulk_move_assets (plus dest_folder). bulk_fix_redirectors takes folders.
    • Per-entry instructions: bulk_rename_assets takes renames ({path, new_name}), bulk_duplicate_assets takes duplicates, bulk_set_actor_property takes assignments.
    • All of the above take continue_on_error (default true; false stops at the first failure).
    • bulk_set_console_variables takes assignments with rollback_on_error (default true: the first failure stops the run and restores every value already set).
    • Actor batches (bulk_focus_actors, bulk_screenshot_actors) take names. Each returns per-entry results with their own ok: a top-level answer doesn't mean every entry succeeded. Asset paths with a .. segment or a NUL byte are rejected before anything runs.
  • Read back and verify after mutating assets. After create/duplicate/move/rename, call inspect_asset / inspect_material_instance, and use compare_assets after batch renames, to catch silent reference loss before continuing.
  • Persist before any restart. Spawned actors and edits are unsaved and revert on editor restart. Run save_dirty_assets before pausing, restarting, or when verification depends on state surviving.
  • execute_unreal_python is the escape hatch. When a typed tool genuinely can't express something (e.g. non-transform sequencer channels), drop to execute_unreal_python. Note: set_actor_property already accepts JSON-array values for TArray/TSet props (e.g. OverrideMaterials), so those need no fallback. To get a result back, emit a UUID-tagged marker via unreal.log("__UCMCP__<uuid>__<json>__END__") and read it with get_log_lines. Two struct traps when building Python: unreal.Rotator positional args are (roll, pitch, yaw) and unreal.Color is BGRA — never construct positionally; build an empty struct and assign by property name (r = unreal.Rotator(); r.pitch = ...; r.yaw = ...; r.roll = ...).

Workflow index (full recipes in reference.md)

WorkflowMaturityUse it to
Build-a-levelPROVENConstruct a scene from primitives + materials + lighting + camera
Material-instance customizationPROVENCreate tinted/variant material instances and apply them
Asset hygieneMATUREFind/move/rename/delete assets safely; fix up redirectors
Round-trip authoringPROVENAuthor → configure → verify → compile → save an asset safely
Photo → Unreal sceneFLAGSHIPReconstruct a faithful blockout + atmosphere from a reference image
Sequencer shotEXPERIMENTALScaffold a Level Sequence; keyframe via execute_unreal_python
Widget / UMG authoringMATUREBuild/mutate a WidgetBlueprint or EUW tree; set properties; compile once
PIE validation loopPROVENStart/observe/stop a Play-In-Editor session to validate live behavior
Component authoringPROVENAttach + configure a component on an existing actor
Console variable managementPROVENDiscover, read, write, and restore CVars; run one-off console commands
Blender → Unreal assetPROVENIngest a Blender-authored mesh (free) via import_mesh; verify, place, light, render

Open reference.md for the ordered tool sequences, verification checkpoints, and the UE 5.x gotcha table before running any of these.

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.