roblox-debug
Use when diagnosing Roblox or Luau errors, crashes, or unexpected behavior with an iterative reproduce, inspect, fix, and verify loop.
Works with
--- name: roblox-debug description: Use when diagnosing Roblox or Luau errors, crashes, or unexpected behavior with an iterative reproduce, inspect, fix, and verify loop. license: MIT --- ## When to Load Load when diagnosing errors, crashes, or unexpected behavior in Roblox/Luau code. Provides a structured 7-step iterative debug loop with a max of 5 iterations before escalating. Works in both file-sync and MCP modes. ## Quick Reference ### 7-Step Debug Loop (max 5 iterations) **1. Error Gathering** — Get exact error message, stack trace (script + line), trigger condition (join/action/timer). Use MCP for console output if available. **2. Code Discovery** — Read relevant script(s). Search for error text, function names, or script from stack trace. **3. Root Cause Analysis** — Categorize: Syntax (missing `end`) · Runtime (nil, destroyed Instance) · Logic (wrong calc/condition) · Security (client-side logic) · Performance (timeout, memory). Load `roblox-sharp-edges` for known gotchas. Find the exact line + true root cause. **4. Generate Fix** — Produce corrected Luau. Explain what was wrong, why fix works, related code to check. Flag architectural changes. **5. Apply & Test** — Write fix to file. MCP verify if available. In offline mode: before/after diff + manual test instructions. **MCP evidence:** discover/select Studio, inspect before editing, read back the fix, run playtest when relevant, and report console/screenshot limitations explicitly. **6. Verify** — Resolved → Step 7. New errors → back to Step 1. Same error → new hypothesis, back to Step 3. Iteration 5 → escalate with full diagnosis. **7. Summary** — Document: bug description · root cause · fix applied · verification · related risks · prevention pattern. If systemic, recommend `/code-review`. ### Escalation (at iteration 5) Output: all attempted fixes + why rejected, remaining hypotheses, recommended next steps (manual investigation, DevForum search, etc.). 📖 Full reference: `references/full.md`
More Debugging skills
diagnosing-bugs
mattpocock/skills
Diagnosis loop for hard bugs and performance regressions. Use when the user says "diagnose"/"debug this", or reports something broken/throwing/failing/slow.
explore-code
lllllllama/rigorpilot-skills
Rigor Improve implementation leaf skill for auditable candidate implementation in deep learning research repositories. Use when the researcher explicitly authorizes exploratory work on an isolated branch or worktree to transplant modules, adapt a backbone, add LoRA or adapter layers, replace a head, or stitch together meaningful low-risk migration ideas with rollback-aware records in `explore_outputs/`. Do not use for end-to-end exploration orchestration on top of `current_research`, trusted baseline reproduction, conservative debugging, environment setup, verified contribution claims, or default repository analysis.
safe-debug
lllllllama/rigorpilot-skills
Rigor Debug / Rigor Audit skill for deep learning research work. Use when the user pastes a traceback, terminal error, CUDA OOM, checkpoint load failure, shape mismatch, NaN loss symptom, or training failure and wants conservative diagnosis before any patching, with debug fixes clearly separated from research contributions. Do not use for broad refactoring, speculative adaptation, automatic exploratory patching, or general repository familiarization.

