/roblox-skills:roblox-uifrom roblox-skills
Builds responsive cross-platform Roblox UI with ScreenGui, safe areas, Scale/Offset layout, UIListLayout, constraints, StyleSheets, RichText, gamepad/touch navigation, UIDragDetector, CanvasGroup, tweens, and BillboardGui/SurfaceGui. Use for HUDs, menus, shops, inventories, or fixing UI that breaks on mobile/console.
Ships in roblox-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
StarterGui as ScreenGuis (copied to each player's PlayerGui), or create it from a
client controller. UI code is client-only; the server never touches PlayerGui in normal designs.ScreenGui defaults to set: ResetOnSpawn = false (keep UI across deaths), ZIndexBehavior = Sibling,
IgnoreGuiInset per design, ScreenInsets = CoreUISafeInsets for interactive UI (clears notches and
the Roblox top bar); DeviceSafeInsets/None only for full-bleed backgrounds.UDim2.fromScale) plus constraints; use Offset only for fixed
details (padding, strokes, icons). Pure-Offset UI breaks on phones and 4K screens.AnchorPoint = Vector2.new(0.5, 0.5) + Position = UDim2.fromScale(0.5, 0.5) centers an element.UIAspectRatioConstraint keeps shapes square/consistent; UISizeConstraint caps sizes;
UITextSizeConstraint with TextScaled bounds text size (prefer fixed TextSize + AutomaticSize
where possible — TextScaled produces inconsistent sizes).AutomaticSize lets frames grow with content (lists, tooltips, chat bubbles).| Need | Use |
|---|---|
| Rows/columns that adapt | UIListLayout (FillDirection, Padding, HorizontalFlex/VerticalFlex, Wraps) |
| One item grows to fill space | UIFlexItem child with FlexMode = Fill (or Grow/Shrink/Custom) |
| Grids (inventory) | UIGridLayout inside a ScrollingFrame with AutomaticCanvasSize |
| Carousels/pages | UIPageLayout |
| Rounded corners, borders, padding | UICorner, UIStroke, UIPadding |
| Gradients, shadows | UIGradient (Type = Linear/Radial/Conical/Elliptical), UIShadow |
| Scale a whole group | UIScale |
| UI particles (sparkles, coin bursts) | ParticleEmitter2D under any GuiObject (Studio beta, Nov 2026: can't publish yet; Emit(n), flipbooks, EmissionMode, Speed/Acceleration/Drag) |
--!strict
local Players = game:GetService("Players")
local playerGui = Players.LocalPlayer:WaitForChild("PlayerGui")
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "Hud"
screenGui.ResetOnSpawn = false
screenGui.ScreenInsets = Enum.ScreenInsets.CoreUISafeInsets
local bar = Instance.new("Frame")
bar.Name = "Toolbar"
bar.AnchorPoint = Vector2.new(0.5, 1)
bar.Position = UDim2.new(0.5, 0, 1, -16)
bar.Size = UDim2.fromScale(0.6, 0.1)
bar.BackgroundTransparency = 0.3
bar.Parent = screenGui
local list = Instance.new("UIListLayout")
list.FillDirection = Enum.FillDirection.Horizontal
list.HorizontalFlex = Enum.UIFlexAlignment.Fill -- slots share the width equally
list.Padding = UDim.new(0, 8)
list.Parent = bar
Instance.new("UICorner").Parent = bar
local padding = Instance.new("UIPadding")
padding.PaddingLeft, padding.PaddingRight = UDim.new(0, 8), UDim.new(0, 8)
padding.Parent = bar
for slot = 1, 5 do
local button = Instance.new("TextButton")
button.Name = `Slot{slot}`
button.Text = tostring(slot)
button.Size = UDim2.fromScale(0, 1)
button.Parent = bar
Instance.new("UIAspectRatioConstraint").Parent = button
end
screenGui.Parent = playerGui -- parent last: one layout pass, no flicker
Roblox's engine-level styling replaces copy-pasted property values:
StyleSheet with StyleRules (Selector like "TextButton", ".Primary" (tag), "#Close" (name),
"TextButton:Hover" (state), "::UICorner" (modifier pseudo-instance)) and rule:SetProperties({...}).$Primary, $Radius); themes are sheets deriving tokens
(StyleDerive); swap themes by retargeting the StyleDerive.StyleLink under a ScreenGui applies one sheet to that tree. Style queries (@Name) switch
styles by screen size, input type, or accessibility settings.UserInputService.PreferredInput (KeyboardAndMouse, Touch, Gamepad) and listen to
UserInputService:GetPropertyChangedSignal("PreferredInput") to swap button prompts and layouts.
Don't infer platform from TouchEnabled/KeyboardEnabled alone.GuiButton.Activated (works for mouse, touch, and gamepad) instead of MouseButton1Click.Selectable, set GuiService.SelectedObject when a menu
opens, group with SelectionGroup/NextSelection* for predictable D-pad navigation, support ButtonB
to close. Minimum touch target ≈ 44×44 px; readable text ≥ 14 px on phones.InputBinding.UIButton makes an on-screen button
trigger an action) — see roblox-input.RichText = true enables <b>, <i>, <font color="#FF0">, <stroke>, etc. Escape user text.TextService:FilterStringAsync
on the server (roblox-text-chat). That includes pet names, signs, guild names, trade notes.FontFace = Font.new("rbxasset://fonts/families/GothamSSm.json", Enum.FontWeight.Bold) for weights.LocalizationTables and auto-translation; avoid baking text into images (image
auto-translation is in beta for seven languages: Creator Hub → Audience → Localization).bg:GetContrastingColor() returns black or white (or the best of the
candidates you pass); a:GetContrastRatio(b) gives the WCAG ratio (aim for ≥ 4.5 for body text).TweenService:Create(frame, TweenInfo.new(0.2, Enum.EasingStyle.Quad), { Position = ... }):Play().UIScale.Scale for pop effects rather than Size (keeps layout stable).CanvasGroup fades a whole subtree (GroupTransparency) but renders to a texture: use it for
fading panels, not for large always-visible UI (memory/quality cost).ClipsDescendants now clips rotated children and Path2D too (default since Sep 24, 2026;
StarterGui.ClipsDescendantsSupportsRotation opt-out is removed in November 2026). To keep a rotated child
unclipped, make it a sibling with a higher ZIndex. A rotated parent still clips only inside a CanvasGroup.UIDragDetector (the deprecated GuiObject.Draggable no longer works for new work).SelectionGained/SelectionLost pass an inputDirection (Enum.GuiNavigationDirection).BillboardGui (faces camera: names, health bars) — set MaxDistance, AlwaysOnTop sparingly,
use Size in Scale for distance scaling; SurfaceGui for screens/signs on parts. Prefer
Adornee + keep them in PlayerGui for per-player content. They stop rendering when their part streams out.ProximityPrompt gives cross-platform interaction UI for free (validate on the server!).For more than a few screens, a declarative framework keeps state and UI in sync:
jsdotlua/react + react-roblox) — components + hooks, familiar to web devs, scales to big apps.Visible = false (or Enabled = false on the ScreenGui) instead of
destroying/recreating them repeatedly; build large lists lazily or virtualize them.UIGradient/CanvasGroup/UIStroke on dynamic UI costs frame time; check the MicroProfiler.roblox-input (actions, gamepad), roblox-text-chat (filtering), roblox-monetization (shops),
roblox-luau, roblox-performance.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub el4cteo/roblox-skills --plugin roblox-skills23 skills in this plugin
/roblox-analytics-liveopsAnalytics and live ops - AnalyticsService economy/funnel/onboarding/progression/custom events, player segments, experience configs via ConfigService, A/B experiments, badges, experience notifications, timed events, daily rewards, season passes. Use when instrumenting a game, tuning economy or onboarding, running A/B tests or feature flags, or planning live events and re-engagement./roblox-architectureRoblox project structure and client/server model - replication, where code and assets belong (ServerScriptService, ReplicatedStorage, StarterPlayer), RunContext, service/controller bootstrapping, player/character lifecycle, CollectionService components, attributes, streaming-safe client code, library choices. Use when starting a project, deciding where code goes, or fixing replication/streaming bugs./roblox-audioSound and music - the Audio API (AudioPlayer, AudioEmitter, AudioListener, AudioDeviceOutput, Wire, effects, faders), classic Sound/SoundGroup, 2D vs 3D audio, music and SFX volume, client vs server playback, asset permissions, streaming caveats, voice routing, text-to-speech. Use when adding music, sound effects, spatial audio, mixing, or fixing sounds that don't play./roblox-characters-animationCharacters and animation - Humanoid properties/states, spawning (LoadCharacterAsync), health and damage, HumanoidDescription appearance, Animator/AnimationTrack playback, priorities and markers, default animation replacement, Tools, TweenService, IKControl, Character Controller Library (beta). Use when changing movement, abilities, damage, respawn, avatars, animations, tweens, or tools/weapons./roblox-code-reviewReview Roblox/Luau code for exploits, data loss, memory leaks, performance problems, lifecycle bugs, policy issues, and deprecated or superseded APIs, using a severity-ranked checklist and the full 2026 deprecation map. Use when reviewing a PR or script, auditing a game before launch, modernizing legacy code, or asked what is wrong with some Roblox code./roblox-data-storesPersistence and cross-server data - DataStoreService (UpdateAsync, retries, budgets, limits), session locking with ProfileStore, schema migrations, OrderedDataStore leaderboards, MemoryStore queues/sorted maps/hash maps, MessagingService, right-to-be-forgotten. Use when saving player data, building leaderboards or queues, or fixing data loss, duplication, or throttling.Other plugins' skills for the same job