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): current Studio playtest mode names and Script RunContext in luau

Kiro Crewc820568c205b
diff --git a/skills/other-engines/roblox-luau/SKILL.md b/skills/other-engines/roblox-luau/SKILL.md
index 26e36d8..147b3c6 100644
--- a/skills/other-engines/roblox-luau/SKILL.md
+++ b/skills/other-engines/roblox-luau/SKILL.md
@@ -35,7 +35,9 @@ API. Engine-agnostic input/save architecture → `input-systems` / `save-systems
(server-only code), `ServerStorage`, `RunService`, `UserInputService` (client).
2. **Know where code runs.** A `Script` runs on the **server**; a `LocalScript`
runs on a **client** (in `StarterPlayerScripts`, `StarterGui`, or the player's
- character). A `ModuleScript` is shared code you `require`.
+ character). A `Script` whose `RunContext` is `Client` also runs on clients, from
+ `ReplicatedStorage`; check `RunContext` before deciding where a `Script` runs. A
+ `ModuleScript` is shared code you `require`.
3. **Create instances deliberately.** `local p = Instance.new("Part")`, set its
properties, then set `p.Parent` **last** (parenting triggers replication).
4. **React with events.** `:Connect` to signals like `Players.PlayerAdded`,
@@ -43,8 +45,8 @@ API. Engine-agnostic input/save architecture → `input-systems` / `save-systems
5. **Cross the client/server boundary with Remotes — and never trust the client.**
Clients request via `RemoteEvent:FireServer(...)`; the server validates and
applies. The server is authoritative for all game state.
-6. **Test in Studio** with Play / Play Here / server+client Start; use the Output
- window and the server/client view toggle to confirm where code ran.
+6. **Test in Studio** with **Test** / **Test Here** / **Server & Clients**; use the
+ Output window and the Client/Server toggle to confirm where code ran.
7. **Run static checks before Studio when the project already has the tools.** Put
`std = "roblox"` in the root `selene.toml`, then run `selene .`.
For a Rojo project, write the sourcemap once with
@@ -173,7 +175,8 @@ print(GameConfig.MaxHealth)
- **`LocalScript` doesn't run where you put it** → LocalScripts run in
`StarterPlayerScripts`, `StarterCharacterScripts`, `StarterGui`, or tools — not in
`Workspace` or `ServerScriptService`. Server `Script`s belong in
- `ServerScriptService`/`Workspace`.
+ `ServerScriptService`/`Workspace`. A `Script` with `RunContext = Client` placed in a
+ `Starter*` container runs twice (original and copy); keep those in `ReplicatedStorage`.
- **Deprecated globals** → use `task.wait`/`task.spawn`/`task.delay`, not the old
`wait()`/`spawn()`/`delay()` (worse scheduling and throttling).
- **Parenting first, then setting properties** → set properties first and `Parent`
diff --git a/skills/other-engines/roblox-luau/references/client-server.md b/skills/other-engines/roblox-luau/references/client-server.md
index 71d8ad0..8e9e6b6 100644
--- a/skills/other-engines/roblox-luau/references/client-server.md
+++ b/skills/other-engines/roblox-luau/references/client-server.md
@@ -95,8 +95,9 @@ instance (placed by designers in Studio) without hard-coding references.
## Studio testing
-- **Play** — your avatar in a combined server+client session.
-- **Run** — server simulation with no player.
-- **Start (Local Server)** — separate server + N client windows; the only way to
+- **Test** (F5) / **Test Here** — your avatar in a single session; toggle between
+ the Client and Server views while it runs.
+- **Run** (F8) — simulation with no avatar.
+- **Server & Clients** — separate server + up to 8 client windows; the only way to
properly test replication and remotes. Use the Server/Client view toggle and the
Output window to confirm which side a message came from.