agentleFS
blushneybusiness-glitchblushneybusiness-glitch/roblox-omniskills/skills/rbx-data/SKILL.md

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.

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
  1. Distinctive:

    Run the decision tree before any code.

    line 22
  2. Distinctive:

    Every save system ships session-locked.

    line 60
  3. Very specific:

    Every write path retries with exponential backoff inside pcall.

    line 62
  4. Very specific:

    Every schema carries a version field from day one.

    line 64
  5. Distinctive:

    Test with two Studio play sessions or a reserved test place before calling locking done.

    line 67

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

rbx-data — persistence & platform router

Run the decision tree before any code. Match the data's lifetime, not the API you remember:

  1. Forever, per player → DataStore behind a session-locked profile → rbx-data-profilestore.
  2. Forever, not per player (world state, global config) → rbx-data-crossserver.
  3. Minutes to days, shared across servers (queues, live events) → MemoryStore → rbx-data-crossserver.
  4. Right now, to other servers → MessagingService (1 KB per message) → rbx-data-crossserver.
  5. 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-modelscan gate 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 under manual steps pending:.

Routing

Request smells likeLoad
"Set up saving", save/load player data, ProfileStore vs raw DataStorerbx-data-profilestore (+ rbx-data-schema — don't ask, include it)
Design the save table, add a field, migrate old savesrbx-data-schema
Duping, rollbacks, "data didn't save", two servers writing one profilerbx-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 staterbx-data-crossserver
Lost-data incident, restore one player's save, rollback planrbx-data-recovery
Teleports, reserved servers, party into a dungeon placerbx-platform-teleport (+ rbx-data-sessionlock — flush the save before teleporting, don't ask)
Catalog queries, avatar items, UGC lookupsrbx-platform-marketplace
Friends, presence, invites, party APIsrbx-platform-social
"Part doesn't exist yet on the client", streaming pauses, content radiusrbx-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.
  • UpdateAsync over SetAsync for anything a second server could touch.
  • Every write path retries with exponential backoff inside pcall; every profile flushes in BindToClose and on PlayerRemoving.
  • Every schema carries a version field 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

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.