ashexplained/roblox-skills

roblox-datastore-persistence

Design, implement, and review Roblox DataStore persistence.

Zobacz źródło

Jak używać

  1. Skopiuj polecenie instalacji i sprawdź źródła przed instalacją we własnym środowisku agenta.
  2. W oryginale sprawdź wymagane narzędzia, dane dostępowe i obsługiwane środowiska.
  3. Opisz dane wejściowe i oczekiwany rezultat; porównaj wynik ze źródłami.
npx skills add https://github.com/ashexplained/roblox-skills --skill roblox-datastore-persistence

Przed rozpoczęciem

  • Instalacja nie obejmuje subskrypcji modelu, limitu API ani uprawnień do plików.
  • Gwiazdki i instalacje pokazują aktywność, a nie niezależny test jakości lub bezpieczeństwa.
Oryginalny dokument Skill

Treść z repozytorium z zachowaniem nagłówków, przykładów, kodu, tabel, linków i obrazów.

Roblox DataStore Persistence

Goal

Save player progress reliably without corrupting or losing valuable state.

Schema Rules

  • Store compact canonical state, not UI state.
  • Include schemaVersion.
  • Keep defaults centralized.
  • Validate loaded data before using it.
  • Write migrations that can handle old, missing, or partial data.
  • Keep transient match/session state separate from permanent profile state.

Save Strategy

  • Load once when the player joins.
  • Keep an in-memory authoritative profile on the server.
  • Save on meaningful intervals and player leave.
  • Save on server shutdown with a bounded timeout.
  • Debounce rapid save requests.
  • Retry transient failures with backoff.
  • Mark dirty profiles and avoid unnecessary writes.

Valuable State

Treat these carefully:

  • Currency and premium currency.
  • Inventory, pets, cosmetics, boosts, quest progress, achievements.
  • Purchases and receipt-granted items.
  • Trading or gifting results.
  • Daily streaks and time-gated rewards.

MCP Review Workflow

  1. Use script_grep for DataStore, UpdateAsync, SetAsync, GetAsync, profile, save, and load.
  2. Read all persistence scripts with script_read.
  3. Map load, mutation, save, and shutdown flow.
  4. Patch with multi_edit.
  5. Playtest join/change/leave-like paths where possible and check get_console_output.

Output

Return:

  • Profile schema.
  • Save/load flow.
  • Migration plan.
  • Failure modes handled.
  • Manual tests still needed in published or multi-server conditions.

Next

Harden the save path against exploits with roblox-security-economy, then verify saves survive rejoin and shutdown with roblox-playtest-qa.

Powiązane zadania

z tego samego repozytorium

Więcej Skills

Wszystkie Skills
ashexplained
Społeczność

roblox-playtest-qa

Playtest Roblox experiences through Studio MCP with attention to first-session fun, mobile UX, console errors, progression, social hooks, performance, and exploit-sensitive flows.

Instalacje / 1h
4
GitHub Stars
63
Aktualizacja
1 lip
ashexplained
Społeczność

roblox-animation-audio-feedback

Improve Roblox feel through animation, audio, VFX, haptics-like feedback, reward juice, movement feel, combat feedback, UI transitions, emotes, and satisfying loop feedback without hurting mobile performance.

Instalacje / 1h
3
GitHub Stars
63
Aktualizacja
1 lip
ashexplained
Społeczność

roblox-combat-systems

Design, implement, and review Roblox combat systems. Use for melee, ranged, abilities, cooldowns, hit detection, damage validation, status effects, enemy AI hooks, combat UI, balance knobs, VFX/SFX, and exploit-resistant remotes.

Instalacje / 1h
3
GitHub Stars
63
Aktualizacja
1 lip
ashexplained
Społeczność

roblox-creator-store-security-audit

Audit Roblox Creator Store, Toolbox, inventory, group, universe, package, model, UI, gameplay, plugin-like, and other third-party imported assets for malicious or risky scripts. Use whenever Claude imports, inserts, reviews, or trusts Creator Store assets, especially assets with Scripts, LocalScripts, ModuleScripts, hidden descendants, require calls, HTTP, DataStore, remote creation, obfuscated code, or suspicious names.

Instalacje / 1h
3
GitHub Stars
63
Aktualizacja
1 lip