skillZs
★ LIVE SKILL TAGS ★
>>> LIVE SKILLS INDEX <<<
* OPEN SOURCE *
NO LOGIN, NO TRACKING
※ REAL INSTALL DATA ※
← back to all skills
tabooharmony/roblox-brain135 installs

roblox-debugging

Use when finding or fixing a Roblox bug or a failing test: live-only bugs, logs, debugger, Studio vs live gaps, unit tests, CI test runs.

How do I install this agent skill?

npx skills add https://github.com/tabooharmony/roblox-brain --skill roblox-debugging
view source ↗

Is this agent skill safe to install?

  • Gen Agent Trust Hubpass

    The skill provides comprehensive instructions for Roblox debugging and testing, including the use of cloud-based execution and production data access. It can interact with live game services and execute test scripts, so ensure appropriate project isolation and credentials are used.

  • Socketpass

    No alerts

  • Snykwarn

    Risk: MEDIUM · 2 issues

What does this agent skill do?

Roblox Debugging and Testing

When to Load

Any bug hunt or test work: errors, wrong behavior, "works in Studio, broken live", flaky or lying tests, CI test runs. The Studio MCP playtest loop, console reads, captures and subagent unit_test mode: roblox-studio-mcp. Frame time and memory: roblox-performance. "Is the fix live?": roblox-publish-checklist. CI wiring and runner exit codes: roblox-tooling §4.

"Field-observed" = seen in the owner's projects.

Traps and review checklist (symptom -> cause -> fix)

  • Bug only on live servers, never in Studio -> a Studio playtest runs server and client on one machine: no real round trip, no live server load, no replication queued behind many players, no real phone. A clean Studio run proves nothing about a live-only bug, so don't start by reproducing it in Studio. Get evidence from a live server and client first: timestamps on the real path, the live Developer Console, the server MicroProfiler (§1). Simulate only afterwards, to test a fix.
  • Network Simulator didn't reproduce it -> it adds only latency, jitter and packet loss to Studio playtest connections. Not server CPU load, player count or phone speed. Zero it for a baseline (roblox-studio-mcp §3).
  • A Studio test changed real player data -> with Enable Studio Access to API Services on, Studio reads and writes the live game's DataStores, and places in one game share them. Test in a separate game under the same group. Studio DataStore calls also get separate, possibly lower, static limits: test throttling in Team Create.
  • MemoryStore bug won't reproduce in Studio, or Studio hits quota -> Studio memory stores are isolated from production (TEST scope). Quotas that scale with players are tiny with one tester, and Studio adds latency and errors from access checks. Debug the live store with the Developer Console.
  • Teleport or server-type logic differs in Studio -> tests support only TeleportAsync. In Test, JobId and PrivateServerId are always empty; in Team Test every server is private; VIP teleports and GetPlayerPlaceInstanceAsync fail.
  • Paused the playtest, scripts kept running -> Pause stops physics, animations, PreAnimation, PreSimulation, PostSimulation and Stepped only. Scripts, Heartbeat, PreRender and RenderStepped keep running. Freeze code with a breakpoint.
  • Only on mobile -> the Device Simulator emulates screen, DPI and touch, not a phone's CPU or memory. Profile a real phone: set MicroProfiler to On in its Settings, then open the shown IP:port from a browser on the same network.
  • Live Developer Console shows no server log -> the Server view needs edit permission (owner or group editors). Its command bar runs with normal script security, not Studio command bar rights.
  • Custom error logger misses errors -> ScriptContext.Error fires only for unhandled errors (not inside pcall) and never for Script timeout watchdog kills. Engine messages such as asset load failures didn't reach a custom logger (field-observed): read each client's F9 log too.
  • Error Report lacks a new error -> it tracks a capped number of unique messages (Limits); group or ignore noise with rules (Error Reporting API).
  • Intermittent, can't reproduce -> ship targeted logs (summary lines, stable prefix) and wait for the next report; don't guess a fix.
  • Tests pass, game broken -> handler-only tests skip the client sender. A nil index early in a client action stopped every hit reaching the server while server tests passed (field-observed). Run one action of each kind through the real client and read the client error log.
  • Breaks on the 2nd or 3rd use, tests green -> tests start fresh. Fire each tool 5+ times, including after reload, stow and draw, and swap. Start timer tests on a cooldown's last frame, and log every server rejection with its reason (field-observed).
  • Flaky test -> hidden time, randomness or order: inject now and a seeded Random, sort dictionary keys before weighted picks, and wait on a condition with a deadline, not a fixed sleep. Never hide flakes behind an unconditional retry.
  • TestService throws -> its APIs work only in a Studio playtest (Test, Test Here, Run) or on a Team Test server. Edit mode, the command bar while editing, and live servers throw. Guard: if not TestService.Enabled then return end.
  • CI green, nothing tested -> a filter typo makes RunTestsAsync return Enum.TestRunStatus.NoTests. Pass only on Status == Enum.TestRunStatus.Pass with Total > 0.

Limits

ItemValue <!-- temporal: 2026-11 -->
Server MicroProfiler (live, Developer Console, edit permission)max 60 frames, max 4 s delay
Mobile MicroProfiler web UIlast 30 frames; <ip:port>/90 for more
Error Report tracking500 unique errors + 500 warnings, top 100 new errors per version, reset every 6 h
Error Reporting API60 requests/min per key; universe.analytics:read (:write for rules)
LogService:GetLogHistoryAsyncTeam Test only, last 512 messages, yields and can error
Server & Clients, StudioTestService (plugin-only)up to 8 clients; one multiplayer test per Studio
TestService test timeout30 s default (0-86400, 0 = none)

1. Live-only bugs (the order that works)

  1. Instrument the real path. Log workspace:GetServerTimeNow() at client fire, server receive, server apply, and client display, plus game.JobId and the player. Compare the gaps with the ping on the Developer Console's shortcut bar. A gap near ping is the round trip: fix with client-side feedback or prediction (roblox-networking). A gap well over ping is the server: look at its frame time.
  2. Profile a busy live server. Desktop client in a game you can edit: Ctrl+F9 -> MicroProfiler -> Server, then Begin server recording during the repro. Script Profiler (Server) and Memory tabs sit beside it (roblox-performance).
  3. Read the Error Report filtered by version and platform.
  4. Only then reproduce the suspected condition in Studio (Network Simulator, several clients, a long session) to test a fix, and confirm the fix live.

Logs: label code for the MicroProfiler with debug.profilebegin/debug.profileend. Never drive game logic from log events (the docs call them unreliable and possibly truncated).

2. Where to look

  • Team Test: Output Sources shows collaborators' client output (not the server's). LogService:GetLogHistoryAsync(player.User) reads a collaborator's history; User.fromId(0) reads the server's.
  • Structured logs <!-- temporal: 2026-11 -->: LogService:GetLogger("Combat"), nested with :GetLogger("Damage"). Messages take {key} placeholders plus a context table, and a logger's MessageOut fires on every ancestor. Hold a reference to each logger: one with no references is reclaimed and errors when called.
  • Debugger from an agent: the Studio MCP rbx-debug skill (ScriptDebuggerService; OnStopped must be set on each play DataModel). Latency: rbx-network-simulator. Devices: rbx-device-simulator-lua. Profiling: rbx-perf-profiling.
  • Code coverage <!-- temporal: 2026-11 -->: ScriptContext:EnableCoverage(root) then GetCoverageStats(). Needs PluginOrOpenCloud (plugin, MCP or Luau Execution), not game scripts.

3. Tests: what's current (checked 2026-11-29)

ToolStatusRuns where
TestServicebuilt into the engineStudio playtest or Team Test server only
Jest Roblox (Roblox/jest-roblox, Wally roblox/jest 3.21.0)Roblox's maintained Jest 27 portinside Roblox only: Studio or Open Cloud Luau Execution; not Lune
jsdotlua/jest-lualast release 3.10.0 (2024-12)migrate to roblox/jest
TestEZarchived 2024-03 (v0.4.2)keep only where a project already uses it
Lune 0.11.1 (2026-10)standalone Luau runtimepure modules only, no engine; quirks in roblox-tooling §5
Studio MCP rbx-unit-testuses Jest or TestEZ if present, else its own harnessserver DataModel during Play; no client-only APIs
  • Jest Roblox: require every global from JestGlobals (describe, it and expect aren't implicit). Matchers are dot calls: expect(x).toBe(y). The entry point is Jest.runCLI(root, options, { projects }):awaitStatus(). The roblox-cli runner in its docs is Roblox-internal.
  • TestService: test:Check records and continues, test:Require stops the test. Tables compare deeply, NaN never equals, Instances compare by identity. NamePattern is a plain substring, and only one run can go at a time. Checks made after a test ends are ignored, so a check in a thread that outlives its test doesn't count. A timed-out test leaves its spawned threads running.
  • Luau Execution in CI: physics doesn't run and place scripts don't start, so your script must require what it tests. DataModel changes aren't kept, but DataStore calls hit real data: use a test game. Whether TestService.Enabled is true in a task isn't documented, so check it at runtime. Return counts and gate on them (roblox-tooling §4).

Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.

<a href="https://skillzs.dev/skills/tabooharmony/roblox-brain/roblox-debugging">View roblox-debugging on skillZs</a>