unity-uitoolkit

unity-uitoolkit is a skill for Claude Code, Codex from batihandev/unity-mcp-skills. It costs 34 tokens per session (2,511 once invoked), scanned A, original, MIT.

A Unity skill for creating interfaces with UI Toolkit, Unity's system for defining layouts in UXML and styling them in USS. It also covers attaching those layouts to scenes through UIDocument and PanelSettings.

In plain words
What is it for?
Use it to create or edit UXML layouts, USS stylesheets, buttons and other interface elements, UIDocument components, and runtime panel settings in Unity 2022.3 or newer.
Why use it?
It keeps the interface structure, appearance, and scene connection organized in the format Unity UI Toolkit expects. It also prevents mixing this system with Unity's older Canvas-based interface tools.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create or edit UXML layouts, USS stylesheets, buttons and other interface elements, UIDocument components, and runtime panel settings in Unity 2022.3 or newer.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/batihandev/unity-mcp-skills/uitoolkit
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add batihandev/unity-mcp-skills --skill uitoolkit
Clone the repo
git clone --depth 1 https://github.com/batihandev/unity-mcp-skills

Made for: Claude Code, Codex.

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-uitoolkit

README.md
[![agentmods](https://agentmods.dev/badge/skills/batihandev/unity-mcp-skills/uitoolkit/github.svg)](https://agentmods.dev/skills/batihandev/unity-mcp-skills/uitoolkit)
Your own site
<a href="https://agentmods.dev/skills/batihandev/unity-mcp-skills/uitoolkit"><img src="https://agentmods.dev/badge/skills/batihandev/unity-mcp-skills/uitoolkit/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-uitoolkit

Your own site · 80×15
<a href="https://agentmods.dev/skills/batihandev/unity-mcp-skills/uitoolkit"><img src="https://agentmods.dev/badge/skills/batihandev/unity-mcp-skills/uitoolkit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,511 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.00034 $0.02511
Opus 5 $0.00017 $0.01256
Sonnet 5 $0.00007 $0.00502
Haiku 4.5 $0.00003 $0.00251

Measured 9d ago against content hash adf096c0041f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

unity-uitoolkit 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 9d 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/uitoolkit/SKILL.md · 194 lines

How it starts

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

Unity UI Toolkit Skills

When to Use

Use this module for Unity UI Toolkit only: UXML for structure, USS for styling, UIDocument for scene attachment, and PanelSettings for runtime rendering.

Routing:

  • Check ../../mcp-tools.md first for a dedicated official Unity MCP tool.
  • If no native tool covers the operation, use ../../recipes/uitoolkit/<command>.md.
  • For UGUI Canvas/Button/Text/Image → use the ui module.
  • For XR world-space Canvas conversion → use xr_setup_ui_canvas.
  • For attaching an existing UXML to a scene object → use uitk_create_document or uitk_set_document.
  • For generated starter layouts → use uitk_create_from_template.

Requires Unity 2022.3+. Do not mix this module with ui_* UGUI/Canvas skills. Localization: Match visible UI text to the user's language. Chinese conversation → Chinese labels/placeholders/button text. USS class names and CSS variables stay English.

Common Mistakes

DO NOT (common hallucinations):

  • Requires Unity 2022.3+ — no package install needed; built into the engine
  • uitoolkit_create_button / uitoolkit_create_label do not exist -> use uitk_add_element
  • uitoolkit_set_style does not exist -> use uitk_add_uss_rule, uitk_remove_uss_rule, or uitk_modify_element
  • uitoolkit_create_canvas does not exist -> UI Toolkit uses UIDocument, not Canvas
  • uitk_* and ui_* are different systems. Do not mix UI Toolkit structure/styling assumptions into UGUI workflows
  • USS is not full CSS. display:grid, box-shadow, calc(), @media, ::before, z-index, and gradients are unsupported

Quick Reference

File Skills

Skill Use Key parameters
uitk_create_uss Create USS file savePath, content?
uitk_create_uxml Create UXML file savePath, content?, ussPath?
uitk_read_file Read USS/UXML content filePath
uitk_write_file Overwrite file content filePath, content
uitk_delete_file Delete USS/UXML file filePath
uitk_find_files Search files by name/path type?, folder?, filter?, limit?
uitk_create_batch Create 2+ files in one call items

Read the full file on GitHub · 194 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. 9d ago First seen · 194 lines · 34 tokens per session scan A adf096c0041f

Subscribe to this mod's changes

unity-uitoolkit is a skill published in the GitHub repository batihandev/unity-mcp-skills (6 stars, last pushed 1mo ago), licensed MIT. It adds 34 tokens to every session and 2,511 once invoked, about $0.0002 per session on Opus 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-31.

Related

Other skills, from other repositories

game-opportunity

A research workflow for finding promising opportunities to build small game websites. It checks new game names, search demand, competition, recent trends, and whether a playable game exists.

yan-labs/yan-skills · 91 tokens

hz-unity-meta-mixed-reality-utility-kit

Meta XR Mixed Reality Utility Kit (MRUK) (com.meta.xr.mrutilitykit) for Unity XR development. Use when working with Scene API data (rooms, walls, floors, furniture), spawning prefabs on scene anchors, placing virtual objects in the real world, world locking to prevent anchor drift, raycasting against room geometry…

meta-quest/agentic-tools · 136 tokens

hz-vr-debug

Debugs Meta Quest and Horizon OS VR/MR applications using the metavr CLI — view logs, capture screenshots, diagnose common issues. Use when troubleshooting crashes, errors, or unexpected behavior on Quest devices.

meta-quest/agentic-tools · 46 tokens

reversing-unity-il2cpp

Reverse engineer Unity games and apps built with IL2CPP or Mono, using Il2CppDumper, Il2CppInspector, and dnSpy. Use when an APK or IPA contains global-metadata.dat, libil2cpp.so, UnityFramework, or Assembly-CSharp.dll, when jadx shows only UnityPlayerActivity, or when the target is described as a Unity build.

trilwu/secskills · 85 tokens

hz-unity-meta-movement-sdk-retargeting

Set up and tweak Meta Movement SDK (MSDK) retargeting for a character model. Use this whenever the user wants to retarget a humanoid FBX/prefab for Meta Quest body tracking, generate a retargeting config, or hand-edit the resulting .json (fix known-joint mappings, exclude joints from auto-mapping, rename target…

meta-quest/agentic-tools · 182 tokens

hz-unity-placement

Ensures accurate object placement in Unity projects targeting Meta Quest and Horizon OS by using Renderer and Collider bounds when objects are added, moved, or positioned relative to other objects.

meta-quest/agentic-tools · 39 tokens