unity-ui

Edit Unity UI element properties directly in scene and prefab YAML files.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/BreakerOfStems/claude-skills --skill unity-ui-breakerofstems
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: unity-ui
Source: https://github.com/BreakerOfStems/claude-skills/tree/main/skills/unity-ui
Command: npx skills add https://github.com/BreakerOfStems/claude-skills --skill unity-ui-breakerofstems

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill allows you to make precise changes to Unity UI elements within prefabs and scenes by directly editing their YAML serialization, bypassing the need for the Unity Editor's visual interface and minimizing large, unnecessary file diffs.

Core Features & Use Cases

  • Targeted YAML Editing: Modify specific UI components like RectTransform properties (position, size, anchors) and MonoBehaviour settings (colors, sprites) directly in YAML files.
  • Minimal Diff Strategy: Adheres to principles of small, atomic commits and avoids reserializing entire scenes to keep Git history clean and merge conflicts manageable.
  • Use Case: Update the color of a health bar in a Unity game by editing its prefab's YAML, then commit only that specific change.

Quick Start

Use the unity-ui skill to change the anchored position of the 'HealthBar' GameObject in 'Assets/Prefabs/UI/HUD.prefab' to x: 150, y: -50.

Frequently Asked Questions about unity-ui

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I edit Unity UI prefabs without opening the Unity Editor?

You can edit Unity UI prefabs without the Unity Editor by directly modifying their YAML serialization. This skill targets specific `RectTransform` and `MonoBehaviour` properties in the text files to apply UI changes without visual tools.

Why do my Unity scene files have massive diffs when I change a single UI element?

Massive Unity scene diffs occur when the editor reserializes the entire file. By directly editing the YAML structure, you ensure minimal diffs and prefab isolation, keeping only the targeted UI changes in your Git history.

Can I update RectTransform anchors directly in a Unity YAML file?

Yes, you can update `RectTransform` anchors directly in a Unity YAML file. The skill facilitates iterative UI development by modifying specific position, size, and anchor properties within scene and prefab YAML files.

What is the best way to manage version control for Unity UI assets?

The best way to manage version control for Unity UI assets is through minimal diff strategy. By editing only the specific YAML properties you need and avoiding full scene reserialization, you keep Git history clean and merge conflicts manageable.

Does editing Unity scene YAML manually cause prefab isolation issues?

Editing Unity scene YAML manually does not cause prefab isolation issues if you adhere to minimal diff principles. The skill ensures prefab isolation by targeting only the specific UI elements without reserializing entire scenes.

How do I change a health bar color in a Unity prefab via text?

To change a health bar color in a Unity prefab via text, you edit the `MonoBehaviour` color property directly in the prefab's YAML file. This allows you to commit only that specific UI change without opening the visual editor.