rbx-data
Skill0 starsChanged 3 months agoMITView on GitHub
Domain router for persistence and platform services — walks every save/load, cross-server, teleport, and platform-API request through the persistence decision tree so player data survives crashes, trades, and shutdowns without dupes or rollbacks. Use when the request mentions "save player data", "DataStore", "ProfileStore", "session lock", "cross-server", "MemoryStore", "MessagingService", "teleport players", or when players lost their data, saves roll back, or coins vanish on rejoin. Do not use for purchase receipt handling — load `rbx-mtx-receipts` instead — or for validating the remotes that touch data — load `rbx-security` instead.
In this repository253 other files it gives its agents.
- rbx-abtestSkill
- rbx-accessibilitySkill
- rbx-analytics-eventsSkill
- rbx-analytics-funnelsSkill
- rbx-analytics-readingSkill
- rbx-animationSkill
- rbx-anim-cutscenesSkill
- rbx-anim-npcSkill
- rbx-anim-proceduralSkill
- rbx-anim-rigsSkill
- rbx-anim-tweenSkill
- rbx-architectureSkill
- rbx-assets-audioSkill
- rbx-assets-id-policySkill
- rbx-assets-sanitizeSkill
- rbx-assetsSkill
- rbx-assets-toolboxSkill
- rbx-assets-webSkill
- rbx-audio-feedback-mapSkill
- rbx-audio-mixingSkill
- rbx-audio-musicSkill
- rbx-audio-sfxSkill
- rbx-audioSkill
- rbx-audio-spatialSkill
- rbx-badges-groupsSkill
- rbx-build-compositionSkill
- rbx-build-detailingSkill
- rbx-build-greyboxSkill
- rbx-buildingSkill
- rbx-build-interiorsSkill
- rbx-build-kitbashSkill
- rbx-build-landscapeSkill
- rbx-build-propsSkill
- rbx-build-scaleSkill
- rbx-build-structuresSkill
- rbx-camera-controllersSkill
- rbx-camera-cutsceneSkill
- rbx-camera-shakeSkill
- rbx-chat-moderationSkill
- rbx-ciSkill
- rbx-combat-abilitiesSkill
- rbx-combat-hitregSkill
- rbx-combat-meleeSkill
- rbx-combat-rangedSkill
- rbx-combatSkill
- rbx-combat-statusSkill
- rbx-complianceSkill
- rbx-comprehendSkill
- rbx-controlsSkill
- rbx-data-crossserverSkill
- rbx-data-profilestoreSkill
- rbx-data-recoverySkill
- rbx-data-schemaSkill
- rbx-data-sessionlockSkill
- rbx-design-difficultySkill
- rbx-design-loopSkill
- rbx-design-sheetSkill
- rbx-design-socialSkill
- rbx-economy-currenciesSkill
- rbx-economy-gachaSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 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.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 22
Run the decision tree before any code.
- Distinctive: line 60
Every save system ships session-locked.
- Very specific: line 62
Every write path retries with exponential backoff inside pcall.
- Very specific: line 64
Every schema carries a version field from day one.
- Distinctive: line 67
Test with two Studio play sessions or a reserved test place before calling locking done.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
rbx-data — persistence & platform router
Run the decision tree before any code. Match the data's lifetime, not the API you remember:
- Forever, per player → DataStore behind a session-locked profile →
rbx-data-profilestore. - Forever, not per player (world state, global config) →
rbx-data-crossserver. - Minutes to days, shared across servers (queues, live events) → MemoryStore →
rbx-data-crossserver. - Right now, to other servers → MessagingService (1 KB per message) →
rbx-data-crossserver. - Follows the player between places → TeleportData with DataStore fallback →
rbx-platform-teleport. TeleportData is client-readable and client-forgeable — never carry currency in it.
Triage
- AI-DIRECT — the whole domain: schemas, session locking, retries, migrations, cross-server wiring, teleport flows. It is all code and doctrine.
- HYBRID — inserting ProfileStore or any community data module from the Creator Store: the
insert passes the
rbx-security-modelscangate before its scripts run, same as any model. - HANDOFF — enabling Studio access to API services and creating Open Cloud keys are
dashboard steps: emit via
rbx-handoff-dashboard, queue undermanual steps pending:.
Routing
| Request smells like | Load |
| "Set up saving", save/load player data, ProfileStore vs raw DataStore | rbx-data-profilestore (+ rbx-data-schema — don't ask, include it) |
| Design the save table, add a field, migrate old saves | rbx-data-schema |
| Duping, rollbacks, "data didn't save", two servers writing one profile | rbx-data-sessionlock (+ rbx-data-recovery when loss already happened) |
| Trading meets saving, "items duped in a trade" | rbx-data-sessionlock (+ rbx-trading-antiscam — don't ask, include it) |
| Global counters, cross-server announcements, live-event state | rbx-data-crossserver |
| Lost-data incident, restore one player's save, rollback plan | rbx-data-recovery |
| Teleports, reserved servers, party into a dungeon place | rbx-platform-teleport (+ rbx-data-sessionlock — flush the save before teleporting, don't ask) |
| Catalog queries, avatar items, UGC lookups | rbx-platform-marketplace |
| Friends, presence, invites, party APIs | rbx-platform-social |
| "Part doesn't exist yet on the client", streaming pauses, content radius | rbx-platform-streaming |
Compound requests stack: a cross-place dungeon run loads rbx-platform-teleport +
rbx-data-sessionlock + rbx-data-schema together.
Defaults (ship without being asked)
- Every save system ships session-locked. No lock, no ship — this is the dupe firewall.
UpdateAsyncoverSetAsyncfor anything a second server could touch.- Every write path retries with exponential backoff inside
pcall; every profile flushes inBindToCloseand onPlayerRemoving. - Every schema carries a
versionfield from day one; migrations are forward-only. - Saves are plain tables — no Instances, no mixed-key tables, no cyclic refs. Respect the 4 MB value cap and the 6 s per-key write cooldown.
- Test with two Studio play sessions or a reserved test place before calling locking done.
Shared law
mcp-tools · luau-contract · cowork-handoff-template
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.

