/ucp-surfaces:ucp-runtime-debuggingfrom ucp-surfaces
Debugs running Unity projects via ucp CLI: reads filtered logs, runs edit/play-mode tests, executes editor scripts, hot-reloads method bodies, profiles frames with self-time hierarchies, and captures frame data. For playtesting, triage, and performance work.
Ships in ucp-surfaces. 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.
ucp logs status # counts by level, top repeated messages, play-session window
ucp logs --count 20 # newest buffered entries
ucp logs --level error --count 50
ucp logs --pattern 'NullReference|Exception' --count 100
ucp logs --filter 'level>=warning,channel=Shader'
ucp logs --id 1842 # one entry with its full stack trace
ucp logs --after-id 1800 --level error # only what happened since a cursor
ucp logs --follow --level error --count 5 # live; stops after 5 matches
ucp log tail --follow # `log` is an alias
logs works for entries that predate the connection.logs status is the cheap first look: it collapses repeats into categories and reports the
last play session's window separately.[editor] line after every command already carries the console's error and warning
counts and how many the command itself produced; use logs to read the messages.ucp run-tests # edit-mode, whole project
ucp run-tests --mode play
ucp run-tests --filter ControllerSmokeTests # regex over Namespace.Fixture.Test, substring fallback
ucp run-tests --filter 'Player.*Jump' --json
LogAssert.ignoreFailingMessages are excluded.IUCPScript)ucp exec list # registered scripts in the project
ucp exec run setup-arena
ucp exec run spawn-wave --params '{"count":12,"radius":8}'
ucp exec run demo-autopilot --record run.mp4 --record-lead 0.5 --record-tail 1
A script is an editor class implementing IUCPScript (Name, Description,
object Execute(string paramsJson)); the return value comes back as JSON. Scripts run on the main
thread with full editor access, which makes them the tool for anything the command surface does
not cover. Two rules, because scripts bypass the bridge's guards: never call
EditorUtility.DisplayDialog or any native file panel, and never SaveScene() an untitled
scene; both block the editor on a prompt nobody can answer.
ucp profile --seconds 5 --mode play # one-shot: start, wait, stop, summary
ucp profiler status # capabilities, frame buffer, current mode
ucp profiler config get
ucp profiler config set --deep-profile true --allocation-callstacks true
ucp profiler session start --mode play --clear-first
ucp play
ucp profiler frames list --limit 5 # take a fresh frame index from here
ucp profiler frames show --frame 1234 --include-threads
ucp profiler hierarchy --frame 1234 --thread 0 --sort self-time --limit 20 --fields name,selfMs,calls,gcMemory
ucp profiler timeline --frame 1234 --thread 0 --limit 100 --max-depth 3
ucp profiler callstacks --frame 1234 --kind hierarchy --item 42 --resolve-methods
ucp profiler summary --first-frame 1200 --last-frame 1300 --limit 10
ucp profiler capture save --output ProfilerCaptures/session.json
ucp profiler capture load --input ProfilerCaptures/session.raw
ucp profiler session stop
ucp stop
hierarchy,
timeline, or callstacks.--fields trims the payload to the columns you need; --limit and --max-depth bound it.
Truncation is reported as "showing N of M", not silently.capture save writes a structured JSON snapshot for scripts and agents; .raw/.data files
from the Profiler window can be loaded back with capture load.ucp frame capture --out frame.json # structured frame/profiler capture
ucp shader errors --errors-only # shader compile problems (see ucp-assets)
Autonomous playtest with triage:
ucp compile # fail fast on CS#### errors
ucp logs status # baseline counts
ucp play --log-file play.log
# drive the game: exec scripts, record, wait
ucp logs --level error --count 20
# fix a method body and keep playing: ~1 s, state kept, no domain reload
ucp hot-reload apply Assets/Scripts/EnemyAI.cs
ucp stop
ucp logs status # the lastPlayWindow block is this session
Find the hot path behind a spike:
ucp profiler session start --mode play --clear-first
ucp play
ucp profiler frames list --limit 3
ucp profiler summary --limit 10
ucp profiler hierarchy --frame <fresh> --sort self-time --limit 15 --fields name,selfMs,calls
ucp profiler callstacks --frame <fresh> --kind hierarchy --item <id> --resolve-methods
ucp profiler session stop && ucp stop
Run the tests that matter after a change:
ucp compile
ucp run-tests --filter 'Inventory' --json
ucp logs --level error --after-id <cursor from logs status>
run-tests --mode play and ucp play both reload the domain; every instance id you hold is
stale afterwards.--mode play for gameplay numbers.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
8 skills in this plugin
/ucp-assetsWork with a Unity project's assets and files through the editor with `ucp asset`, `ucp files`, `ucp material`, `ucp references`, `ucp shader`, and `ucp script`: search and inspect assets, read and write ScriptableObject and material fields, move or rename assets without breaking GUID references, edit importer settings instead of .meta files, find every reference to an asset, and check shader and project-file health. Use when the task touches files under Assets/ or Packages/. For scene objects use ucp-scene-authoring; for UXML/USS use ucp-ui-toolkit./ucp-editor-lifecycleBring a Unity project under control with the `ucp` CLI: install the bridge, open or adopt the editor, read the `[editor]` state line every command prints, recompile or hot-reload method bodies without a domain reload, enter and leave play mode, and recover from modal dialogs. Use when a task starts (is Unity running? is the console red? is the scene dirty?), when a command reports COMPILE ERRORS or a MODAL, or when the editor must be opened, restarted, or closed. For scene content, assets, UI, capture, debugging, or project configuration, use the matching ucp-* skill or the unity-control-protocol omni skill./ucp-project-configConfigure a Unity project from the terminal with `ucp packages`, `ucp settings`, and `ucp build`: search, add, and remove UPM packages, manage scoped registries and manifest dependencies, inspect and selectively import .unitypackage archives, read and set player, quality, physics, and lighting settings, tags and layers, and drive the build pipeline (targets, scenes, scripting defines, builds). Use for project setup, dependency work, and release configuration. For scene content use ucp-scene-authoring; for assets use ucp-assets.npx claudepluginhub mflrevan/unity-control-protocol --plugin ucp-surfaces2 plugins in one repository ship this exact skill · first indexed Oct 8, 2026
Other plugins' skills for the same job