roblox-security-economy
Skill2 starsChanged 32 days agoMITView on GitHub
Build and review security-sensitive Roblox economy code - currency, inventory, saves, trading, purchases, rewards, anti-dupe logic, RemoteEvent validation, server authority, receipt handling and exploit-resistant progression. Maps source-to-sink value flows in the git repo, patches the repo source, and proves the protections in Studio through the Roblox Studio MCP with valid and forged payloads. Use whenever code grants, spends, trades, saves or sells value.
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- AshExplained/roblox-skillsedited, first seen Jul 1, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- AshExplained/roblox-skills★ 525% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository19 other files it gives its agents.
- template/CLAUDE.mdCLAUDE.md
- roblox-lessonsSkill
- audio-designSkill
- game-feelSkill
- game-ui-uxSkill
- level-designSkill
- roblox-creator-store-security-auditSkill
- roblox-dataSkill
- roblox-debugging-bugfixSkill
- roblox-devSkill
- roblox-monetizationSkill
- roblox-networkingSkill
- roblox-publish-checklistSkill
- roblox-release-operationsSkill
- roblox-securitySkill
- roblox-studio-mcpSkill
- roblox-to-issuesSkill
- roblox-toolingSkill
- save-systemsSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 3 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 33
Use session-locked saves (ProfileStore).
- Very specific: line 38
If currency can be bought with Robux, every roll paid with it is a paid random item: disclose exact odds before purchase and gate by …
- Distinctive: line 44
Commit atomically from server state.
- Distinctive: line 48
Search the repo source (grep, not the Studio copy) for remotes, currency names, save calls, receipt handlers and grant functions.
- Distinctive: line 49
Read every file that touches value.
- Very specific: line 51
Verify in Studio through the MCP: fresh Play, clean get_console_output.
- Very specific: line 52
Test receipts without spending: a temporary Script calls the real handler with fake receipts (execute_luau's shared is a plugin sandbox, …
≈ “Common” is an estimate: at least 1 in 5 of the 372,429 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Roblox Security Economy
Where this conflicts with the roblox-lessons skill, roblox-lessons wins.
Goal
Protect valuable game state while keeping the loop fair. Anything that grants, spends, trades, saves or sells value is server-authoritative.
High-risk surfaces
- Currency and premium currency.
- Inventory, pets, skins, tools, boosts and quest rewards.
- Trading, gifting, crafting, upgrades, prestige and loot rolls.
- Developer product receipts and gamepass checks.
- Daily rewards, streaks, codes, event and group rewards.
- Client remotes requesting grants, damage, teleports, placement or progression.
Server authority rules
- Calculate rewards and validate eligibility on the server.
- Store canonical balances and inventory on the server; client UI is display and intent only.
- Validate every remote argument: type, a valid key in its shared data module, ownership, affordability, distance/cooldown. Silently reject malformed, replayed, impossible or too-frequent requests.
- Make purchases and valuable grants idempotent.
- Pay repeatable rewards in seconds of the player's income with a small floor; any repeatable purchase that multiplies value needs a cap or a price ladder.
Saves and receipts
- Use session-locked saves (ProfileStore); plain
GetAsync/SetAsynclets two servers overwrite each other during fast server hops. - Save compact canonical state, not UI state.
- Store
dataVersionand migrate step by step on load; a newer or unmigratable save is left untouched and the player is asked to rejoin. Never rename the DataStore to change the format (that is a new empty store). - Studio playtests save to a separate Studio-suffixed store; Studio conveniences (join grants, force-owned passes) are guarded by
RunService:IsStudio(). - Exactly one
ProcessReceipthandler per server. Dedupe byPurchaseIdstored in the player's own session-locked save (keep the last ~50), written with the grant. ReturnNotProcessedYetwhenever unsure: player gone, data not loaded, nothing to grant, policy-blocked. - If currency can be bought with Robux, every roll paid with it is a paid random item: disclose exact odds before purchase and gate by
PolicyServiceArePaidRandomItemsRestricted(a failed lookup counts as restricted).
Trading and gifting
- Server-owned trade sessions; lock offered items while pending.
- Both parties confirm the exact final offer; revalidate ownership just before commit.
- Commit atomically from server state; log valuable trades and grant paths.
Review workflow
- Search the repo source (grep, not the Studio copy) for remotes, currency names, save calls, receipt handlers and grant functions.
- Read every file that touches value; map each source-to-sink flow before patching.
- Patch the repo files; wait for Rojo to sync before testing.
- Verify in Studio through the MCP: fresh Play, clean
get_console_output; fire each remote from the Client datamodel with a valid payload (accepted) and forged ones (wrong types, unknown keys, unaffordable, out of range, too fast), and confirm the forged ones change nothing. - Test receipts without spending: a temporary Script calls the real handler with fake receipts (
execute_luau'ssharedis a plugin sandbox, not the game's); check exact amounts, refusals, and that a repeatedPurchaseIdgrants once. Remove the temporary script afterwards. - Name what cannot be tested here (real purchases, live policy results) as a short human test.
Output
- Values protected and the trust boundary.
- Server validation rules.
- Abuse cases prevented, with the forged payloads that were rejected.
- Remaining risks and manual purchase tests for the human.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

