roblox-datastore-persistence

roblox-datastore-persistence is a skill for Claude Code, Codex from AshExplained/roblox-skills. It costs 52 tokens per session (416 once invoked), scanned A, original, MIT.

A skill for saving and loading Roblox player progress with DataStore, Roblox’s built-in persistent storage system. It covers the data structure, updates, retries, migrations, and protection against data loss.

In plain words
What is it for?
Use it to design, implement, or review save systems, including autosaves, player-leave saves, server-shutdown saves, old-data migrations, profile locking, and debugging.
Why use it?
It helps keep valuable player progress, purchases, inventory, and rewards safe across play sessions and server failures.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to design, implement, or review save systems, including autosaves, player-leave saves, server-shutdown saves, old-data migrations, profile locking, and debugging.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ashexplained/roblox-skills/roblox-datastore-persistence
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add AshExplained/roblox-skills --skill roblox-datastore-persistence
Clone the repo
git clone --depth 1 https://github.com/AshExplained/roblox-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for roblox-datastore-persistence

README.md
[![agentmods](https://agentmods.dev/badge/skills/ashexplained/roblox-skills/roblox-datastore-persistence/github.svg)](https://agentmods.dev/skills/ashexplained/roblox-skills/roblox-datastore-persistence)
Your own site
<a href="https://agentmods.dev/skills/ashexplained/roblox-skills/roblox-datastore-persistence"><img src="https://agentmods.dev/badge/skills/ashexplained/roblox-skills/roblox-datastore-persistence/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for roblox-datastore-persistence

Your own site · 80×15
<a href="https://agentmods.dev/skills/ashexplained/roblox-skills/roblox-datastore-persistence"><img src="https://agentmods.dev/badge/skills/ashexplained/roblox-skills/roblox-datastore-persistence.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 416 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00052 $0.00416
Opus 5 $0.00026 $0.00208
Sonnet 5 $0.00010 $0.00083
Haiku 4.5 $0.00005 $0.00042

Measured 10d ago against content hash dfce204928bc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

roblox-datastore-persistence scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

roblox-datastore-persistence/SKILL.md · 63 lines

What it actually says

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.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 63 lines · 52 tokens per session scan A dfce204928bc

Subscribe to this mod's changes

roblox-datastore-persistence is a skill published in the GitHub repository AshExplained/roblox-skills (6 stars, last pushed 2mo ago), licensed MIT. It adds 52 tokens to every session and 416 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

db-seed

Generate database seed scripts with realistic sample data. Reads Drizzle schemas or SQL migrations, respects foreign key ordering, produces idempotent TypeScript or SQL seed files. Handles D1 batch limits, unique constraints, and domain-appropriate data. Use when populating dev/demo/test databases. Triggers: 'seed…

jezweb/claude-skills · 96 tokens

d1-drizzle-schema

Generate Drizzle ORM schemas for Cloudflare D1 databases with correct D1-specific patterns. Produces schema files, migration commands, type exports, and DATABASESCHEMA.md documentation. Handles D1 quirks: foreign keys always enforced, no native BOOLEAN/DATETIME types, 100 bound parameter limit, JSON stored as TEXT.…

jezweb/claude-skills · 90 tokens

d1-migration

Cloudflare D1 migration workflow: generate with Drizzle, inspect SQL for gotchas, apply to local and remote, fix stuck migrations, handle partial failures. Use when running migrations, fixing migration errors, or setting up D1 schemas.

jezweb/claude-skills · 53 tokens

game-builder

Convert any topic into playable browser games. Types: trivia, matching, word puzzles, adventure games. Uses Phaser.js or Kaboom.js.

OneWave-AI/claude-skills · 31 tokens

database-migrator

Migrates databases between providers (Postgres, MySQL, Supabase, PlanetScale, MongoDB). Reads source schema, generates migration scripts, handles data type mapping, foreign keys, indexes, triggers, stored procedures. Validates migration with row counts and checksums. Generates migration-plan.md with step-by-step…

OneWave-AI/claude-skills · 76 tokens

database-schema-designer

Design optimized database schemas for SQL and NoSQL databases including tables, relationships, indexes, and constraints. Creates ERD diagrams, migration scripts, and data modeling best practices. Use when users need database design, schema optimization, or data architecture planning.

OneWave-AI/claude-skills · 54 tokens