Enforces a strict, anti-exploit Roblox Studio DataModel hierarchy, ServerStorage-to-ReplicatedStorage on-demand asset streaming flow, StarterGui HUD.Frames.Center + PartGUI layout, and direct ReplicatedStorage.Controllers UI module binding whenever creating or editing instances/scripts via Roblox Studio MCP. Use before modifying any Roblox Studio place, creating folders/scripts/UI, or loading game assets.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of roblox-studio-architect?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/jamorant404-roblox-studio-architect)
---
name: roblox-studio-architect
description: >-
Enforces a strict, anti-exploit Roblox Studio DataModel hierarchy, ServerStorage-to-ReplicatedStorage
on-demand asset streaming flow, StarterGui HUD.Frames.Center + PartGUI layout, and direct
ReplicatedStorage.Controllers UI module binding whenever creating or editing instances/scripts via
Roblox Studio MCP. Use before modifying any Roblox Studio place, creating folders/scripts/UI,
or loading game assets.
---
# Roblox Studio Architect (Strict MCP Guardrails)
Never scatter scripts, UI, or assets into arbitrary Roblox services. Every instance and script created or edited in Roblox Studio **must** follow the canonical layout and asset-security workflow below.
## 1. Canonical DataModel Hierarchy
```text
game
├── ReplicatedStorage
│ ├── Assets -- ONLY runtime-provisioned / currently active safe assets
│ ├── Controllers -- Direct UI controller modules matching HUD.Frames.Center.<Menu>
│ │ ├── ShopController -- Controls StarterGui.HUD.Frames.Center.Shop
│ │ └── IndexController -- Controls StarterGui.HUD.Frames.Center.Index
│ └── Modules -- Shared pure modules, types, frozen configs, remote helpers
│ └── Remotes -- Typed RemoteEvent/RemoteFunction registry
├── ServerScriptService
│ └── Service -- Server entry point + all server-authoritative services
│ ├── Main -- Bootstraps all server services
│ └── AssetLoaderService -- Streams/clones requested assets from ServerStorage -> ReplicatedStorage.Assets
├── ServerStorage
│ └── Assets -- MASTER VAULT: All unreleased, sensitive, or on-demand game assets
│ ├── Models
│ ├── Weapons
│ ├── Maps
│ └── VFX
├── StarterGui
│ ├── HUD -- Main ScreenGui
│ │ └── Frames
│ │ └── Center -- Centered modal menus ONLY (Shop, Index, Inventory, Settings...)
│ └── PartGUI -- SurfaceGui / BillboardGui container for world parts
└── StarterPlayer
└── StarterPlayerScripts
└── ClientMain -- Thin LocalScript bootstrapper initializing ReplicatedStorage.Controllers
```
### Placement Rules (Zero Drift)
| Asset / Code Type | Required Location | Never Put Here |
| --- | --- | --- |
| Server scripts & services | `game.ServerScriptService.Service` | `Workspace`, `ReplicatedStorage`, `ServerStorage` |
| Shared configs / utilities / remotes | `game.ReplicatedStorage.Modules` | `ServerScriptService`, `StarterGui` |
| Master models, maps, weapons, VFX | `game.ServerStorage.Assets` | Static `ReplicatedStorage.Assets` |
| Currently active / streamed assets | `game.ReplicatedStorage.Assets` | Static dumping of entire asset library |
| Main HUD & centered menu frames | `game.StarterGui.HUD.Frames.Center.<MenuName>` | Loose ScreenGuis at root `StarterGui` |
| World-attached UI (`BillboardGui` / `SurfaceGui`) | `game.StarterGui.PartGUI` | Inside `HUD` |
| Menu & HUD controller modules | `game.ReplicatedStorage.Controllers.<MenuName>Controller` | Nested sub-folders or inside `StarterGui` frames |
| Client entry script | `game.StarterPlayer.StarterPlayerScripts.ClientMain` | Inside `StarterGui` or `Workspace` |
---
## 2. Anti-Exploit Asset Streaming Flow (`ServerStorage` -> `ReplicatedStorage`)
Exploiters can inspect and dump everything inside `ReplicatedStorage` and `Workspace` as soon as they join. Keeping the full asset library in `ReplicatedStorage` exposes unreleased or rare assets immediately.
**Required runtime flow:**
1. **Store all master assets in `game.ServerStorage.Assets`** (clients cannot read `ServerStorage`).
2. **Keep `game.ReplicatedStorage.Assets` free of unreleased/unused assets at edit time**.
3. **Load on demand via `ServerScriptService.Service.AssetLoaderService`**:
- When gameplay genuinely needs an asset (e.g., an event starts, a round loads a map, or a player equips an unlocked item), the server validates the request and clones only that asset into `game.ReplicatedStorage.Assets` (or directly into `Workspace` / `player.Backpack` / `player.PlayerGui` when per-player/world-specific).
- Track active reference counts so the server calls `ReleaseAsset(category, assetName)` and destroys the replica from `ReplicatedStorage.Assets` once no longer needed.
> **Security Note:** Once an asset is cloned into `ReplicatedStorage.Assets`, connected clients can see *that active asset* while it is present. Never replicate server-secret scripts or unvalidated data; only stream the specific asset currently in use.
---
## 3. UI & Controllers Convention
Keep `StarterGui` minimal and predictable:
- `game.StarterGui.HUD` (`ScreenGui`, `ResetOnSpawn = false`)
- `Frames` (`Frame`)
- `Center` (`Frame` centered with `AnchorPoint = (0.5, 0.5)`, `Position = UDim2.fromScale(0.5, 0.5)`)
- `<MenuName>` (e.g., `Shop`, `Index`, `Inventory`)
- `game.StarterGui.PartGUI` (for `SurfaceGui` / `BillboardGui` instances)
**1-to-1 Direct Controller Rule:**
- Every menu `<MenuName>` under `StarterGui.HUD.Frames.Center` **must** have its controller `ModuleScript` directly inside `game.ReplicatedStorage.Controllers` named `<MenuName>Controller` (for example: `game.ReplicatedStorage.Controllers.ShopController` and `game.ReplicatedStorage.Controllers.IndexController`).
- Do **not** wrap controllers inside extra nested placeholder folders.
- Never place `LocalScript`s directly inside `StarterGui` menu frames. `ClientMain` in `StarterPlayerScripts` discovers and initializes every controller directly under `ReplicatedStorage.Controllers`.
---
## 4. Mandatory Luau Style & Remote Security
- Follow `roblox-luau-const`: `--!strict`, `const` for immutable bindings (`game:GetService`, `require`, static refs, `table.freeze`, `const function`), `local` strictly for mutable runtime state.
- Follow `roblox-remote-security` for all `RemoteEvent` / `RemoteFunction` traffic (`unknown` parameter validation, `math.isfinite`, rate limiting, server authority).
See [references/templates.md](./references/templates.md) for full copy-paste templates (`Main`, `AssetLoaderService`, `ClientMain`, `ShopController`).
---
## 5. MCP Execution Checklist (Before & After Editing Studio)
1. **Orient**: Run `list_roblox_studios` -> `get_studio_state` -> `search_game_tree` (depth-limited) to inspect existing folders and scripts.
2. **Read First**: Call `script_read` on any existing script before modifying it.
3. **Create / Edit Safely**:
- Before creating any folder (`Assets`, `Controllers`, `PartGUI`, `Service`), always check `parent:FindFirstChild(name)` first (regardless of `ClassName`) so you never create duplicate same-named siblings.
- Create missing hierarchy instances via `execute_luau` (`datamodel_type = "Edit"`) wrapped in `ChangeHistoryService:TryBeginRecording` / `FinishRecording`.
- Create or edit scripts using `multi_edit` (`datamodel_type = "Edit"`).
4. **Verify**: Run `start_stop_play` (`is_start = true`) -> `get_console_output` to confirm zero runtime/type errors -> `start_stop_play` (`is_start = false`).
5. **Save**: Call `save_place` only when edits are complete and verified (or when requested by the user).