[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79Q1PFGPJ9ESKNNH1Q4PNZX":3,"skill-same:01M79Q1PFGPJ9ESKNNH1Q4PNZX":69},{"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":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M79Q1PFGPJ9ESKNNH1Q4PNZX","roblox-ui",null,"Build production Roblox interfaces with ScreenGui\u002FPlayerGui lifecycle, responsive UDim2 layouts, safe insets, reusable editable Instances, cross-device input and selection, restrained motion, cleanup, and multi-viewport verification. Use for Roblox HUDs, inventories, shops, settings, ability bars, ScrollingFrames, AutomaticSize, GuiService, gamepad focus, touch UI, or UI that clips, resets on respawn, looks generic, or was generated as one giant LocalScript.","JunMystery\u002FAgent-Guidance","JunMystery","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F161468934?v=4","01M79MTMV8F0BY8NK1A92RA8A0","Jun","01M79MTMWCFBKPHN5B25E6V20B",0,"MIT","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Froblox-ui\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: roblox-ui\ndescription: >\n  Build production Roblox interfaces with ScreenGui\u002FPlayerGui lifecycle, responsive UDim2\n  layouts, safe insets, reusable editable Instances, cross-device input and selection, restrained\n  motion, cleanup, and multi-viewport verification. Use for Roblox HUDs, inventories, shops,\n  settings, ability bars, ScrollingFrames, AutomaticSize, GuiService, gamepad focus, touch UI, or\n  UI that clips, resets on respawn, looks generic, or was generated as one giant LocalScript.\n---\n\n# Roblox UI\n\nImplement deliberate, editable Roblox UI that preserves the experience's visual language and\nworks across supported devices. Targets Roblox's rolling platform APIs. Pair with `game-ui-ux`\nfor engine-neutral information architecture and UX; this skill owns Roblox Instances and APIs.\n\n## When to use\n\n- Use for authored `ScreenGui` interfaces, Roblox layout\u002Fconstraint APIs, UI lifecycle, input,\n  focus, animation, performance, or responsive\u002Fdevice fixes.\n- Use to replace brittle pixel layouts, runtime-created Instance tangles, mouse-only menus, or\n  generic generated styling with a maintainable hierarchy.\n\n**When not to use:** general UX flow and accessibility principles belong to `game-ui-ux`; raw\ngameplay action mapping belongs to `input-systems`; server trust belongs to `roblox-networking`.\n\n## Workflow\n\n1. **Inspect before designing.** In Explorer, inventory existing `ScreenGui`s, UI modules,\n   fonts, colors, icon family, spacing, corners, strokes, animation timing, naming, and reusable\n   components, including any `StyleSheet`\u002F`StyleLink` styling, tokens and themes. Capture\n   representative screenshots at two viewports. Extend that language.\n2. **Define ownership and lifecycle.** `StarterGui` is the authored template; Roblox clones it\n   into each player's `PlayerGui`. Decide whether each `ScreenGui` should persist across respawn\n   with `ResetOnSpawn = false`; never keep stale references to a destroyed clone.\n3. **Author a readable hierarchy.** Prefer meaningful editable Instances and small behavior\n   modules. A normal screen should be understandable in Explorer; procedural generation is for\n   genuinely data-driven repetition, not the whole shell.\n4. **Build responsive structure.** Combine `UDim2` scale for placement with bounded offsets,\n   correct `AnchorPoint`s, layouts, padding, content sizing, and constraints. Choose explicit\n   narrow\u002Fwide arrangements instead of shrinking a desktop panel until it technically fits.\n5. **Handle platform obstructions.** Keep interactive UI in `CoreUISafeInsets` (the recommended\n   `ScreenGui.ScreenInsets` default), and account for touch controls and TV distance\u002Foverscan.\n6. **Wire state and input.** Render from a small view state; update on events. Use `Activated` for\n   `GuiButton`s, explicit selected states, and reachable gamepad navigation. Bind non-widget\n   actions with `ContextActionService` only while the screen owns them.\n7. **Polish with restraint.** Implement hover, pressed, selected, and disabled states. Animate\n   state changes, not decoration; honor `GuiService.ReducedMotionEnabled` and clean up tweens and\n   connections when the screen closes or is replaced.\n8. **Verify the real interface.** Use Device Simulator and Controller Emulator. Test desktop,\n   narrow portrait, mobile landscape, tablet-like, and console\u002Fgamepad; then respawn. Record\n   clipping, overlap, text, scroll, safe-area, focus path, touch target, and lifecycle results.\n\n## Production structure\n\n```text\nStarterGui\n└── InventoryGui (ScreenGui; ResetOnSpawn = false)\n    ├── Root (Frame)\n    │   ├── Header\n    │   ├── Content\n    │   │   ├── CategoryList\n    │   │   ├── ItemGrid (ScrollingFrame)\n    │   │   └── DetailsPanel\n    │   └── Footer\n    └── InventoryController (LocalScript)\nReplicatedStorage\n└── UI\n    ├── Components\n    └── Theme\n```\n\nNames describe roles, not colors or temporary positions. Keep repeated item cells as templates or\ncomponents, but keep the authored shell visible in Explorer.\n\n## Patterns\n\n### Layout that survives content and viewport changes\n\n```lua\n-- Authored properties on ItemGrid (ScrollingFrame):\n--   AutomaticCanvasSize = Enum.AutomaticSize.Y\n--   CanvasSize = UDim2.fromOffset(0, 0)\n-- Children: UIPadding + UIGridLayout\nlocal grid = itemGrid.UIGridLayout\nlocal projectBreakpoint = 700 -- derive from where this composition stops being usable\n\nlocal function applyComposition()\n    local narrow = root.AbsoluteSize.X \u003C projectBreakpoint\n    categoryList.UIListLayout.FillDirection = if narrow\n        then Enum.FillDirection.Horizontal\n        else Enum.FillDirection.Vertical\n    categoryList.Size = if narrow\n        then UDim2.new(1, 0, 0, 40)\n        else UDim2.new(0, 148, 1, 0)\n    itemGrid.Position = if narrow then UDim2.fromOffset(0, 52) else UDim2.fromOffset(164, 0)\n    itemGrid.Size = if narrow\n        then UDim2.new(1, 0, 1, -52)\n        else UDim2.new(0.58, -164, 1, 0)\n    detailsPanel.Visible = not narrow -- open details as a separate narrow-screen state\n\n    local width = itemGrid.AbsoluteSize.X\n    local columns = if width \u003C 520 then 2 elseif width \u003C 820 then 3 else 4\n    local gap = 12\n    local usable = width - itemGrid.UIPadding.PaddingLeft.Offset\n        - itemGrid.UIPadding.PaddingRight.Offset - gap * (columns - 1)\n    grid.CellSize = UDim2.fromOffset(math.floor(usable \u002F columns), 112)\n    grid.CellPadding = UDim2.fromOffset(gap, gap)\nend\n\nroot:GetPropertyChangedSignal(\"AbsoluteSize\"):Connect(applyComposition)\napplyComposition()\n```\n\nUse `UIListLayout` for one-dimensional flow, `UIGridLayout` for uniform cells, and\n`UITableLayout` only when row\u002Fcolumn alignment is truly tabular. `AutomaticSize` fits content;\n`AutomaticCanvasSize` fits scroll content. Bound extremes with `UISizeConstraint`,\n`UIAspectRatioConstraint`, or `UITextSizeConstraint` rather than one global `UIScale` guess.\n\n### One activation path and explicit gamepad entry\n\n```lua\nlocal GuiService = game:GetService(\"GuiService\")\nlocal RunService = game:GetService(\"RunService\")\nlocal UserInputService = game:GetService(\"UserInputService\")\n\nlocal function usesDirectionalFocus(): boolean\n    local preferred = UserInputService.PreferredInput\n    return preferred == Enum.PreferredInput.Gamepad\n        or preferred == Enum.PreferredInput.MicroGamepad\nend\n\nlocal function focusFirstItem()\n    task.spawn(function()\n        RunService.RenderStepped:Wait() -- selection must be rendered and selectable\n        if root.Visible and usesDirectionalFocus() then\n            GuiService.SelectedObject = firstItemButton\n        end\n    end)\nend\n\nlocal function openInventory()\n    root.Visible = true\n    focusFirstItem()\nend\n\nlocal function closeInventory()\n    GuiService.SelectedObject = nil\n    root.Visible = false\nend\n\n-- Owned by the screen lifecycle; disconnect on teardown.\nlocal inputConnection = UserInputService:GetPropertyChangedSignal(\"PreferredInput\"):Connect(function()\n    if root.Visible and GuiService.SelectedObject == nil then focusFirstItem() end\nend)\n\nfirstItemButton.Activated:Connect(function()\n    selectItem(firstItemButton:GetAttribute(\"ItemId\"))\nend)\n```\n\nDecide input-dependent UI from `UserInputService.PreferredInput`, which follows the player's\nprimary device; `TouchEnabled`\u002F`GamepadEnabled` are capabilities (a touch laptop reports touch)\nand `GetLastInputType()` thrashes. Prefer `Activated` over separate mouse\u002Ftouch handlers. Set `NextSelectionUp\u002FDown\u002FLeft\u002FRight`\nwhen automatic navigation is ambiguous, especially around grids, sidebars, and modals. A modal\nmust trap focus inside itself and restore a sensible selection when it closes.\n\nFor cross-device action binding, the Input Action System (`InputContext`\u002F`InputAction`\u002F\n`InputBinding`) is the modern edit-time layer; see `references\u002Finput-navigation.md`.\n\nInspect Roblox's default selection adornment in context. If it overwhelms the interface, assign a\nproject-owned `SelectionImageObject` or selected-state treatment; keep it visible, valid, and\nrestrained rather than disabling focus feedback.\n\n### State transition without animation noise\n\n```lua\nlocal TweenService = game:GetService(\"TweenService\")\nlocal GuiService = game:GetService(\"GuiService\")\nlocal fade = TweenInfo.new(0.14, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)\n\nlocal function setPanelVisible(visible: boolean)\n    panel.Visible = true -- panel is a CanvasGroup\n    if GuiService.ReducedMotionEnabled then\n        panel.GroupTransparency = if visible then 0 else 1\n    else\n        TweenService:Create(panel, fade, {\n            GroupTransparency = if visible then 0 else 1,\n        }):Play()\n    end\n    if not visible then\n        task.delay(fade.Time, function()\n            if panel.GroupTransparency == 1 then panel.Visible = false end\n        end)\n    end\nend\n```\n\nAnimate a panel or state boundary once. Do not independently bounce every descendant.\n\n## Visual quality gates\n\n- Establish hierarchy through size, weight, contrast, grouping, and whitespace before adding\n  decoration. Use a small spacing scale and align to it.\n- Preserve the game's fonts, palette, icons, radii, and strokes. If the project uses UI styling,\n  change tokens and `StyleRule`s rather than per-instance properties; the Properties window\n  marks styled properties with ⚠ and names the style on hover. If nothing exists, define a compact token set (a token `StyleSheet` or module); do not improvise per\n  component.\n- Use corners where the material\u002Fform calls for them, not on every nested `Frame`. Avoid nested\n  card-on-card shells, universal pills, arbitrary gradients\u002Fglows\u002Fshadows, neon outlines,\n  excessive transparency\u002Fblur, oversized headings, meaningless icons, and huge empty panels.\n- Buttons with different importance should not look identical. Define primary, secondary,\n  quiet, destructive, selected, pressed, hover, and disabled treatment only as needed.\n- Motion communicates open\u002Fclose, focus, confirmation, or spatial relationship. Keep it short,\n  interruptible, and subtle; avoid perpetual motion and decorative tween chains.\n- On touch devices, reserve the default movement\u002Fjump corners. Move or recompose bottom actions\n  that overlap them, and show only the hints for the current `PreferredInput`.\n\n## Common failures\n\n| Symptom | Likely cause | Remedy |\n|---|---|---|\n| UI disappears or duplicates after respawn | wrong `ResetOnSpawn` policy or stale clone | choose policy; reacquire from `PlayerGui`; clean old bindings |\n| Phone layout clips | desktop offsets\u002Fglobal scale used as layout | add narrow composition, layouts, bounds, and Device Simulator checks |\n| Content hidden under topbar\u002Fnotch | insets ignored or `ScreenInsets = None` | use `CoreUISafeInsets` for interactive UI; inspect intentional bleed |\n| Scroll ends early | fixed `CanvasSize` | use `AutomaticCanvasSize` or layout `AbsoluteContentSize` |\n| Controller gets stuck | no entry selection or bad neighbor graph | set initial `SelectedObject`; define and test focus edges\u002Fmodal trap |\n| UI looks generated | decoration substituted for hierarchy | remove effects; align, reduce nesting, fix density and component roles |\n| Explorer contains only one script | entire authored interface is procedural | author the shell as named Instances; generate repeated content only |\n| Increasing connection\u002Ftween count | screen rebinds without cleanup | own connections per screen lifecycle; disconnect\u002Fcancel on teardown |\n\n## Resources\n\n- Read `references\u002Fresponsive-layout.md` for layout decisions, inset policy, density, and the\n  required viewport matrix.\n- Read `references\u002Finput-navigation.md` when implementing gamepad\u002Ftouch focus, modal behavior,\n  action binding, or motion preferences.\n- Build `assets\u002Finventory-quality-test.project.json` with Rojo (it maps the adjacent JSON model)\n  for an editable Instance fixture used in visual\u002Flayout review; it is a test baseline, not a style\n  template for a shipping game.\n\n## Related skills\n\n- `game-ui-ux` — information hierarchy, screen flow, accessibility, and UX validation.\n- `input-systems` — gameplay action mapping and device switching.\n- `roblox-networking` — server-authoritative requests initiated by UI.\n- `roblox-studio-workflow` — Explorer-first editing and Studio verification.\n\n## Primary references\n\n- Roblox Creator Hub: `https:\u002F\u002Fcreate.roblox.com\u002Fdocs\u002Fui\u002Fon-screen-containers`\n- Roblox Creator Hub: `https:\u002F\u002Fcreate.roblox.com\u002Fdocs\u002Fui\u002Fposition-and-size`\n- Roblox Creator Hub: `https:\u002F\u002Fcreate.roblox.com\u002Fdocs\u002Fui\u002Fsize-modifiers`\n- Roblox Creator Hub: `https:\u002F\u002Fcreate.roblox.com\u002Fdocs\u002Fstudio\u002Ftesting-modes`\n","# Roblox UI\n\nImplement deliberate, editable Roblox UI that preserves the experience's visual language and\nworks across supported devices. Targets Roblox's rolling platform APIs. Pair with `game-ui-ux`\nfor engine-neutral information architecture and UX; this skill owns Roblox Instances and APIs.\n\n## When to use\n\n- Use for authored `ScreenGui` interfaces, Roblox layout\u002Fconstraint APIs, UI lifecycle, input,\n  focus, animation, performance, or responsive\u002Fdevice fixes.\n- Use to replace brittle pixel layouts, runtime-created Instance tangles, mouse-only menus, or\n  generic generated styling with a maintainable hierarchy.\n\n**When not to use:** general UX flow and accessibility principles belong to `game-ui-ux`; raw\ngameplay action mapping belongs to `input-systems`; server trust belongs to `roblox-networking`.\n\n## Workflow\n\n1. **Inspect before designing.** In Explorer, inventory existing `ScreenGui`s, UI modules,\n   fonts, colors, icon family, spacing, corners, strokes, animation timing, naming, and reusable\n   components, including any `StyleSheet`\u002F`StyleLink` styling, tokens and themes. Capture\n   representative screenshots at two viewports. Extend that language.\n2. **Define ownership and lifecycle.** `StarterGui` is the authored template; Roblox clones it\n   into each player's `PlayerGui`. Decide whether each `ScreenGui` should persist across respawn\n   with `ResetOnSpawn = false`; never keep stale references to a destroyed clone.\n3. **Author a readable hierarchy.** Prefer meaningful editable Instances and small behavior\n   modules. A normal screen should be understandable in Explorer; procedural generation is for\n   genuinely data-driven repetition, not the whole shell.\n4. **Build responsive structure.** Combine `UDim2` scale for placement with bounded offsets,\n   correct `AnchorPoint`s, layouts, padding, content sizing, and constraints. Choose explicit\n   narrow\u002Fwide arrangements instead of shrinking a desktop panel until it technically fits.\n5. **Handle platform obstructions.** Keep interactive UI in `CoreUISafeInsets` (the recommended\n   `ScreenGui.ScreenInsets` default), and account for touch controls and TV distance\u002Foverscan.\n6. **Wire state and input.** Render from a small view state; update on events. Use `Activated` for\n   `GuiButton`s, explicit selected states, and reachable gamepad navigation. Bind non-widget\n   actions with `ContextActionService` only while the screen owns them.\n7. **Polish with restraint.** Implement hover, pressed, selected, and disabled states. Animate\n   state changes, not decoration; honor `GuiService.ReducedMotionEnabled` and clean up tweens and\n   connections when the screen closes or is replaced.\n8. **Verify the real interface.** Use Device Simulator and Controller Emulator. Test desktop,\n   narrow portrait, mobile landscape, tablet-like, and console\u002Fgamepad; then respawn. Record\n   clipping, overlap, text, scroll, safe-area, focus path, touch target, and lifecycle results.\n\n## Production structure\n\n```text\nStarterGui\n└── InventoryGui (ScreenGui; ResetOnSpawn = false)\n    ├── Root (Frame)\n    │   ├── Header\n    │   ├── Content\n    │   │   ├── CategoryList\n    │   │   ├── ItemGrid (ScrollingFrame)\n    │   │   └── DetailsPanel\n    │   └── Footer\n    └── InventoryController (LocalScript)\nReplicatedStorage\n└── UI\n    ├── Components\n    └── Theme\n```\n\nNames describe roles, not colors or temporary positions. Keep repeated item cells as templates or\ncomponents, but keep the authored shell visible in Explorer.\n\n## Patterns\n\n### Layout that survives content and viewport changes\n\n```lua\n-- Authored properties on ItemGrid (ScrollingFrame):\n--   AutomaticCanvasSize = Enum.AutomaticSize.Y\n--   CanvasSize = UDim2.fromOffset(0, 0)\n-- Children: UIPadding + UIGridLayout\nlocal grid = itemGrid.UIGridLayout\nlocal projectBreakpoint = 700 -- derive from where this composition stops being usable\n\nlocal function applyComposition()\n    local narrow = root.AbsoluteSize.X \u003C projectBreakpoint\n    categoryList.UIListLayout.FillDirection = if narrow\n        then Enum.FillDirection.Horizontal\n        else Enum.FillDirection.Vertical\n    categoryList.Size = if narrow\n        then UDim2.new(1, 0, 0, 40)\n        else UDim2.new(0, 148, 1, 0)\n    itemGrid.Position = if narrow then UDim2.fromOffset(0, 52) else UDim2.fromOffset(164, 0)\n    itemGrid.Size = if narrow\n        then UDim2.new(1, 0, 1, -52)\n        else UDim2.new(0.58, -164, 1, 0)\n    detailsPanel.Visible = not narrow -- open details as a separate narrow-screen state\n\n    local width = itemGrid.AbsoluteSize.X\n    local columns = if width \u003C 520 then 2 elseif width \u003C 820 then 3 else 4\n    local gap = 12\n    local usable = width - itemGrid.UIPadding.PaddingLeft.Offset\n        - itemGrid.UIPadding.PaddingRight.Offset - gap * (columns - 1)\n    grid.CellSize = UDim2.fromOffset(math.floor(usable \u002F columns), 112)\n    grid.CellPadding = UDim2.fromOffset(gap, gap)\nend\n\nroot:GetPropertyChangedSignal(\"AbsoluteSize\"):Connect(applyComposition)\napplyComposition()\n```\n\nUse `UIListLayout` for one-dimensional flow, `UIGridLayout` for uniform cells, and\n`UITableLayout` only when row\u002Fcolumn alignment is truly tabular. `AutomaticSize` fits content;\n`AutomaticCanvasSize` fits scroll content. Bound extremes with `UISizeConstraint`,\n`UIAspectRatioConstraint`, or `UITextSizeConstraint` rather than one global `UIScale` guess.\n\n### One activation path and explicit gamepad entry\n\n```lua\nlocal GuiService = game:GetService(\"GuiService\")\nlocal RunService = game:GetService(\"RunService\")\nlocal UserInputService = game:GetService(\"UserInputService\")\n\nlocal function usesDirectionalFocus(): boolean\n    local preferred = UserInputService.PreferredInput\n    return preferred == Enum.PreferredInput.Gamepad\n        or preferred == Enum.PreferredInput.MicroGamepad\nend\n\nlocal function focusFirstItem()\n    task.spawn(function()\n        RunService.RenderStepped:Wait() -- selection must be rendered and selectable\n        if root.Visible and usesDirectionalFocus() then\n            GuiService.SelectedObject = firstItemButton\n        end\n    end)\nend\n\nlocal function openInventory()\n    root.Visible = true\n    focusFirstItem()\nend\n\nlocal function closeInventory()\n    GuiService.SelectedObject = nil\n    root.Visible = false\nend\n\n-- Owned by the screen lifecycle; disconnect on teardown.\nlocal inputConnection = UserInputService:GetPropertyChangedSignal(\"PreferredInput\"):Connect(function()\n    if root.Visible and GuiService.SelectedObject == nil then focusFirstItem() end\nend)\n\nfirstItemButton.Activated:Connect(function()\n    selectItem(firstItemButton:GetAttribute(\"ItemId\"))\nend)\n```\n\nDecide input-dependent UI from `UserInputService.PreferredInput`, which follows the player's\nprimary device; `TouchEnabled`\u002F`GamepadEnabled` are capabilities (a touch laptop reports touch)\nand `GetLastInputType()` thrashes. Prefer `Activated` over separate mouse\u002Ftouch handlers. Set `NextSelectionUp\u002FDown\u002FLeft\u002FRight`\nwhen automatic navigation is ambiguous, especially around grids, sidebars, and modals. A modal\nmust trap focus inside itself and restore a sensible selection when it closes.\n\nFor cross-device action binding, the Input Action System (`InputContext`\u002F`InputAction`\u002F\n`InputBinding`) is the modern edit-time layer; see `references\u002Finput-navigation.md`.\n\nInspect Roblox's default selection adornment in context. If it overwhelms the interface, assign a\nproject-owned `SelectionImageObject` or selected-state treatment; keep it visible, valid, and\nrestrained rather than disabling focus feedback.\n\n### State transition without animation noise\n\n```lua\nlocal TweenService = game:GetService(\"TweenService\")\nlocal GuiService = game:GetService(\"GuiService\")\nlocal fade = TweenInfo.new(0.14, Enum.EasingStyle.Quad, Enum.EasingDirection.Out)\n\nlocal function setPanelVisible(visible: boolean)\n    panel.Visible = true -- panel is a CanvasGroup\n    if GuiService.ReducedMotionEnabled then\n        panel.GroupTransparency = if visible then 0 else 1\n    else\n        TweenService:Create(panel, fade, {\n            GroupTransparency = if visible then 0 else 1,\n        }):Play()\n    end\n    if not visible then\n        task.delay(fade.Time, function()\n            if panel.GroupTransparency == 1 then panel.Visible = false end\n        end)\n    end\nend\n```\n\nAnimate a panel or state boundary once. Do not independently bounce every descendant.\n\n## Visual quality gates\n\n- Establish hierarchy through size, weight, contrast, grouping, and whitespace before adding\n  decoration. Use a small spacing scale and align to it.\n- Preserve the game's fonts, palette, icons, radii, and strokes. If the project uses UI styling,\n  change tokens and `StyleRule`s rather than per-instance properties; the Properties window\n  marks styled properties with ⚠ and names the style on hover. If nothing exists, define a compact token set (a token `StyleSheet` or module); do not improvise per\n  component.\n- Use corners where the material\u002Fform calls for them, not on every nested `Frame`. Avoid nested\n  card-on-card shells, universal pills, arbitrary gradients\u002Fglows\u002Fshadows, neon outlines,\n  excessive transparency\u002Fblur, oversized headings, meaningless icons, and huge empty panels.\n- Buttons with different importance should not look identical. Define primary, secondary,\n  quiet, destructive, selected, pressed, hover, and disabled treatment only as needed.\n- Motion communicates open\u002Fclose, focus, confirmation, or spatial relationship. Keep it short,\n  interruptible, and subtle; avoid perpetual motion and decorative tween chains.\n- On touch devices, reserve the default movement\u002Fjump corners. Move or recompose bottom actions\n  that overlap them, and show only the hints for the current `PreferredInput`.\n\n## Common failures\n\n| Symptom | Likely cause | Remedy |\n|---|---|---|\n| UI disappears or duplicates after respawn | wrong `ResetOnSpawn` policy or stale clone | choose policy; reacquire from `PlayerGui`; clean old bindings |\n| Phone layout clips | desktop offsets\u002Fglobal scale used as layout | add narrow composition, layouts, bounds, and Device Simulator checks |\n| Content hidden under topbar\u002Fnotch | insets ignored or `ScreenInsets = None` | use `CoreUISafeInsets` for interactive UI; inspect intentional bleed |\n| Scroll ends early | fixed `CanvasSize` | use `AutomaticCanvasSize` or layout `AbsoluteContentSize` |\n| Controller gets stuck | no entry selection or bad neighbor graph | set initial `SelectedObject`; define and test focus edges\u002Fmodal trap |\n| UI looks generated | decoration substituted for hierarchy | remove effects; align, reduce nesting, fix density and component roles |\n| Explorer contains only one script | entire authored interface is procedural | author the shell as named Instances; generate repeated content only |\n| Increasing connection\u002Ftween count | screen rebinds without cleanup | own connections per screen lifecycle; disconnect\u002Fcancel on teardown |\n\n## Resources\n\n- Read `references\u002Fresponsive-layout.md` for layout decisions, inset policy, density, and the\n  required viewport matrix.\n- Read `references\u002Finput-navigation.md` when implementing gamepad\u002Ftouch focus, modal behavior,\n  action binding, or motion preferences.\n- Build `assets\u002Finventory-quality-test.project.json` with Rojo (it maps the adjacent JSON model)\n  for an editable Instance fixture used in visual\u002Flayout review; it is a test baseline, not a style\n  template for a shipping game.\n\n## Related skills\n\n- `game-ui-ux` — information hierarchy, screen flow, accessibility, and UX validation.\n- `input-systems` — gameplay action mapping and device switching.\n- `roblox-networking` — server-authoritative requests initiated by UI.\n- `roblox-studio-workflow` — Explorer-first editing and Studio verification.\n\n## Primary references\n\n- Roblox Creator Hub: `https:\u002F\u002Fcreate.roblox.com\u002Fdocs\u002Fui\u002Fon-screen-containers`\n- Roblox Creator Hub: `https:\u002F\u002Fcreate.roblox.com\u002Fdocs\u002Fui\u002Fposition-and-size`\n- Roblox Creator Hub: `https:\u002F\u002Fcreate.roblox.com\u002Fdocs\u002Fui\u002Fsize-modifiers`\n- Roblox Creator Hub: `https:\u002F\u002Fcreate.roblox.com\u002Fdocs\u002Fstudio\u002Ftesting-modes`\n",{"name":5,"description":7},"main","5d0a87185c0e172c3901e2a6e5916b6d544b8b94","skills\u002Froblox-ui","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance","https:\u002F\u002Fgithub.com\u002FJunMystery","AI is the typist, I am the architect. Building efficient, secure, and user-centric products through disciplined AI prompt engineering.","2026-11-13 17:41:25",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add JunMystery\u002FAgent-Guidance --skill roblox-ui",{"tool":37,"command":38},"bunx","bunx skills add JunMystery\u002FAgent-Guidance --skill roblox-ui",{"tool":40,"command":41},"pnpm","pnpm dlx skills add JunMystery\u002FAgent-Guidance --skill roblox-ui","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Froblox-ui\u002FSKILL.md",true,[45,51,57,61,65],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"agents\u002Fopenai.yaml","REFERENCE","参考文档",190,"https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Froblox-ui\u002Fagents\u002Fopenai.yaml",{"path":52,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":55,"sourceHtmlUrl":56},"assets\u002Finventory-quality-test.model.json","ASSET","资产文件",12115,"https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Froblox-ui\u002Fassets\u002Finventory-quality-test.model.json",{"path":58,"resourceType":53,"resourceTypeDesc":54,"sizeBytes":59,"sourceHtmlUrl":60},"assets\u002Finventory-quality-test.project.json",229,"https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Froblox-ui\u002Fassets\u002Finventory-quality-test.project.json",{"path":62,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Finput-navigation.md",4826,"https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Froblox-ui\u002Freferences\u002Finput-navigation.md",{"path":66,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fresponsive-layout.md",6969,"https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Froblox-ui\u002Freferences\u002Fresponsive-layout.md",[70,76,82,88,94,100],{"skillNo":71,"name":72,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M79QR1E309VJ6CTQKB32AWWA","zero-trust-architecture-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fzero-trust-architecture-cheat-sheet\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M79QQV7GHYR02DYGN41S23WN","xss-filter-evasion-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fxss-filter-evasion-cheat-sheet\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M79QQNSN7YB8XB61FFSCS3WH","xs-leaks-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fxs-leaks-cheat-sheet\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M79QQHZZJKFDY9132G5A65C2","xpath-injection-prevention-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fxpath-injection-prevention-cheat-sheet\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M79QQB9ZSD3DJG8658EHQXR1","xml-security-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fxml-security-cheat-sheet\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":19},"01M79QQ60WKV7PFMXWT9CW8PM6","xml-external-entity-prevention-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fxml-external-entity-prevention-cheat-sheet\u002FSKILL.md",[],[]]