Skip to content

77 game-dev skills for AI coding agents — Godot, Unity, Unreal, Phaser, PixiJS, three.js, Bevy, pygame, LÖVE, Roblox. Portable SKILL.md Agent Skills (the format Anthropic launched as Claude Skills), with a router that loads the right skill for your engine and task. Runs in Claude Code, Cursor, Kiro, Codex, Copilot, Gemini CLI and more.

fix(roblox): correct respawn race, name real APIs, align UI fixture

Kiro Crewc17213acaac8
diff --git a/skills/other-engines/roblox-characters/SKILL.md b/skills/other-engines/roblox-characters/SKILL.md
index b094d09..97da993 100644
--- a/skills/other-engines/roblox-characters/SKILL.md
+++ b/skills/other-engines/roblox-characters/SKILL.md
@@ -34,8 +34,9 @@ trust belongs to `roblox-networking`; camera logic belongs to `camera-systems`.
4. **Resolve required components defensively.** Wait with a timeout where replication warrants it;
validate `Humanoid`, root, `Animator`, and rig assumptions. Abort if that character is no longer
current before applying delayed work.
-5. **Choose movement ownership.** Use Humanoid movement for standard avatars; use modern assembly
- velocity, impulses, or constraints only for mechanics that need physical control. Keep gameplay
+5. **Choose movement ownership.** Use Humanoid movement for standard avatars; use
+ `AssemblyLinearVelocity`, `BasePart:ApplyImpulse()`, or a `LinearVelocity`/`AlignPosition`
+ constraint only for mechanics that need physical control. Keep gameplay
authority and network ownership implications explicit.
6. **Own animation lifecycle.** Load via the rig's `Animator`; store tracks/connections; use named
markers for gameplay timing only with server validation; stop/disconnect on character cleanup.
@@ -59,12 +60,16 @@ local function clearCharacter()
end
local function bindCharacter(character: Model)
+ -- Guard BEFORE teardown. A stale invocation (see the CharacterAdded/defer race below) must not
+ -- clear a binding that is already current, or nothing ends up bound at all.
+ if player.Character ~= character then return end
clearCharacter()
currentCharacter = character
local thisGeneration = generation
local humanoid = character:WaitForChild("Humanoid", 10)
local root = character:WaitForChild("HumanoidRootPart", 10)
- if not humanoid or not root or player.Character ~= character then return end
+ -- Re-check after the yields: a respawn during WaitForChild bumps generation and makes this call stale.
+ if not humanoid or not root or generation ~= thisGeneration then return end
table.insert(connections, humanoid.Died:Connect(function()
if generation ~= thisGeneration then return end
diff --git a/skills/other-engines/roblox-networking/SKILL.md b/skills/other-engines/roblox-networking/SKILL.md
index 6ab0742..18161d0 100644
--- a/skills/other-engines/roblox-networking/SKILL.md
+++ b/skills/other-engines/roblox-networking/SKILL.md
@@ -127,7 +127,10 @@ replication. Log aggregate abuse signals, not one warning per rejected packet.
- With instance streaming, a valid server Instance may not exist on a client. Send a stable ID and
tolerate absence; do not wait forever for optional streamed content.
- High-rate cosmetic data may use `UnreliableRemoteEvent`; make each sample self-contained because
- delivery and order are not guaranteed. Keep payloads well below its documented size limit.
+ delivery and order are not guaranteed. Payloads over **1000 bytes are dropped** (Studio Output
+ reports the overage). `RemoteEvent` and `UnreliableRemoteEvent` also share a throttle of roughly
+ **500 calls/second per client**, counted across all remotes of that type — which is what a
+ legitimate player hits before any attacker does.
- Predict only latency-sensitive reversible presentation. Include a client sequence/command ID;
the server returns authoritative state and acknowledgement; the client corrects smoothly. Never
let prediction award damage, currency, inventory, or progression.
diff --git a/skills/other-engines/roblox-physics/SKILL.md b/skills/other-engines/roblox-physics/SKILL.md
index b89131b..40b50b8 100644
--- a/skills/other-engines/roblox-physics/SKILL.md
+++ b/skills/other-engines/roblox-physics/SKILL.md
@@ -99,8 +99,10 @@ end
```
Bounds queries use bounding boxes and can include multiple parts from one target; deduplicate and
-perform exact/gameplay checks as needed. For exact geometry use the appropriate precise overlap API
-only when its additional cost is justified.
+perform exact/gameplay checks as needed. For exact geometry use `WorldRoot:GetPartsInPart(part, overlapParams)`
+only when its additional cost is justified. Note `OverlapParams.RespectCanCollide` decides whether a
+query honours `CanCollide` or `CanQuery` — set it deliberately, or it silently overrides the flag
+policy below. `OverlapParams.Tolerance` controls contact slop.
## Assemblies, force, and ownership
@@ -123,7 +125,7 @@ only when its additional cost is justified.
|---|---|---|
| welded mechanism will not move | one part anchored | inspect full assembly; anchor only intentional world roots |
| force behaves too strongly/weakly | assembly mass ignored | inspect `AssemblyMass`; tune force/impulse by intended acceleration |
-| hit misses fast projectile | discrete touch sampling/tunneling | swept ray/shape query and `physics-tuning`; do not rely only on `.Touched` |
+| hit misses fast projectile | discrete touch sampling/tunneling | swept query — `WorldRoot:Blockcast()`, `Spherecast()`, or `Shapecast()` — plus `physics-tuning`; do not rely only on `.Touched` |
| ray hits shooter/effects | filters/collision group absent | reuse explicit params and query group |
| same target damaged many times | overlap returned multiple body parts | deduplicate by target model and enforce attack ID/cooldown |
| exploit fires impossible touch | client owns relevant physics | server query/context validation; deliberate ownership |
diff --git a/skills/other-engines/roblox-studio-workflow/references/studio-verification.md b/skills/other-engines/roblox-studio-workflow/references/studio-verification.md
index fe16e08..f34d0d0 100644
--- a/skills/other-engines/roblox-studio-workflow/references/studio-verification.md
+++ b/skills/other-engines/roblox-studio-workflow/references/studio-verification.md
@@ -11,8 +11,9 @@ Read this before claiming a change was tested in Studio.
- **Device Emulator**: resolutions, orientation, DPI/device constraints, touch simulation, and
streaming behavior under representative device conditions.
- **Controller Emulator**: input mappings and gamepad UI navigation.
-- **Studio-only scripted testing services**: automation where the installed Studio/API and project
- tooling expose observable results; do not invent a headless workflow.
+- **`TestService`**: Studio-only scripted assertions (`TestService:Check()`, `Require()`,
+ `Message()`, `Fail()`) surfaced in the Output/TestService pane. Use it where the installed
+ Studio/API and project tooling expose observable results; do not invent a headless workflow.
## Evidence record
diff --git a/skills/other-engines/roblox-ui/assets/inventory-quality-test.model.json b/skills/other-engines/roblox-ui/assets/inventory-quality-test.model.json
index 12d291d..126512e 100644
--- a/skills/other-engines/roblox-ui/assets/inventory-quality-test.model.json
+++ b/skills/other-engines/roblox-ui/assets/inventory-quality-test.model.json
@@ -165,6 +165,15 @@
"ScrollBarThickness": 4
},
"Children": [
+ {
+ "ClassName": "UIPadding",
+ "Properties": {
+ "PaddingTop": {"UDim": [0, 4]},
+ "PaddingBottom": {"UDim": [0, 4]},
+ "PaddingLeft": {"UDim": [0, 4]},
+ "PaddingRight": {"UDim": [0, 4]}
+ }
+ },
{
"ClassName": "UIGridLayout",
"Properties": {
diff --git a/skills/other-engines/roblox-ui/references/input-navigation.md b/skills/other-engines/roblox-ui/references/input-navigation.md
index bf174b3..abcb070 100644
--- a/skills/other-engines/roblox-ui/references/input-navigation.md
+++ b/skills/other-engines/roblox-ui/references/input-navigation.md
@@ -35,9 +35,10 @@ When a modal opens:
4. keep directional navigation inside the modal;
5. on close, restore the prior object or a stable fallback.
-Use `GuiService:AddSelectionParent`/`AddSelectionTuple` only after checking current API status;
-some older selection-group methods are deprecated. Prefer explicit navigation properties and
-current selection APIs when they solve the screen.
+To keep directional navigation inside the modal, set `GuiBase2d.SelectionGroup = true` on the modal
+root and set its `SelectionBehaviorUp`/`Down`/`Left`/`Right` to `Enum.SelectionBehavior.Stop`. The
+older `GuiService:AddSelectionParent()`/`AddSelectionTuple()`/`RemoveSelectionGroup()` methods are
+all deprecated — do not use them in new work.
## Context actions
diff --git a/skills/other-engines/roblox-ui/references/responsive-layout.md b/skills/other-engines/roblox-ui/references/responsive-layout.md
index e834f56..7a02620 100644
--- a/skills/other-engines/roblox-ui/references/responsive-layout.md
+++ b/skills/other-engines/roblox-ui/references/responsive-layout.md
@@ -33,8 +33,10 @@ author's primary monitor. This reference targets Roblox's rolling platform APIs.
For interactive `ScreenGui` content, retain `ScreenInsets = CoreUISafeInsets` unless the design
has a measured reason not to. Decorative backgrounds may intentionally bleed into `None`, but put
-interactive descendants in a separate inset-aware `ScreenGui` or safe root. `GuiService:GetInsetArea()`
-provides actual inset rectangles when custom positioning needs them.
+interactive descendants in a separate inset-aware `ScreenGui` or safe root.
+`GuiService:GetInsetArea(Enum.ScreenInsets.CoreUISafeInsets)` returns the actual inset rectangle when
+custom positioning needs it — the `ScreenInsets` argument is required, and which inset set you ask
+for is the point of the call. `GuiService.TopbarInset` gives the topbar rectangle on its own.
Mobile tests must include the bottom-left movement control and bottom-right jump/action region.
Console tests must consider viewing distance and overscan, not just a desktop window enlarged to TV