/ucp-surfaces:ucp-assetsfrom ucp-surfaces
Work with Unity project assets and files through the editor: search/inspect assets, read/write ScriptableObject and material fields, move or rename assets without breaking GUID references, edit importer settings, find asset references, and check shader/project-file health.
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.
Unity tracks assets by GUID in .meta files, and scenes, prefabs, and settings serialize
references as GUIDs. Renaming or moving through the filesystem breaks those references; moving
through the editor keeps them. This skill routes file work through the editor where that matters
and stays on the filesystem where it does not.
ucp compile (scripts), ucp asset refresh [path] (anything written outside the editor), or
let ucp files write / ucp asset reimport trigger the import.ucp asset move / bulk-move for renames and folder cleanup, never mv.ucp asset import-settings for FBX, texture, audio import options, never hand-edited
.meta files.--json and --detail summary in reference searches to keep payloads small.ucp asset search -t Material --max 20
ucp asset search -t Prefab -p Assets/Prefabs
ucp asset search -n '^SCN_[0-9]+$' --regex
ucp asset info Assets/Materials/Crate.mat # type, guid, size, importer
ucp asset inspect Assets/Prefabs/Enemy.prefab # type-aware: renderers, materials, components
ucp asset inspect Assets/Materials/Crate.mat --max-fields 40
-t takes Unity type names (Texture2D, Material, Prefab, AudioClip, ScriptableObject
subclasses by name). Results are capped at --max (default 50).
ucp asset read Assets/Config/EnemyConfig.asset
ucp asset read Assets/Config/EnemyConfig.asset --field maxHealth
ucp asset write Assets/Config/EnemyConfig.asset --field maxHealth --value 120
ucp asset write-batch Assets/Config/EnemyConfig.asset --values '{"maxHealth":120,"speed":3.5,"loot":{"path":"Assets/Items/Gold.asset"}}'
ucp asset create-so Assets/Config/BossConfig.asset --type EnemyConfig
ucp asset delete Assets/Config/Old.asset
Values are JSON. Object references accept {"path": ...}, {"guid": ...}, or
{"instanceId": ...}, and fail explicitly when unresolved.
ucp asset move Assets/Legacy/Enemy.prefab Assets/Characters/Enemy.prefab
ucp asset move Assets/Legacy/Textures Assets/Art/Textures # whole folder, GUIDs kept
ucp asset bulk-move --moves '[{"from":"Assets/A.mat","to":"Assets/Materials/A.mat"},{"from":"Assets/B.mat","to":"Assets/Materials/B.mat"}]' --dry-run
ucp asset bulk-move --moves '{"Assets/A.mat":"Assets/Materials/A.mat"}' --continue-on-error
ucp references check Assets/Characters # any unresolved outgoing references after the move?
Build-settings scene entries, prefab references, and material slots keep resolving because the
GUID never changes. --dry-run validates the whole batch (collisions, missing sources) first.
ucp files read Assets/Scripts/Enemy.cs
ucp files write Assets/Scripts/Enemy.cs --content "..." # reimports; --compile waits for the recompile
ucp files write Assets/Data/table.json < table.json # content from stdin
ucp files patch Assets/Scripts/Enemy.cs --find "speed = 3f" --replace "speed = 5f"
ucp files write Assets/Tuning.txt --content "..." --no-reimport
Paths are relative to the project root and sandboxed inside it. Writes under Assets/ and
Packages/ reimport automatically, including .meta files (which reimport their owning asset).
ucp asset import-settings read Assets/Textures/HUD.png
ucp asset import-settings read Assets/Models/Enemy.fbx --field globalScale
ucp asset import-settings write Assets/Textures/HUD.png --field isReadable --value true
ucp asset import-settings write Assets/Textures/HUD.png --field textureType --value "Sprite"
ucp asset import-settings write-batch Assets/Textures/HUD.png --values '{"isReadable":true,"maxTextureSize":2048}' --no-reimport
ucp asset reimport Assets/Textures/HUD.png
ucp asset reimport Assets/Generated --recursive
Field names are the importer's serialized or public names as shown by import-settings read.
Batch several writes with --no-reimport, then reimport once.
ucp material create Assets/Materials/Crate.mat --shader "Universal Render Pipeline/Lit"
ucp material get-properties --path Assets/Materials/Crate.mat
ucp material get-property --path Assets/Materials/Crate.mat --property _BaseColor
ucp material set-property --path Assets/Materials/Crate.mat --property _BaseColor --value [0.8,0.3,0.1,1] # re-syncs keywords, saves the .mat
ucp material set-property --path Assets/Materials/Crate.mat --property _Metallic --value 0.4
ucp material set-property --path Assets/Materials/Crate.mat --property _BaseMap --value '{"path":"Assets/Textures/Crate.png"}'
ucp material keywords --path Assets/Materials/Crate.mat
ucp material set-keyword --path Assets/Materials/Crate.mat --keyword _EMISSION --enabled true
ucp material set-shader --path Assets/Materials/Crate.mat --shader Standard
ucp shader errors --errors-only # shader compile problems the editor knows about
Property names are the shader's (_BaseColor in URP, _Color in Built-in). get-properties
lists what the current shader exposes.
ucp references check # can this project be indexed natively? (Force Text + visible meta)
ucp references find --asset Assets/Materials/Crate.mat --detail summary
ucp references find --asset 933532a4fcc9baf4fa0491de14d08ed7 --json
ucp references find --asset Assets/Prefabs/Enemy.prefab --object 3cb6...:11400000
ucp references find-strings --pattern "SCN_Menu" # string ids Unity will not migrate
ucp references find-strings --pattern 'Level_[0-9]+' --regex -p Assets/Scenes
ucp references index build && ucp references index status
ucp references find --asset Assets/Materials/Crate.mat --approach bridge # force the in-editor path
Native search reads Unity's YAML from disk in parallel and needs no running editor; --detail summary collapses repetitive hits (200 renderers using one material become one line).
ucp script doctor # stale .csproj / project files?
ucp script doctor --fix # delete stale generated files and regenerate
ucp compile # after local script edits
Retexture a prop end to end:
ucp asset search -n crate -t Texture2D
ucp asset import-settings write Assets/Textures/Crate.png --field textureType --value "Default"
ucp material create Assets/Materials/Crate.mat --shader "Universal Render Pipeline/Lit"
ucp material set-property --path Assets/Materials/Crate.mat --property _BaseMap --value '{"path":"Assets/Textures/Crate.png"}'
ucp object set-property --id 46894 --component MeshRenderer --property m_Materials --value '[{"path":"Assets/Materials/Crate.mat"}]' --save
Reorganize a folder without breaking anything:
ucp references find --asset Assets/Legacy/Enemy.prefab --detail summary # who uses it
ucp asset bulk-move --moves '{"Assets/Legacy":"Assets/Characters/Legacy"}' --dry-run
ucp asset bulk-move --moves '{"Assets/Legacy":"Assets/Characters/Legacy"}'
ucp references check Assets/Characters # nothing unresolved
asset delete and asset move are real Unity operations: they update the asset database and
can trigger reimports and recompiles. Expect the [editor] line to show importing assets or
compiling afterwards; the next command waits for it..cs file starts a compile. Run ucp compile to get the CS#### diagnostics
instead of discovering them three commands later.references find on a project that is not Force Text falls back to the editor bridge, which is
slower and requires the editor to be open.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub mflrevan/unity-control-protocol --plugin ucp-surfaces8 skills in this plugin
/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-ui-toolkitAuthor and verify Unity UI Toolkit interfaces (UXML, USS, TSS) with `ucp ui`: discover documents and scenarios, lint with Unity's own importers, instantiate a document in an isolated editor panel, inspect its resolved layout and bindings, populate lists and repeaters from JSON scenarios, and capture deterministic PNGs. Use after editing UXML/USS or when the user wants a UI checked or screenshotted without loading a scene. Requires Unity 6 or newer./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.2 plugins in one repository ship this exact skill · first indexed Oct 8, 2026
Other plugins' skills for the same job