[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KH0P61S8339SF75XTY05B8":3,"skill-same:01M6KH0P61S8339SF75XTY05B8":94},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":28,"publishedAt":49,"linkOnly":50,"markdownContent":51,"markdownBody":52,"frontMatter":53,"refName":66,"commitSha":67,"skillDirectory":68,"forksCount":69,"repositoryHtmlUrl":70,"repositoryHomepageUrl":6,"ownerHtmlUrl":71,"ownerBlogUrl":6,"ownerDescription":72,"updatedAt":73,"install":74,"resources":87},"01M6KH0P61S8339SF75XTY05B8","unity-uitoolkit",null,"UI Toolkit (UITK) for Unity — create\u002Fedit USS stylesheets and UXML layouts, configure UIDocument + PanelSettings in scenes, generate EditorWindow \u002F runtime UI scaffolds. This is the UXML\u002FUSS\u002FVisualElement system; for Canvas-based UGUI use the `ui` module. Triggers: UI Toolkit, UITK, UXML, USS, UIDocument, PanelSettings, VisualElement, stylesheet, design token, CSS variable, flex, flexbox, flex-direction, runtime UI, EditorWindow UI, ScaleWithScreenSize, ConstantPixelSize, scaleMode, 界面工具包, UI样式, 样式表, 可视化元素, 弹性布局, 编辑器窗口, 设计令牌.","dyCuong03\u002Funity-agent-team","dyCuong03","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F137050365?v=4","01M6KFXC85HQHXZJC2VC1KY6EZ","CuongND","01M6KFXCCHP6CD5MTA8NECJC36",8,"MIT","https:\u002F\u002Fgithub.com\u002FdyCuong03\u002Funity-agent-team\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Funity-skills\u002Fskills\u002Fuitoolkit\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000015","视觉设计","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":26,"taxonomyTypeDesc":27},"01JBSEEDCAT000000000000032","设计师","PROFESSION","适用职业",[29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48],"unity uitoolkit","unity","edit","at","design token","unity editor","direction","可视化","token","do","design","configure","ui toolkit","server","ui","code","generate","create","canvas","css","2026-11-10 10:12:30",false,"---\nname: unity-uitoolkit\ndescription: \"UI Toolkit (UITK) for Unity — create\u002Fedit USS stylesheets and UXML layouts, configure UIDocument + PanelSettings in scenes, generate EditorWindow \u002F runtime UI scaffolds. This is the UXML\u002FUSS\u002FVisualElement system; for Canvas-based UGUI use the `ui` module. Triggers: UI Toolkit, UITK, UXML, USS, UIDocument, PanelSettings, VisualElement, stylesheet, design token, CSS variable, flex, flexbox, flex-direction, runtime UI, EditorWindow UI, ScaleWithScreenSize, ConstantPixelSize, scaleMode, 界面工具包, UI样式, 样式表, 可视化元素, 弹性布局, 编辑器窗口, 设计令牌.\"\nplatforms: [unity-editor, claude-code]\ntask-categories: [ui-toolkit, ui, editor-automation]\nuse-when: |-\n  Load when the task requires: UI Toolkit (UITK) for Unity — create\u002Fedit USS stylesheets and UXML layouts, configure UIDocument + PanelSettings in scenes, generate EditorWindow \u002F runtime UI scaffolds. This is the UXML\u002FUSS\u002FVisualElement system; for Canvas-based UGUI use the `ui` module. Unity Editor must be running with the unity-skills REST server reachable at http:\u002F\u002Flocalhost:8090.\ndo-not-use-when: |-\n  Do not load when Unity Editor is not running locally. Do not load when unity-skills REST server is unreachable at http:\u002F\u002Flocalhost:8090.\nmetadata:\n  source: https:\u002F\u002Fgithub.com\u002FBesty0728\u002FUnity-Skills\n  version: 1.9.2\n  tier: 2\n\n---\n\n# Unity UI Toolkit Skills\n\nUse this module for Unity UI Toolkit only: `UXML` for structure, `USS` for styling, `UIDocument` for scene attachment, and `PanelSettings` for runtime rendering.\n\n> **Requires Unity 2022.3+**. Do not mix this module with `ui_*` UGUI\u002FCanvas skills.\n> **Localization**: Match visible UI text to the user's language. Chinese conversation -> Chinese labels\u002Fplaceholders\u002Fbutton text. USS class names and CSS variables stay English.\n\n## Operating Mode\n\n- **Approval**（默认）：查询类 skill（`uitk_read_file` \u002F `uitk_find_files` \u002F `uitk_get_panel_settings` \u002F `uitk_list_documents` \u002F `uitk_inspect_uxml` \u002F `uitk_list_uss_variables` \u002F `uitk_inspect_document`，源码标 `SkillMode.SemiAuto`）直接执行；其余文件\u002F场景写入类（`uitk_create_*` \u002F `uitk_write_file` \u002F `uitk_add_*` \u002F `uitk_modify_element` 等，标 `SkillMode.FullAuto`）需用户 grant，grant 后服务端一步执行返结果。\n- **Auto \u002F Bypass**：未被禁列表拦截的 skill 直接执行。\n- 本模块**含 Delete 类 skill**：`uitk_delete_file`、`uitk_remove_element`、`uitk_remove_uss_rule` 标记为 `SkillOperation.Delete`，被 `IsForbiddenInSemi` 静态拦截 —— 仅 **Bypass** 模式或加入 **Allowlist** 才能调用。\n- **Asset 重导行为**：所有写文件\u002F删文件 skill 通过 `AssetDatabase.ImportAsset(path)` 对单个 USS\u002FUXML 资产单独触发导入，**不会**调 `AssetDatabase.Refresh()` 触发全项目扫描；批量创建依次单独 Import。但 USS\u002FUXML 是 ScriptedImporter 类型，Import 仍会重建依赖此资产的 PanelSettings\u002FUIDocument 引用，触发 IMGUI 检查器刷新与场景视图重绘。\n\n**DO NOT** (common hallucinations):\n- `uitoolkit_create_button` \u002F `uitoolkit_create_label` do not exist -> use `uitk_add_element`\n- `uitoolkit_set_style` does not exist -> use `uitk_add_uss_rule`, `uitk_remove_uss_rule`, or `uitk_modify_element`\n- `uitoolkit_create_canvas` does not exist -> UI Toolkit uses `UIDocument`, not Canvas\n- `uitk_*` and `ui_*` are different systems. Do not mix UI Toolkit structure\u002Fstyling assumptions into UGUI workflows\n- USS is **not full CSS**. `display:grid`, `box-shadow`, `calc()`, `@media`, `::before`, `z-index`, and gradients are unsupported\n\n**Routing**:\n- For UGUI Canvas\u002FButton\u002FText\u002FImage -> use the `ui` module\n- For XR world-space Canvas conversion -> use `xr_setup_ui_canvas`\n- For generated starter layouts -> use `uitk_create_from_template`\n- For attaching an existing UXML to a scene object -> use `uitk_create_document` or `uitk_set_document`\n\n## Skills\n\n### File Skills\n\n| Skill | Use | Key parameters |\n|-------|-----|----------------|\n| `uitk_create_uss` | Create USS file | `savePath`, `content?` |\n| `uitk_create_uxml` | Create UXML file | `savePath`, `content?`, `ussPath?` |\n| `uitk_read_file` | Read USS\u002FUXML content | `filePath` |\n| `uitk_write_file` | Overwrite file content | `filePath`, `content` |\n| `uitk_delete_file` | Delete USS\u002FUXML file | `filePath` |\n| `uitk_find_files` | Search files by name\u002Fpath | `type?`, `folder?`, `filter?`, `limit?` |\n| `uitk_create_batch` | Create 2+ files in one call | `items` |\n\n### Scene Skills\n\n| Skill | Use | Key parameters |\n|-------|-----|----------------|\n| `uitk_create_document` | Create `UIDocument` GameObject | `name`, `uxmlPath?`, `panelSettingsPath?`, `sortOrder?`, `parentName?`\u002F`parentInstanceId?`\u002F`parentPath?` |\n| `uitk_set_document` | Change UIDocument asset bindings | `name`\u002F`instanceId`, `uxmlPath?`, `panelSettingsPath?` |\n| `uitk_create_panel_settings` | Create PanelSettings asset | `savePath`, `scaleMode`, `referenceResolutionX\u002FY`, Unity 6 world-space options |\n| `uitk_get_panel_settings` | Read PanelSettings values | `assetPath` |\n| `uitk_set_panel_settings` | Update PanelSettings selectively | `assetPath`, changed fields only |\n| `uitk_list_documents` | List scene UIDocuments | none |\n| `uitk_inspect_document` | Inspect live VisualElement tree | `name`\u002F`instanceId`\u002F`path`, `depth` |\n\n### UXML Structure Skills\n\n| Skill | Use | Key parameters |\n|-------|-----|----------------|\n| `uitk_add_element` | Add a child element | `filePath`, `elementType`, `parentName?`, `elementName?`, `text?`, `classes?` |\n| `uitk_remove_element` | Remove by `name` | `filePath`, `elementName` |\n| `uitk_modify_element` | Change attributes\u002Fclasses\u002Ftext | `filePath`, `elementName`, `text?`, `classes?`, `style?`, `newName?`, `bindingPath?`, custom attribute fields |\n| `uitk_clone_element` | Duplicate an element subtree | `filePath`, `elementName`, `newName?` |\n| `uitk_inspect_uxml` | Parse UXML hierarchy | `filePath`, `depth?` |\n\n### USS Style Skills\n\n| Skill | Use | Key parameters |\n|-------|-----|----------------|\n| `uitk_add_uss_rule` | Add or replace selector rule | `filePath`, `selector`, `properties` |\n| `uitk_remove_uss_rule` | Remove selector rule | `filePath`, `selector` |\n| `uitk_list_uss_variables` | Inspect design tokens \u002F `var()` usage | `filePath` |\n\n### Template and CodeGen Skills\n\n| Skill | Use | Key parameters |\n|-------|-----|----------------|\n| `uitk_create_from_template` | Generate paired UXML+USS | `template`, `savePath`, `name?` |\n| `uitk_create_editor_window` | Generate EditorWindow script | `savePath`, `className`, `uxmlPath?`, `ussPath?`, `menuPath?` |\n| `uitk_create_runtime_ui` | Generate runtime MonoBehaviour query scaffold | `savePath`, `className`, `elementQueries?` |\n\nSupported starter templates include `menu`, `hud`, `dialog`, `settings`, `inventory`, `list`, `tab-view`, `toolbar`, `card`, and `notification`.\n\n## Core Domain Knowledge\n\n### USS vs CSS\n\n| Pattern | Supported in USS | What to do |\n|---------|------------------|------------|\n| Flex layout | Yes | Use `flex-direction`, `flex-wrap`, `align-items`, `justify-content` |\n| `border-radius`, `opacity`, `overflow:hidden` | Yes | Safe to use |\n| Transforms \u002F transitions | Yes | `translate`, `scale`, `rotate` work |\n| CSS variables | Yes | Prefer `:root` tokens |\n| `display:grid` \u002F `display:block` \u002F `display:inline` | No | Everything is flex; emulate grids with wrapping rows |\n| `box-shadow` | No | Fake with nested background element |\n| `linear-gradient()` \u002F `radial-gradient()` | No | Use image textures |\n| `calc()` \u002F `@media` | No | Use explicit values + `PanelSettings.scaleMode` |\n| `::before` \u002F `::after` | No | Add a real child `VisualElement` |\n| `z-index` | No | Later siblings render on top |\n\n### Common USS workarounds\n\n| Need | USS-safe workaround |\n|------|---------------------|\n| Shadow | Extra child `VisualElement` behind content |\n| Responsive scaling | `PanelSettings.scaleMode = ScaleWithScreenSize` |\n| Grid cards | `flex-direction: row` + `flex-wrap: wrap` + child widths |\n| Circular avatar | Equal width\u002Fheight + radius = half size + `overflow:hidden` |\n| Pseudo decoration | Add an extra absolutely positioned child |\n\n### High-Frequency Parameters\n\n| Skill | Parameters you usually need first |\n|-------|-----------------------------------|\n| `uitk_create_panel_settings` | `savePath`, `scaleMode`, `referenceResolutionX`, `referenceResolutionY` |\n| `uitk_create_document` | `name`, `uxmlPath`, `panelSettingsPath`, `sortOrder?` |\n| `uitk_add_element` | `filePath`, `elementType`, `parentName?`, `elementName?`, `text?`, `classes?` |\n| `uitk_modify_element` | `filePath`, `elementName`, changed attributes only |\n| `uitk_add_uss_rule` | `filePath`, `selector`, `properties` |\n\n### `PanelSettings` choices\n\n- `ScaleWithScreenSize`: default for runtime HUD\u002Fmenu UI\n- `ConstantPixelSize`: use when strict pixel mapping matters\n- `ConstantPhysicalSize`: rare; only for physically sized UI requirements\n\nUnity 6 world-space flows also need the scene-side document camera setup after configuring PanelSettings.\n\n### File and Structure Rules\n\n- Prefer one UXML root that references shared token\u002Fstyle files through `\u003CStyle src=\"...\"\u002F>`.\n- Keep USS next to UXML when possible so relative style references stay short.\n- Use `uitk_inspect_uxml` before complex structural edits if you did not create the file yourself.\n- `uitk_create_uxml` can auto-reference a stylesheet when `ussPath` is provided.\n\n## Workflow Notes\n\n1. Create USS\u002FUXML first, then attach them through `uitk_create_document`.\n2. Runtime rendering needs a valid `PanelSettings` asset.\n3. When USS and UXML are in the same folder, prefer `\u003CStyle src=\"MyStyle.uss\" \u002F>`; use a full asset path only for cross-folder references.\n4. Start with design tokens, then component rules, then layout containers.\n5. For incremental edits, prefer `uitk_read_file` -> edit -> `uitk_write_file`.\n6. When creating 2+ files, use `uitk_create_batch`.\n7. Unity 6 world-space rendering uses PanelSettings world-space options plus the scene-side `UIDocument` camera setup.\n8. Use `uitk_create_from_template` when the user needs a starter screen fast; use `uitk_add_element` \u002F `uitk_add_uss_rule` for targeted edits on existing files.\n\n## Minimal Example\n\n```python\nimport unity_skills\n\nunity_skills.call_skill(\"uitk_create_panel_settings\",\n    savePath=\"Assets\u002FUI\u002FGamePanel.asset\",\n    scaleMode=\"ScaleWithScreenSize\",\n    referenceResolutionX=1920,\n    referenceResolutionY=1080\n)\n\nunity_skills.call_skill(\"uitk_create_uss\",\n    savePath=\"Assets\u002FUI\u002FHUD.uss\",\n    content=\":root { --accent: #E8632B; } .title { color: var(--accent); }\"\n)\n\nunity_skills.call_skill(\"uitk_create_uxml\",\n    savePath=\"Assets\u002FUI\u002FHUD.uxml\",\n    content=\"\u003C?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?>\u003Cengine:UXML xmlns:engine=\\\"UnityEngine.UIElements\\\">\u003CStyle src=\\\"HUD.uss\\\" \u002F>\u003Cengine:Label class=\\\"title\\\" text=\\\"Start\\\" \u002F>\u003C\u002Fengine:UXML>\"\n)\n\nunity_skills.call_skill(\"uitk_create_document\",\n    name=\"HUD\",\n    uxmlPath=\"Assets\u002FUI\u002FHUD.uxml\",\n    panelSettingsPath=\"Assets\u002FUI\u002FGamePanel.asset\"\n)\n```\n\n## Exact Signatures\n\nExact names, parameters, defaults, and returns are defined by `GET \u002Fskills\u002Fschema` or `unity_skills.get_skill_schema()`, not by this file.\nLoad `USS_REFERENCE.md` before generating non-trivial USS systems, layout patterns, component styles, or complete examples.\n","# Unity UI Toolkit Skills\n\nUse this module for Unity UI Toolkit only: `UXML` for structure, `USS` for styling, `UIDocument` for scene attachment, and `PanelSettings` for runtime rendering.\n\n> **Requires Unity 2022.3+**. Do not mix this module with `ui_*` UGUI\u002FCanvas skills.\n> **Localization**: Match visible UI text to the user's language. Chinese conversation -> Chinese labels\u002Fplaceholders\u002Fbutton text. USS class names and CSS variables stay English.\n\n## Operating Mode\n\n- **Approval**（默认）：查询类 skill（`uitk_read_file` \u002F `uitk_find_files` \u002F `uitk_get_panel_settings` \u002F `uitk_list_documents` \u002F `uitk_inspect_uxml` \u002F `uitk_list_uss_variables` \u002F `uitk_inspect_document`，源码标 `SkillMode.SemiAuto`）直接执行；其余文件\u002F场景写入类（`uitk_create_*` \u002F `uitk_write_file` \u002F `uitk_add_*` \u002F `uitk_modify_element` 等，标 `SkillMode.FullAuto`）需用户 grant，grant 后服务端一步执行返结果。\n- **Auto \u002F Bypass**：未被禁列表拦截的 skill 直接执行。\n- 本模块**含 Delete 类 skill**：`uitk_delete_file`、`uitk_remove_element`、`uitk_remove_uss_rule` 标记为 `SkillOperation.Delete`，被 `IsForbiddenInSemi` 静态拦截 —— 仅 **Bypass** 模式或加入 **Allowlist** 才能调用。\n- **Asset 重导行为**：所有写文件\u002F删文件 skill 通过 `AssetDatabase.ImportAsset(path)` 对单个 USS\u002FUXML 资产单独触发导入，**不会**调 `AssetDatabase.Refresh()` 触发全项目扫描；批量创建依次单独 Import。但 USS\u002FUXML 是 ScriptedImporter 类型，Import 仍会重建依赖此资产的 PanelSettings\u002FUIDocument 引用，触发 IMGUI 检查器刷新与场景视图重绘。\n\n**DO NOT** (common hallucinations):\n- `uitoolkit_create_button` \u002F `uitoolkit_create_label` do not exist -> use `uitk_add_element`\n- `uitoolkit_set_style` does not exist -> use `uitk_add_uss_rule`, `uitk_remove_uss_rule`, or `uitk_modify_element`\n- `uitoolkit_create_canvas` does not exist -> UI Toolkit uses `UIDocument`, not Canvas\n- `uitk_*` and `ui_*` are different systems. Do not mix UI Toolkit structure\u002Fstyling assumptions into UGUI workflows\n- USS is **not full CSS**. `display:grid`, `box-shadow`, `calc()`, `@media`, `::before`, `z-index`, and gradients are unsupported\n\n**Routing**:\n- For UGUI Canvas\u002FButton\u002FText\u002FImage -> use the `ui` module\n- For XR world-space Canvas conversion -> use `xr_setup_ui_canvas`\n- For generated starter layouts -> use `uitk_create_from_template`\n- For attaching an existing UXML to a scene object -> use `uitk_create_document` or `uitk_set_document`\n\n## Skills\n\n### File Skills\n\n| Skill | Use | Key parameters |\n|-------|-----|----------------|\n| `uitk_create_uss` | Create USS file | `savePath`, `content?` |\n| `uitk_create_uxml` | Create UXML file | `savePath`, `content?`, `ussPath?` |\n| `uitk_read_file` | Read USS\u002FUXML content | `filePath` |\n| `uitk_write_file` | Overwrite file content | `filePath`, `content` |\n| `uitk_delete_file` | Delete USS\u002FUXML file | `filePath` |\n| `uitk_find_files` | Search files by name\u002Fpath | `type?`, `folder?`, `filter?`, `limit?` |\n| `uitk_create_batch` | Create 2+ files in one call | `items` |\n\n### Scene Skills\n\n| Skill | Use | Key parameters |\n|-------|-----|----------------|\n| `uitk_create_document` | Create `UIDocument` GameObject | `name`, `uxmlPath?`, `panelSettingsPath?`, `sortOrder?`, `parentName?`\u002F`parentInstanceId?`\u002F`parentPath?` |\n| `uitk_set_document` | Change UIDocument asset bindings | `name`\u002F`instanceId`, `uxmlPath?`, `panelSettingsPath?` |\n| `uitk_create_panel_settings` | Create PanelSettings asset | `savePath`, `scaleMode`, `referenceResolutionX\u002FY`, Unity 6 world-space options |\n| `uitk_get_panel_settings` | Read PanelSettings values | `assetPath` |\n| `uitk_set_panel_settings` | Update PanelSettings selectively | `assetPath`, changed fields only |\n| `uitk_list_documents` | List scene UIDocuments | none |\n| `uitk_inspect_document` | Inspect live VisualElement tree | `name`\u002F`instanceId`\u002F`path`, `depth` |\n\n### UXML Structure Skills\n\n| Skill | Use | Key parameters |\n|-------|-----|----------------|\n| `uitk_add_element` | Add a child element | `filePath`, `elementType`, `parentName?`, `elementName?`, `text?`, `classes?` |\n| `uitk_remove_element` | Remove by `name` | `filePath`, `elementName` |\n| `uitk_modify_element` | Change attributes\u002Fclasses\u002Ftext | `filePath`, `elementName`, `text?`, `classes?`, `style?`, `newName?`, `bindingPath?`, custom attribute fields |\n| `uitk_clone_element` | Duplicate an element subtree | `filePath`, `elementName`, `newName?` |\n| `uitk_inspect_uxml` | Parse UXML hierarchy | `filePath`, `depth?` |\n\n### USS Style Skills\n\n| Skill | Use | Key parameters |\n|-------|-----|----------------|\n| `uitk_add_uss_rule` | Add or replace selector rule | `filePath`, `selector`, `properties` |\n| `uitk_remove_uss_rule` | Remove selector rule | `filePath`, `selector` |\n| `uitk_list_uss_variables` | Inspect design tokens \u002F `var()` usage | `filePath` |\n\n### Template and CodeGen Skills\n\n| Skill | Use | Key parameters |\n|-------|-----|----------------|\n| `uitk_create_from_template` | Generate paired UXML+USS | `template`, `savePath`, `name?` |\n| `uitk_create_editor_window` | Generate EditorWindow script | `savePath`, `className`, `uxmlPath?`, `ussPath?`, `menuPath?` |\n| `uitk_create_runtime_ui` | Generate runtime MonoBehaviour query scaffold | `savePath`, `className`, `elementQueries?` |\n\nSupported starter templates include `menu`, `hud`, `dialog`, `settings`, `inventory`, `list`, `tab-view`, `toolbar`, `card`, and `notification`.\n\n## Core Domain Knowledge\n\n### USS vs CSS\n\n| Pattern | Supported in USS | What to do |\n|---------|------------------|------------|\n| Flex layout | Yes | Use `flex-direction`, `flex-wrap`, `align-items`, `justify-content` |\n| `border-radius`, `opacity`, `overflow:hidden` | Yes | Safe to use |\n| Transforms \u002F transitions | Yes | `translate`, `scale`, `rotate` work |\n| CSS variables | Yes | Prefer `:root` tokens |\n| `display:grid` \u002F `display:block` \u002F `display:inline` | No | Everything is flex; emulate grids with wrapping rows |\n| `box-shadow` | No | Fake with nested background element |\n| `linear-gradient()` \u002F `radial-gradient()` | No | Use image textures |\n| `calc()` \u002F `@media` | No | Use explicit values + `PanelSettings.scaleMode` |\n| `::before` \u002F `::after` | No | Add a real child `VisualElement` |\n| `z-index` | No | Later siblings render on top |\n\n### Common USS workarounds\n\n| Need | USS-safe workaround |\n|------|---------------------|\n| Shadow | Extra child `VisualElement` behind content |\n| Responsive scaling | `PanelSettings.scaleMode = ScaleWithScreenSize` |\n| Grid cards | `flex-direction: row` + `flex-wrap: wrap` + child widths |\n| Circular avatar | Equal width\u002Fheight + radius = half size + `overflow:hidden` |\n| Pseudo decoration | Add an extra absolutely positioned child |\n\n### High-Frequency Parameters\n\n| Skill | Parameters you usually need first |\n|-------|-----------------------------------|\n| `uitk_create_panel_settings` | `savePath`, `scaleMode`, `referenceResolutionX`, `referenceResolutionY` |\n| `uitk_create_document` | `name`, `uxmlPath`, `panelSettingsPath`, `sortOrder?` |\n| `uitk_add_element` | `filePath`, `elementType`, `parentName?`, `elementName?`, `text?`, `classes?` |\n| `uitk_modify_element` | `filePath`, `elementName`, changed attributes only |\n| `uitk_add_uss_rule` | `filePath`, `selector`, `properties` |\n\n### `PanelSettings` choices\n\n- `ScaleWithScreenSize`: default for runtime HUD\u002Fmenu UI\n- `ConstantPixelSize`: use when strict pixel mapping matters\n- `ConstantPhysicalSize`: rare; only for physically sized UI requirements\n\nUnity 6 world-space flows also need the scene-side document camera setup after configuring PanelSettings.\n\n### File and Structure Rules\n\n- Prefer one UXML root that references shared token\u002Fstyle files through `\u003CStyle src=\"...\"\u002F>`.\n- Keep USS next to UXML when possible so relative style references stay short.\n- Use `uitk_inspect_uxml` before complex structural edits if you did not create the file yourself.\n- `uitk_create_uxml` can auto-reference a stylesheet when `ussPath` is provided.\n\n## Workflow Notes\n\n1. Create USS\u002FUXML first, then attach them through `uitk_create_document`.\n2. Runtime rendering needs a valid `PanelSettings` asset.\n3. When USS and UXML are in the same folder, prefer `\u003CStyle src=\"MyStyle.uss\" \u002F>`; use a full asset path only for cross-folder references.\n4. Start with design tokens, then component rules, then layout containers.\n5. For incremental edits, prefer `uitk_read_file` -> edit -> `uitk_write_file`.\n6. When creating 2+ files, use `uitk_create_batch`.\n7. Unity 6 world-space rendering uses PanelSettings world-space options plus the scene-side `UIDocument` camera setup.\n8. Use `uitk_create_from_template` when the user needs a starter screen fast; use `uitk_add_element` \u002F `uitk_add_uss_rule` for targeted edits on existing files.\n\n## Minimal Example\n\n```python\nimport unity_skills\n\nunity_skills.call_skill(\"uitk_create_panel_settings\",\n    savePath=\"Assets\u002FUI\u002FGamePanel.asset\",\n    scaleMode=\"ScaleWithScreenSize\",\n    referenceResolutionX=1920,\n    referenceResolutionY=1080\n)\n\nunity_skills.call_skill(\"uitk_create_uss\",\n    savePath=\"Assets\u002FUI\u002FHUD.uss\",\n    content=\":root { --accent: #E8632B; } .title { color: var(--accent); }\"\n)\n\nunity_skills.call_skill(\"uitk_create_uxml\",\n    savePath=\"Assets\u002FUI\u002FHUD.uxml\",\n    content=\"\u003C?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?>\u003Cengine:UXML xmlns:engine=\\\"UnityEngine.UIElements\\\">\u003CStyle src=\\\"HUD.uss\\\" \u002F>\u003Cengine:Label class=\\\"title\\\" text=\\\"Start\\\" \u002F>\u003C\u002Fengine:UXML>\"\n)\n\nunity_skills.call_skill(\"uitk_create_document\",\n    name=\"HUD\",\n    uxmlPath=\"Assets\u002FUI\u002FHUD.uxml\",\n    panelSettingsPath=\"Assets\u002FUI\u002FGamePanel.asset\"\n)\n```\n\n## Exact Signatures\n\nExact names, parameters, defaults, and returns are defined by `GET \u002Fskills\u002Fschema` or `unity_skills.get_skill_schema()`, not by this file.\nLoad `USS_REFERENCE.md` before generating non-trivial USS systems, layout patterns, component styles, or complete examples.\n",{"name":5,"metadata":54,"use-when":58,"platforms":59,"description":7,"do-not-use-when":62,"task-categories":63},{"tier":55,"source":56,"version":57},2,"https:\u002F\u002Fgithub.com\u002FBesty0728\u002FUnity-Skills","1.9.2","Load when the task requires: UI Toolkit (UITK) for Unity — create\u002Fedit USS stylesheets and UXML layouts, configure UIDocument + PanelSettings in scenes, generate EditorWindow \u002F runtime UI scaffolds. This is the UXML\u002FUSS\u002FVisualElement system; for Canvas-based UGUI use the `ui` module. Unity Editor must be running with the unity-skills REST server reachable at http:\u002F\u002Flocalhost:8090.",[60,61],"unity-editor","claude-code","Do not load when Unity Editor is not running locally. Do not load when unity-skills REST server is unreachable at http:\u002F\u002Flocalhost:8090.",[64,43,65],"ui-toolkit","editor-automation","main","fe4746b9f07e6c7c2b6d3932002183af9b9f6fa2",".claude\u002Fskills\u002Funity-skills\u002Fskills\u002Fuitoolkit",0,"https:\u002F\u002Fgithub.com\u002FdyCuong03\u002Funity-agent-team","https:\u002F\u002Fgithub.com\u002FdyCuong03","Game developer","2026-07-25 22:22:25",{"source":8,"skillName":5,"commands":75,"prompt":85,"zipAvailable":86},[76,79,82],{"tool":77,"command":78},"npx","npx skills add dyCuong03\u002Funity-agent-team --skill unity-uitoolkit",{"tool":80,"command":81},"bunx","bunx skills add dyCuong03\u002Funity-agent-team --skill unity-uitoolkit",{"tool":83,"command":84},"pnpm","pnpm dlx skills add dyCuong03\u002Funity-agent-team --skill unity-uitoolkit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FdyCuong03\u002Funity-agent-team\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Funity-skills\u002Fskills\u002Fuitoolkit\u002FSKILL.md",true,[88],{"path":89,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":92,"sourceHtmlUrl":93},"USS_REFERENCE.md","REFERENCE","参考文档",10089,"https:\u002F\u002Fgithub.com\u002FdyCuong03\u002Funity-agent-team\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Funity-skills\u002Fskills\u002Fuitoolkit\u002FUSS_REFERENCE.md",[95,120,143,166,185,205],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":49},"01M6KH55FFS00ET877QSMRYGX4","dots-update-groups","How to choose the right ECS system group and ordering so per-frame and per-fixed-step work is deterministic and never races its own readers. Covers InitializationSystemGroup \u002F SimulationSystemGroup \u002F PresentationSystemGroup \u002F FixedStepSimulationSystemGroup \u002F VariableRateSimulationSystemGroup, UpdateBefore \u002F UpdateAfter peer ordering, OrderFirst \u002F OrderLast group-boundary placement, RateManager, and the cross-group ordering trap. Use when adding an ISystem, fixing \"value visible one frame late\" bugs, or coupling simulation to a fixed timestep.","https:\u002F\u002Fgithub.com\u002FdyCuong03\u002Funity-agent-team\u002Fblob\u002Fmain\u002Fworkspace\u002Fdots-program\u002Fscratch\u002Fwave-2-orchestrator-drafts\u002Fdots-update-groups\u002FSKILL.md",[],[102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119],"update","dots update groups","boundary","simulation","how","system","choose","work","use","never","peer","deterministic","how to","coupling","ecs","bugs","frame","value",{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":49},"01M6KH50PWYEFQDCGYBZ0326F1","dots-transform-patterns","The Entities 1.x transform model — LocalTransform (writable input) vs LocalToWorld (system-owned matrix), Parent\u002FChild hierarchy, reparenting cost, uniform vs non-uniform scale (PostTransformMatrix), and when to opt out with custom transform systems. Use when designing parent\u002Fchild hierarchies, runtime reparenting (mount\u002Fdismount\u002Fsocket), or choosing transform components at the Baker boundary.","https:\u002F\u002Fgithub.com\u002FdyCuong03\u002Funity-agent-team\u002Fblob\u002Fmain\u002Fworkspace\u002Fdots-program\u002Fscratch\u002Fwave-2-orchestrator-drafts\u002Fdots-transform-patterns\u002FSKILL.md",[],[127,128,129,130,104,107,131,132,110,133,134,135,136,137,138,139,32,140,141,142],"patterns","transform","dots transform patterns","components","mount","model","cost","runtime","systems","input","with","matrix","socket","child","custom","hierarchy",{"skillNo":144,"name":145,"nameZh":6,"description":146,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":147,"categories":148,"keywords":152,"publishedAt":49},"01M6KH4VW4MA14DQW4KQYPFT0S","dots-singleton-patterns","Model cross-system shared configuration and game state as a single-entity component with a strict single-writer contract. Covers RequireForUpdate gating, SystemAPI.GetSingleton \u002F GetSingletonRW \u002F HasSingleton \u002F TryGetSingleton, bake-time vs runtime-created vs ECB-system singletons, the \"exactly one entity\" runtime invariant, and the single-writer rule. Use when designing frame-stable global config, shared mutable state, or any component intended to exist on exactly one entity.","https:\u002F\u002Fgithub.com\u002FdyCuong03\u002Funity-agent-team\u002Fblob\u002Fmain\u002Fworkspace\u002Fdots-program\u002Fscratch\u002Fwave-2-orchestrator-drafts\u002Fdots-singleton-patterns\u002FSKILL.md",[149],{"categoryNo":150,"categoryName":151,"taxonomyType":26,"taxonomyTypeDesc":27},"01JBSEEDCAT000000000000037","律师与法务",[127,153,154,155,156,157,158,107,132,110,159,160,161,134,162,163,137,118,164,165],"singleton","dots singleton patterns","component","config","state","game","writer","time","shared","contract","as","ecb","gating",{"skillNo":167,"name":168,"nameZh":6,"description":169,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":170,"categories":171,"keywords":172,"publishedAt":49},"01M6KH4PR076AYNDZHD63HHWX6","dots-hybrid-bridge","The one-way bridge between DOTS-owned runtime state and Unity-owned presentation. Covers UnityObjectRef for managed asset refs in components, the DOTS-writes \u002F Unity-reads ownership rule, when to use managed IComponentData vs UnityObjectRef vs CompanionComponent, baker-bridge vs runtime-bridge, and SubScene boundary rules. Use when an entity must reference Unity assets (Mesh, Material, AudioClip, ScriptableObject), a MonoBehaviour view must read entity state, or input\u002FUI must trigger ECS work.","https:\u002F\u002Fgithub.com\u002FdyCuong03\u002Funity-agent-team\u002Fblob\u002Fmain\u002Fworkspace\u002Fdots-program\u002Fscratch\u002Fwave-2-orchestrator-drafts\u002Fdots-hybrid-bridge\u002FSKILL.md",[],[173,174,175,176,130,157,104,177,178,109,179,180,110,134,181,30,136,182,183,184],"bridge","hybrid","dots hybrid bridge","mesh","assets","Rules","read","view","trigger","material","for","managed",{"skillNo":186,"name":187,"nameZh":6,"description":188,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":189,"categories":190,"keywords":191,"publishedAt":49},"01M6KH4FGRQ9AP2ND5H5HX4D83","dots-event-driven-ecs","Model one-frame events and external requests in ECS without dual ownership, polling, or persistent state leaks. Covers request-tag pattern with ECB, enableable command components (no structural change), event buffers (IBufferElementData), explicit consumer ownership, one-frame latency rules, and the banned C# event \u002F UnityEvent \u002F static bus anti-patterns. Use when input\u002FUI\u002Fnetwork must trigger ECS work, when a one-frame signal fans out to N consumers (damage, hit, collision), or when state changes must be processed exactly once.","https:\u002F\u002Fgithub.com\u002FdyCuong03\u002Funity-agent-team\u002Fblob\u002Fmain\u002Fworkspace\u002Fdots-program\u002Fscratch\u002Fwave-2-orchestrator-drafts\u002Fdots-event-driven-ecs\u002FSKILL.md",[],[192,193,116,194,195,130,196,43,197,132,109,198,199,127,200,201,136,202,203,204],"event driven","driven","event","dots event driven ecs","change","network","command","anti-patterns","pattern","structural","events","static","request",{"skillNo":206,"name":207,"nameZh":6,"description":208,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":209,"categories":210,"keywords":220,"publishedAt":49},"01M6KH4BWRGCEBJ8PKCKCSGT33","valid_skill","A complete, well-formed test fixture skill for SkillHub validation testing. Covers basic task routing and code review for Unity projects.","https:\u002F\u002Fgithub.com\u002FdyCuong03\u002Funity-agent-team\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fvalid_skill\u002FSKILL.md",[211,214,217],{"categoryNo":212,"categoryName":213,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000007","代码审查",{"categoryNo":215,"categoryName":216,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000008","测试与质量",{"categoryNo":218,"categoryName":219,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[221,222,223,224,225,226,227,44,228,229,230,231,232,233,30,234,183],"valid skill","valid","code review","testing","review","test","routing","validation","projects","fixture skill","task","fixture","basic","complete"]