/unreal-skills:video-critiquefrom Unreal Harness Skills
Records a PIE session of a time-based visual phenomenon (animation, VFX, physics) and judges the MP4 against a written expected behavior using Gemini video understanding. Returns timestamped, severity-rated divergences and a structured verdict.
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.
None: SKILL.md is the whole skill.
A second set of eyes for things that only exist in time — an animation blend, a projectile arc, a UI transition, a Niagara burst, a physics settle. A screenshot cannot judge these; your own frame-by-frame impression of "yeah, it moved right" is exactly the confident-but-wrong self-report this repo bans. This skill records the running game deterministically and hands the MP4 to an external video model that reports timestamped, severity-rated divergences from a stated expectation — or credits a genuine match.
It is the motion sibling of /visual-critique SPEC mode, and it enforces the same standard:
adversarial about the spec, but grounded — every cited divergence must be actually visible at
its cited timestamp; matches are a valid, useful answer. It is a second opinion, not an oracle —
cross-check surprising claims (e.g. by extracting the cited timestamp as a still and looking).
The VERBOTEN rule in CLAUDE.md applies to video doubly: a recording of you play-acting is a longer hallucinated play-test. Before any recording, BOTH of these must hold, or you stop:
The state is arranged, not played. The phenomenon must be triggered by a deterministic,
repeatable stimulus with no spatial navigation: a typed C++ primitive, a console hook
(editor_console_exec), a Blueprint/level construct that fires on PIE begin, a scripted
pie_inject_input_action / pie_send_keystrokes fired as a stimulus at a known time — never
as steering toward a place. The same trigger from the same start state must produce the same
scenario every run. If no such trigger exists, add the primitive or ask the human — exactly
the agent-observed testing doctrine (docs/TESTING.md in the harness repo).
The camera is a rig, not a hand. One of:
projects/<game>/captures/<name>.json, built via /capture-pose)
parked for the take with pie_capture_from_pose(..., restore: false), orNo rig for the subject yet → build one first with /capture-pose (human frames it once) —
no rig, no verdict.
If either leg is missing, say so and fall back to the CLAUDE.md ladder: build the missing primitive/rig, or ask the human to drive PIE and report back. Do not "just record something."
GEMINI_API_KEY/GOOGLE_STUDIO_API_KEY in the repo .env
(video_analyze errors cleanly if not). Write the expectation in concrete, watchable terms —
motion, order, timing, direction, count: "door swings outward ~90° in under 1 s, no clipping
through the frame" grades; "animation looks good" does not. Split independently-checkable
claims into criteria so each gets its own pass/fail.pie_start — pie_busy + a queue position is not a failure; call again to
hold your place. Everything after this runs under try/finally: pie_stop.pie_capture_from_pose with the saved pose and
restore: false, unless the game's own camera is the rig.pie_record_start(wait_for_pie_s, fps, max_duration_s) — default 30 fps; fps: 0
(every presented frame) for fast/transient phenomena like hit flashes. Set max_duration_s as
the watchdog so a wedged run can never leave an unbounded recording.clip later.pie_record_stop → result.path, duration, dropped-frame counters. Nonzero
frames_dropped on a fast phenomenon → the take may be untrustworthy; re-record before judging.video_analyze(path, expected_behavior, criteria?, analysis_fps?, clip_start_s/end_s?).
Clip to the interesting window; sample as low as the question allows (see cost note below).divergences (timestamped, severity-rated) and failed
criteria_results top-down; fix the single most severe with a real change; re-arrange,
re-record from the same rig + trigger, re-judge. Only the phenomenon may change between runs —
same pose, same stimulus, same timing. Stop when the verdict is matches and every criterion
passes. inconclusive is a framing/sampling problem, not a pass — fix the rig, fps, or clip
and re-run; never re-roll an unchanged take hoping for a kinder verdict.For a trivial case (short take, simple trigger you can fire while it rolls), the one-shot
pie_analyze(expected_behavior, duration_s, ...) composite collapses steps 4–7 — but it occupies
the session for its whole duration, so anything intricate should use the explicit sequence.
pie_record_start): which frames exist in the MP4. Source fidelity.video_analyze.analysis_fps, default 1): how densely the model samples the
upload. Cost ≈ 300 tokens per sampled second. A 30 s take at the default costs ~9k tokens; the
same take sampled at 10 fps costs ~90k. Raise it only when the question genuinely needs
sub-second resolution (a 0.2 s flash), and pair a high analysis_fps with a tight
clip_start_s/clip_end_s window instead of sampling the whole take./visual-critique —
don't pay video rates for a picture question.)pie_not_holder). pie_record_arm auto-records every PIE session on
the editor until disarmed — disarm when done, don't leave it armed for other agents' takes.max_duration_s on every take; finally: pie_stop; recordings
auto-finalize on PIE end, but never rely on that as the plan.expected_behavior
("the debug text top-left is expected") so they aren't reported as divergences.frames_dropped), not game hitching — check the counters before filing a performance verdict.What SKILL.md sets; muted values are Claude Code's defaults
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./buildBuild an Unreal Engine project across its flavors — the editor target for local play-in-editor (PIE), a standalone/packaged Windows client, and a dedicated server (local dev or a cooked Linux build for remote/cloud hosting). Use when someone wants to "build the game", "build the editor", "compile the project", "package for Windows", "cook content", "make a client/server build", "build the dedicated server", "make a shipping build", "build for the cloud/GameLift", or asks which build command they need and what config/platform to use. Generic across any UE project with similar Editor/Game/Server target architecture — it derives names from the project, hardcodes none. Knows the compile-vs-cook-vs-package distinction, the target matrix, and the constraints that silently break builds./capture-poseTurn a human-framed editor viewport into a reproducible, automated IN-GAME screenshot. The human positions the level-editor camera on whatever they want to see; this records that exact pose (location/rotation/FOV/aspect) and reproduces it inside the running game (PIE) through the real game render path — no character driving, no camera flying — saving the shot so any later run can re-capture the identical view with zero human input. This is the sanctioned way to build the "fixed capture rig" that agent-observed testing doctrine requires (docs/TESTING.md in the harness repo) before any screenshot-based visual validation. Use when someone says "capture this view", "record my camera", "snapshot this framing in-game", "set up a repeatable shot of X", "make a capture rig for this", or "I framed it — grab it in the game". Pairs with /visual-critique for judging the captured frame (against a reference image or a written spec).
/docsBuild and maintain a game project's architecture-documentation system — a bidirectionally-navigable, code-synced knowledge base genericized from a production UE reference project's two-taxonomy model. One namespace, three modes. `/docs taxonomy` builds the FORWARD taxonomy (the file-by-file source atlas TAXONOMY.md + doc router INDEX.md, for top-down navigation). `/docs reverse` builds the REVERSE taxonomy (backward-reference CLAUDE.md files that point a leaf folder up to its owning doc + an ANNOTATE.md backlog of undocumented systems). `/docs audit` is the SYNC loop (verify each doc against the code, one per pass, with a resumable ledger). Use for "build a taxonomy / index the codebase / source atlas", "add folder pointers / annotate the source tree / stop agents drifting off-architecture", "audit the docs / check docs against code / find stale docs". Markdown-only — no source edits, no editor mutation. Generic across any UE project (C++-first, Blueprint-first, or with a TS backend); derives source roots from the project, hardcodes none. The doc *bodies* themselves are written by the sibling `/architect` skill.