/vr-dev:quest-build-deployfrom vr-dev
Builds Unity Meta Quest apps into APKs headlessly, sideloads via adb, launches on device, and monitors logcat for crashes. Includes build gates and scripted headset readouts.
Ships in vr-dev. 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; scripts run unread.
Three stages: build the APK → install with adb → launch and verify. The one real branch is how you build, because an open Unity editor holds the project lock.
<skill> below is this skill's folder (the base directory shown when the skill loads). The
scripts are Windows PowerShell 5.1 and Python 3.10+ (stdlib).
unity-quest-sim-loop skill's L0):
powershell -File <unity-quest-sim-loop>\scripts\quickcheck.ps1 -Project <project> -Editor -Dev.
-Dev compiles with the PLAYER's defines too, so dev-only code leaking into the release build
fails in 10 seconds, not after a 20-minute build.python <skill>/scripts/quest_deploy.py devices (serial, model, OS
build, worn or not). unauthorized = the USB debugging prompt is waiting INSIDE the headset;
only the wearer can accept it. No device and the user only asked for a build: build anyway
and say the install is pending.The project needs a CLI entry point. Copy assets/QuestBuild.cs into an Editor folder
(replace __NS__ and __MENU__). It gives Cli (release), CliDev (development) and
CliGates, menu items for the same, and a gate hook: every static
[QuestBuild.QuestBuildGate] method returning IEnumerable<string> runs before every build,
and any message it yields refuses the build. The project may already have its own entry point;
pass it with -Method.
Editor closed → headless (preferred):
powershell -File <skill>\scripts\unity_build.ps1 -Project <project> # release
powershell -File <skill>\scripts\unity_build.ps1 -Project <project> -Dev # development (agent tools + Operator)
powershell -File <skill>\scripts\unity_build.ps1 -Project <project> -GatesOnly # gates, no APK (~1-2 min)
exit <code> and the process exits with that code. Never poll its log for a
marker you have not copied from the script: one agent waited 10 minutes for exit= on a
build that had failed in 40 seconds and printed exit 1.[QuestBuild] result=... line, every [QuestBuildGates] FAIL ..., any
error CS... and the log tail. NO APK with exit 0 from Unity still exits 1.-NoOperator sets QUEST_NO_OPERATOR=1 for OperatorLayerExclusion.cs (in
unity-quest-sim-loop/assets): a development build WITHOUT the Meta XR Operator layer, for an
OS build where the layer crashes the app at launch. The app's tools then answer over adb.Including XrApiLayer_METAX_operator in its log; the script warns when it does not, because
such an APK looks exactly like a device that will not connect.-BuildTemp C:\unity-build-temp when Gradle fails to start on Windows (Java NIO cannot
create its AF_UNIX pipe under the default TEMP and never falls back to TCP).Temp/UnityLockfile left by a killed editor makes batchmode exit without writing a
log; the script removes it when no Unity process has the project open.Editor open → ask before closing it. The user may be looking at it. If they want it kept
open, build from the editor's own menu (__MENU__/Build/Build Quest APK) - through the Unity
MCP's menu-item tool if that server works in this session, or by asking the user to click it -
then wait for the APK to exist with a stable size across two checks AND for
[QuestBuild] result= in %LOCALAPPDATA%\Unity\Editor\Editor.log. A Unity MCP "run command"
that calls BuildPipeline.BuildPlayer is rejected as interactive; use the menu item.
python <skill>/scripts/quest_deploy.py deploy <project>/Build/MyApp-dev.apk --project <project>
deploy runs adb install -r -g (replace, keep data, grant runtime permissions), clears
logcat, force-stops and launches through the LAUNCHER intent, waits ~12 s, then reports
whether the process is alive and every crash line (FATAL EXCEPTION, Fatal signal, SIGABRT,
ANR). The package id comes from ProjectSettings with --project, or --pkg.
horizon-os-mcp skill) for list / launch / inspect instead.INSTALL_FAILED_UPDATE_INCOMPATIBLE = the installed copy is signed with another key.
Uninstalling deletes the app's data on the headset: ask first.quest_deploy.py worn tells you.Install and launch prove it boots. The behaviour needs either the agent driving the dev build
(the unity-quest-sim-loop skill: Operator over adb forward tcp:8720 tcp:8720, or
run_scenario.py --device over the adb channel) or a worn headset with a readout:
python <skill>/scripts/quest_deploy.py readout --project <project> --minutes 3 --relaunch \
--questions <project>/tools/device_questions.json --out <tmp>/readout.txt
It waits until the headset is worn, grows and clears the log buffer, relaunches, streams
Unity, VrApi, AgenticXR and crash tags for the window (stop early by creating
<out>.stop), then prints:
assets/device_questions.example.json), the last line
that answers it: render path, eye-buffer size, which data tier loaded, whether the agent tools
registered...SF (the eye-buffer scale dynamic resolution chose), TW, layer count.Make the app log one self-report line per question at startup and on key events. Then a device
session needs nobody to describe what they see, and the same file answers follow-up questions
later (quest_deploy.py summary readout.txt).
Tell the user exactly what to look at in the headset for the change you made, and report install / launch / no-crash as verified and the visual outcome as theirs to confirm.
unity_build.ps1 without -Dev): it has no Operator layer
and no dev tools, so it is the build that ships, and a dev-only dependency breaks only here.horizon-os-mcp: vr_docs_search) rather than
from memory.Build/baseline-<date>-dev.apk) for performance comparisons.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub gomesgustavoo/vr-dev-skills --plugin vr-dev4 skills in this plugin
/blender-cli-vr-assetsBuild VR-ready 3D assets with headless Blender driven from the command line (blender -b, bpy stage scripts) and hand them to Unity for Meta Quest - rooms, props and jointed machines built by scripted stages, Cycles light baked display-referred into atlases drawn unlit, gated by validation, exported as byte-deterministic FBX with the axis conversion and joint contract Unity needs, and checked against Cycles reference renders with SSIM and CIEDE2000. Use it whenever the user runs or writes Blender in background / CLI mode or bpy scripts; generates or fixes 3D assets, rooms or props for Unity or Quest; exports FBX for Unity (wrong axes, scale, joints in the wrong place); bakes lighting or AO into atlases; wants Unity to match a Blender render; or wants a scripted, deterministic asset pipeline. Includes a stage runner, bpy helpers, a deterministic-FBX patch, a fidelity gate and an example./horizon-os-mcpConnect and use Meta's Horizon OS developer MCP server (metavr via npx, or hzos-dev-mcp bundled with Meta Quest Developer Hub) for Quest work - authoritative Meta docs and exact Unity/Unreal API signatures, device control (list, apps, files, logcat, screenshots, UI automation), and Perfetto performance traces with baseline comparison. Use it before relying on memory about any Meta XR SDK name, setting, manifest entry or Store/VRC rule; when a Quest app crashes, stutters or runs hot; when the user asks to install, launch, inspect or capture something on the headset; or when setting up, checking or repairing the MCP connection itself./unity-quest-sim-loopTest and debug a Unity Meta Quest app without the headset. Runs it in editor Play Mode on the Meta XR Simulator and drives it through the Meta XR Operator (port 8720) plus the app's own agent tools - inject controller and head poses and buttons, press UI for hand-tracking apps, query app state, capture the eye view, pixel-diff one object's colour, run JSON scenario suites that assert on app state, then stop, refresh and replay after each edit and pin findings with a headless gate. Works on Meta XR SDK 205 and on older SDKs such as 203, and covers passthrough apps. Also the headset follow-up (dev APK, adb, logcat, VrApi numbers). Use it whenever the user wants to verify, test, reproduce or look at a Quest/Unity XR feature; mentions the XR Simulator, XR Operator, xrsim or openxr_* tools; reports something wrong in the headset (invisible or untextured objects, dead buttons, overlapping UI); or wants this loop in a new project.Other plugins' skills for the same job