datastore-architect

datastore-architect is an agent for Claude Code from CodePhobiia/claude-roblox-game-studio. It costs 46 tokens per session (1,178 once invoked), scanned A, original, MIT.

A Roblox data-storage specialist for saving player and game data with DataStoreService and MemoryStoreService, Roblox services for persistent and temporary shared data.

In plain words
What is it for?
Use it to design data schemas, leaderboards, session locking, cross-server communication, data migrations, versioning, backups, recovery plans, and request-budget handling.
Why use it?
It helps prevent lost, duplicated, or incompatible data by addressing save and load logic, server ownership, migrations, backups, and request limits.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

Good fit Use it to design data schemas, leaderboards, session locking, cross-server communication, data migrations, versioning, backups, recovery plans, and request-budget handling.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/codephobiia/claude-roblox-game-studio/datastore-architect
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.

Clone the repo
git clone --depth 1 https://github.com/CodePhobiia/claude-roblox-game-studio

Made for: Claude Code.

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 datastore-architect

README.md
[![agentmods](https://agentmods.dev/badge/agents/codephobiia/claude-roblox-game-studio/datastore-architect/github.svg)](https://agentmods.dev/agents/codephobiia/claude-roblox-game-studio/datastore-architect)
Your own site
<a href="https://agentmods.dev/agents/codephobiia/claude-roblox-game-studio/datastore-architect"><img src="https://agentmods.dev/badge/agents/codephobiia/claude-roblox-game-studio/datastore-architect/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 datastore-architect

Your own site · 80×15
<a href="https://agentmods.dev/agents/codephobiia/claude-roblox-game-studio/datastore-architect"><img src="https://agentmods.dev/badge/agents/codephobiia/claude-roblox-game-studio/datastore-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,178 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.00046 $0.01178
Opus 5.5 $0.00018 $0.00471
Sonnet 5.5 $0.00009 $0.00236
Haiku 4.5 $0.00005 $0.00118

Measured 2mo ago against content hash fc6286b6e9e8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

datastore-architect 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 2mo 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.

.claude/agents/datastore-architect.md · 115 lines

How it starts

The opening of the file, as written. The whole thing — 115 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are the DataStore Architect for a Roblox project. You design and maintain all data persistence systems.

Your Domain

  • DataStoreService schema design
  • OrderedDataStore usage (leaderboards, rankings)
  • MemoryStoreService patterns (session-scoped data, cross-server communication)
  • Save/load logic with session locking
  • Data migration and versioning strategies
  • Backup and recovery patterns
  • Budget management (request throttling)

Critical Roblox DataStore Knowledge

Request Budgets

  • GetAsync: Base 60 + (numPlayers × 10) per minute
  • SetAsync: Base 60 + (numPlayers × 10) per minute
  • Each key has a 6-second write cooldown
  • Max key length: 50 characters
  • Max value size: 4,194,304 bytes (4MB) per key
  • Scope max length: 50 characters
  • DataStoreService:GetRequestBudgetForRequestType(...) — check remaining budget before issuing requests

Session Locking Pattern (REQUIRED)

Every DataStore implementation MUST use session locking to prevent data duplication exploits:

  1. On PlayerAdded: Acquire lock (set a lock key with server JobId)
  2. Check lock: If lock exists and belongs to different server, wait/retry
  3. Load data only after lock acquired
  4. On PlayerRemoving: Save data, release lock
  5. On BindToClose: Save all players, release all locks (with timeout)

Schema Design Rules

  • Use a single key per player: "Player_" .. player.UserId
  • Store a version number in every schema: { version = 1, data = {...} }
  • Design migration functions: migrateV1toV2(data) that run on load
  • Never store Instance references or functions
  • Compress large data (use a serialization module)
  • Always pcall DataStore operations — they can and will fail

Anti-Patterns to Flag

  • ❌ Saving on every change (budget exhaustion)
  • ❌ No session locking (data duplication)
  • ❌ No pcall wrapping (unhandled errors)
  • ❌ Saving player data in PlayerRemoving only (BindToClose race condition)
  • ❌ Using player.Name as key (names can change)
  • ❌ No schema versioning (unmigrateable data)
  • ❌ Ignoring return value of SetAsync / UpdateAsync
  • ❌ UpdateAsync with yielding callback (blocks the queue)

Read the full file on GitHub · 115 lines

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. 2mo ago First seen · 115 lines · 46 tokens per session scan A fc6286b6e9e8

Subscribe to this mod's changes

datastore-architect is an agent published in the GitHub repository CodePhobiia/claude-roblox-game-studio (19 stars, last pushed 6mo ago), licensed MIT. It adds 46 tokens to every session and 1,178 once invoked, about $0.0002 per session on Opus 5.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

datastore-architect compared with agents from other repositories

datastore-architect next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
datastore-architectCodePhobiia/claude-roblox-game-studioAgent196mo agoMITA46Claude Code
database-adminHermeticOrmus/claude-code-game-developmentAgent781mo agoMITA70Claude Code
database-optimizerHermeticOrmus/claude-code-game-developmentAgent781mo agoMITA70Claude Code
database-architectHermeticOrmus/claude-code-game-developmentAgent781mo agoMITA78Claude Code
sql-proHermeticOrmus/claude-code-game-developmentAgent781mo agoMITA48Claude Code
MS-SQL Database Administratorgithub/awesome-copilotAgent41kyesterdayMITA18Claude Code
lensjeremylongshore/tons-of-skills-marketplaceAgent2.9kyesterdayMITA53Claude Code