$npx -y skills add TabooHarmony/roblox-brain --skill roblox-sharp-edgesUse before shipping or reviewing Roblox code involving player data, remotes, monetization, or memory to catch high-impact production footguns.
| 1 | # roblox sharp edges |
| 2 | |
| 3 | ## When to Load |
| 4 | |
| 5 | Load before shipping or reviewing code that handles persistence, remotes, purchases, lifecycle cleanup, or high-volume instances. |
| 6 | |
| 7 | ## Quick Reference |
| 8 | |
| 9 | | Risk | Failure mode | First check | |
| 10 | | --- | --- | --- | |
| 11 | | Shared player data | two servers overwrite one profile | session ownership and release path | |
| 12 | | Remote handlers | client manufactures a reward | validate against server state | |
| 13 | | Receipts | a purchase is acknowledged without a grant | idempotent grant before acknowledgement | |
| 14 | | Connections | old players retain callbacks | disconnect on removal or destroy the owner | |
| 15 | | Shutdown | saves exceed the close window | bounded, observable flush | |
| 16 | | Instances | mobile frame time collapses | profile and stream before adding detail | |
| 17 | | Yields | startup hangs or deadlocks | explicit lifecycle phases and timeouts | |
| 18 | | Tables | length or mutation assumptions break | use explicit counts and constructors | |
| 19 | | Async work | abandoned tasks keep running | cancellation or an owner lifetime | |
| 20 | |
| 21 | **Need the details?** Load `references/full.md` for the review checklist and small corrective patterns. |