unity-ui

unity-ui is a skill for Claude Code from bigdra50/unity-cli. It costs 81 tokens per session (4,307 once invoked), scanned A, original, MIT.

A Unity user-interface development and testing workflow for UI Toolkit and uGUI, Unity's two main UI systems.

In plain words
What is it for?
Use it to inspect UI trees, create end-to-end tests, run functional or smoke checks, compare screenshots, detect structural changes, and test random interactions.
Why use it?
It helps inspect interface structure and check that interactions, appearance, and basic operation still work.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: built for openclaw.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is **PREREQUISITE:** `../unity-shared/SKILL.md`(Relay Server 経由で Unity Editor が起動/アクティブであること).

Part of the unity-cli plugin — 9 skills, 1 hook shipped together

Good fit Use it to inspect UI trees, create end-to-end tests, run functional or smoke checks, compare screenshots, detect structural changes, and test random interactions.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/bigdra50/unity-cli
agentmods
npx agentmods add skills/bigdra50/unity-cli/unity-ui

Made for: Claude Code.

Or install unity-cli, the plugin that ships this one along with the rest of its 9 skills, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for unity-ui

README.md
[![agentmods](https://agentmods.dev/badge/skills/bigdra50/unity-cli/unity-ui/github.svg)](https://agentmods.dev/skills/bigdra50/unity-cli/unity-ui)
Your own site
<a href="https://agentmods.dev/skills/bigdra50/unity-cli/unity-ui"><img src="https://agentmods.dev/badge/skills/bigdra50/unity-cli/unity-ui/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for unity-ui

Your own site · 80×15
<a href="https://agentmods.dev/skills/bigdra50/unity-cli/unity-ui"><img src="https://agentmods.dev/badge/skills/bigdra50/unity-cli/unity-ui.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,307 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00081 $0.04307
Opus 5.5 $0.00032 $0.01723
Sonnet 5.5 $0.00016 $0.00861
Haiku 4.5 $0.00008 $0.00431

Measured 1mo ago against content hash 90ee34401ce1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

unity-ui scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/unity-ui/SKILL.md · 428 lines

How it starts

The opening of the file, as written. The whole thing — 428 lines — stays where its author put it; the contents beside it link to each section on GitHub.

unity-ui

PREREQUISITE: ../unity-shared/SKILL.md(Relay Server 経由で Unity Editor が起動/アクティブであること)

skill 経由のコマンドは必ず -i <instance> を付ける (unity-shared #インスタンス指定)。

uitree コマンドは Play Mode 中のみ動作する。必ず u -i <instance> play してから実行すること。

UI テストの種別

種別 検証内容 手法 スクショ
Functional 操作→状態が正しいか click → text で値検証 不要
Visual Regression 外観が変わっていないか screenshot → 画像比較 必要
Structural Snapshot ツリー構造が変わっていないか dump --json → diff 不要
Smoke 最低限動くか click → console にエラーなし 任意
Monkey ランダム操作でクラッシュしないか monkey → errors 確認 不要

UI システム判定

手がかり UI Toolkit uGUI
ファイル .uxml, .uss .prefab に Canvas
コンポーネント UIDocument Canvas, RectTransform

コマンドリファレンス

要素の指定方法は2通り: ref ID (ref_3) または -p <panel> -n <name>。

構造把握

u -i <instance> uitree dump                           # 全パネル一覧 (contextType: Player がゲーム側)
u -i <instance> uitree dump -p "PanelSettings"        # パネルのツリー (各要素の ref/name/type/classes が見える)
u -i <instance> uitree dump -p "PanelSettings" --json # JSON 出力 (snapshot用)
u -i <instance> uitree query -p "PanelSettings" -t Button              # type で検索 (VisualElement ベースのボタンはヒットしない → -c で検索)
u -i <instance> uitree query -p "PanelSettings" -n "BtnStart"          # name で検索
u -i <instance> uitree query -p "PanelSettings" -c "action-btn"        # USS class で検索
u -i <instance> uitree query -p "PanelSettings" -t Button -c "primary" # AND 条件
u -i <instance> uitree inspect -p "PanelSettings" -n "BtnStart"        # 要素詳細
u -i <instance> uitree inspect ref_5_48                                # ref ID で指定
u -i <instance> uitree inspect ref_5_48 --style                        # resolvedStyle 含む
u -i <instance> uitree inspect ref_5_48 --children                     # 子要素情報含む

テキスト取得

u -i <instance> uitree text -p "PanelSettings" -n "ToastMessage"  # name で指定
u -i <instance> uitree text ref_5_12                               # ref ID で指定

Read the full file on GitHub · 428 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 428 lines · 81 tokens per session scan A 90ee34401ce1

Subscribe to this mod's changes

unity-ui is a skill published in the GitHub repository bigdra50/unity-cli (39 stars, last pushed 4mo ago), licensed MIT. It adds 81 tokens to every session and 4,307 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

uloop-get-project-info

Get Unity project information via uloop CLI. Use when you need to check project settings, Unity version, platform, or other project metadata.

hatayama/unity-cli-loop · 34 tokens

test-designing-guide

Provides test design methodology for Unity projects. Use this skill whenever designing test cases from requirements or specifications, including selecting test techniques, deriving test cases, and formatting them. Even for small features, load this skill to ensure test design rigor.

nowsprinting/unity-coding-skills · 52 tokens

test-writing-guide

Provides guidelines for writing test code for Unity projects. Make sure to use this skill whenever writing, creating, editing, or modifying test code files (files under Tests/). This includes implementing new tests, fixing test failures, adding test cases, or any task that results in test code changes. Even for small…

nowsprinting/unity-coding-skills · 81 tokens

swallowtail-qa

Playtest Godot games and exported builds, capture frame spikes, compare QA baselines, and produce Swallowtail branded reports. Use for release QA and reusable game-specific test scenarios, not routine implementation-only unit tests.

regiellis/godot-mcp-go · 50 tokens

run-tests

Provides guidelines for running Unity tests using the rununitytests tool. Make sure to use this skill whenever running, executing, or re-running tests in the Unity Editor. This includes verifying implementations, debugging test failures, running specific test assemblies, or any task that involves the rununitytests…

nowsprinting/unity-coding-skills · 130 tokens

e2e-testing

Guide for running end-to-end tests of the Qwen Code CLI, including headless mode, MCP server testing, and API traffic inspection. Use this skill whenever you need to verify CLI behavior with real model calls, reproduce user-reported bugs end-to-end, test MCP tool integrations, or inspect raw API request/response…

QwenLM/qwen-code · 94 tokens