$npx -y skills add TabooHarmony/roblox-brain --skill roblox-code-reviewUse when reviewing Roblox or Luau code for security, performance, monetization, data persistence, or architecture risks.
| 1 | # Code Review |
| 2 | |
| 3 | Review Roblox projects with security, performance, and monetization lenses. Apply relevant lenses based on what changed — not all every time. |
| 4 | |
| 5 | ## When to Load |
| 6 | |
| 7 | - User asks for code review on Roblox/Luau code |
| 8 | - User asks to audit security, performance, networking, monetization, or data persistence |
| 9 | - User asks about Roblox best practices for remotes, data saving, or code organization |
| 10 | |
| 11 | ## Quick Reference |
| 12 | |
| 13 | ### 8-Step Review |
| 14 | 1. **Project Scan** — scripts, folders, naming, Rojo/Wally/Studio |
| 15 | 2. **Organization** — correct services, PascalCase modules, no orphans |
| 16 | 3. **Code Quality** — `wait()`→`task.wait()`, `spawn()`→`task.spawn()`, globals |
| 17 | 4. **Architecture** — single responsibility, no circular requires, server/client split |
| 18 | 5. **Security** — validate remotes server-side, no client-trusted state, rate-limit |
| 19 | 6. **Performance** — consolidate Heartbeat, cache services, disconnect events |
| 20 | 7. **Report** — Grade A-F. Severity: Critical/High/Medium/Low |
| 21 | 8. **Refactor** — Immediate → Short-term → Long-term |
| 22 | |
| 23 | ### Routing — Load These Skills for Each Lens |
| 24 | |
| 25 | | Lens | Load | |
| 26 | |------|------| |
| 27 | | Gotchas & footguns | `roblox-sharp-edges` | |
| 28 | | Security audit | `roblox-security` | |
| 29 | | Remote validation | `roblox-networking` | |
| 30 | | Data persistence | `roblox-data` | |
| 31 | | Monetization | `roblox-monetization` | |
| 32 | | Performance | `roblox-performance` | |
| 33 | | Luau correctness | `roblox-luau-core`, `roblox-luau-types` | |
| 34 | |
| 35 | ### Output Format |
| 36 | 1. READY / NOT READY |
| 37 | 2. Critical blockers |
| 38 | 3. Warnings |
| 39 | 4. Pass count/% |
| 40 | 5. Failed items + fixes |
| 41 | |
| 42 | 📖 Full reference: `references/full.md` |