/ucp-surfaces:ucp-ui-toolkitfrom ucp-surfaces
Authors and verifies Unity UI Toolkit interfaces (UXML, USS, TSS) via the `ucp ui` CLI. Lints documents, inspects resolved layouts and bindings, populates lists from JSON scenarios, and captures deterministic screenshots without loading a scene.
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.
The loop is: edit UXML/USS on disk, lint (fast importer and schema pass), inspect (resolved
tree, layout, bindings), screenshot (visual evidence), check (all of it across every state,
with cleanup). Nothing here loads or dirties a scene; the harness opens a transient editor panel,
renders, and closes it.
ucp ui list --root Assets/UI
ucp ui list --include-packages --limit 50 --json
Lists .uxml documents and .ucp-ui.json scenarios. Invalid scenarios stay in the list with
valid: false and a diagnostic, so discovery works while you are still authoring one.
ucp ui lint Assets/UI
ucp ui lint Assets/UI/Inventory.uxml Assets/UI/Inventory.uss
ucp ui lint Assets/UI/Inventory.ucp-ui.json --fail-on-warnings --max-diagnostics 200
Runs Unity's synchronous UXML, USS, and TSS importers, reads their logs and flags, follows
dependencies, and clone-instantiates each document under a scoped log capture, which is what
catches an unknown element that imports cleanly and only fails when instantiated. Errors fail the
command; warnings fail it only with --fail-on-warnings. Diagnostics carry the asset path and
line. Assets in immutable packages are inspected from their existing import without a reimport.
ucp ui inspect Assets/UI/Inventory.uxml --query '#toolbar' --depth 4 --max-elements 100
ucp ui inspect Assets/UI/Inventory.ucp-ui.json --state populated --query '#cards' --json
ucp ui inspect Assets/UI/Inventory.ucp-ui.json --state empty --detail verbose
--query takes one simple selector: #name, .class, or an element type. Compound selectors
such as .a.b are rejected rather than silently matching nothing.ListView rows.
Internal containers consume depth, so row labels can sit eight levels deep; use --query '#row-label' or a deeper --depth. truncated: true means a depth or element cap was hit.ucp ui screenshot Assets/UI/Inventory.uxml --width 960 --height 640 -o artifacts/inventory.png
ucp ui screenshot Assets/UI/Inventory.ucp-ui.json --state populated -o artifacts/populated.png --force
Captures after three identical geometry samples and two identical pixel samples (a scenario can
override with settle). Without -o the bridge keeps the PNG under Library/UCP/UiCaptures and
returns its path and pixel hash. --width and --height go together; omit both to keep a
scenario's viewport (direct UXML defaults to 960x640).
ucp ui check Assets/UI/Inventory.ucp-ui.json --all-states --out-dir artifacts/ui --force --json
ucp ui check Assets/UI/Inventory.ucp-ui.json --state populated --fail-on-warnings
Lint, instantiate, inspect, audit, and capture in one bridge-owned operation. The audit reports
binding failures as errors and, as warnings, focusable elements with zero size or outside the
viewport and duplicated static names (rows inside managed collections are exempt). Counts are
complete even when the returned detail list is capped at 200. Exit code is non-zero when
passed is false.
.ucp-ui.json){
"schemaVersion": 0,
"document": "./Inventory.uxml",
"defaultState": "populated",
"viewport": { "width": 960, "height": 640 },
"data": { "title": "Inventory" },
"states": {
"empty": {
"data": { "items": [] },
"set": [ { "target": "#empty-message", "property": "display", "value": "flex" } ]
},
"populated": {
"data": { "items": [ { "name": "Potion", "countLabel": "x3" }, { "name": "Key", "countLabel": "x1" } ] },
"collections": [
{ "target": "#cards", "mode": "repeat", "source": "/items", "template": "./InventoryCard.uxml" },
{ "target": "#rows", "mode": "list-view", "source": "/items", "template": "./InventoryRow.uxml", "itemHeight": 28 }
]
}
}
}
Inventory.ucp-ui.json#states.populated.set[1].value.set allows only text, value, enabled, display (flex/none), visibility
(visible/hidden), tooltip, and class:<name> (boolean). Targets are :root, #name, or
.class and must match exactly one element.collections: repeat clones the template per item (small grids); list-view assigns
itemsSource and owns makeItem/bindItem for a real virtualized ListView (itemHeight
selects fixed-height virtualization). source is a JSON pointer such as /items.DataBinding elements; the harness rewrites their paths to the
JSON dictionary keys after cloning. Each item receives one array element as its data source.--data-json '{"title":"Shop"}' or --data-file data.json overlay data for one run. Top-level
data is deep-merged with state data, then with the overlay.# edit Assets/UI/Inventory.uxml and .uss locally
ucp ui lint Assets/UI/Inventory.ucp-ui.json --fail-on-warnings
ucp ui inspect Assets/UI/Inventory.ucp-ui.json --state populated --query '#cards' --json
ucp ui screenshot Assets/UI/Inventory.ucp-ui.json --state populated -o artifacts/populated.png --force
# look at the PNG, adjust, repeat; before handing off:
ucp ui check Assets/UI/Inventory.ucp-ui.json --all-states --out-dir artifacts/ui --force --json
lint still works there.inspect, screenshot, and check defaults to 310 s. A domain reload mid-operation returns a
structured editor_shutdown error, and a lost completion is recovered through ui/status.IntegerField; wider ones
are kept as 64-bit and flagged with a warning.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./ucp-runtime-debuggingFind out what the running Unity project is doing and why with `ucp logs`, `ucp run-tests`, `ucp exec`, `ucp profiler`, `ucp profile`, and `ucp frame capture`: read and follow console logs with filters, run edit-mode or play-mode tests by name pattern, execute registered editor scripts with parameters, hot-reload edited method bodies into a running game with `ucp hot-reload`, profile frames and read hierarchies sorted by self time, and export structured captures. Use for playtesting loops, failure triage, test runs, and performance work. For compile errors and editor state use ucp-editor-lifecycle./ucp-scene-authoringBuild and inspect scene content in the live Unity Editor with `ucp scene`, `ucp object`, `ucp transform`, `ucp spatial`, and `ucp prefab`: snapshot and query the hierarchy, create visible primitives, add components, set serialized properties, move/rotate/scale/look-at objects, raycast and ground them, and turn hierarchies into prefabs. Use when the user wants something placed, arranged, wired, or measured in a scene. For assets on disk use ucp-assets; for what the scene looks like use ucp-visual-feedback./ucp-version-controlLightweight Unity Version Control (Plastic SCM) operations through the editor with `ucp vcs`: provider status, pending changes, checkout, revert, commit, diff, incoming, update, lock, unlock, history, and conflict resolution. Use when a project is under Unity VCS and the native `cm` CLI is unavailable or you want the editor's own view of pending changes. Prefer `cm` (or git) for everything else.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