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.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.svg" alt="Measured on agentmods" 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 $0.00023 $0.00589
Sonnet 5 $0.00009 $0.00236
Haiku 4.5 $0.00005 $0.00118

Measured 7d ago against content hash fc6286b6e9e8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-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 7d 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. 7d 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 (9 stars, last pushed 4mo ago), licensed MIT. It adds 46 tokens to every session and 1,178 once invoked, about $0.0002 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 agents, from other repositories

MS-SQL Database Administrator

Work with Microsoft SQL Server databases using the MS SQL extension.

github/awesome-copilot · 18 tokens

lens

Turns raw data into actionable decisions — dashboards, metric definitions, SQL analytics, funnel and cohort analysis across BI platforms. Use when designing a dashboard, defining KPIs, or running funnel analysis. Trigger with "design a dashboard", "analyze our funnel".

jeremylongshore/tons-of-skills-marketplace · 53 tokens

ecto-schema-designer

Ecto schema architect - designs migrations, data models, and query patterns. Use proactively when planning database structure for new features.

oliver-kriska/claude-elixir-phoenix · 30 tokens

pixel-art-animation-reviewer

Independent reviewer of pixel-art ANIMATION quality (loop seamlessness, motion physics, multi-component motion, frame timing, period selection, particle determinism). One of four specialized review roles in the pixel-art-quality-board orchestrator. Use when the user asks to "check animation timing", "verify loop…

AnastasiyaW/codex-claude-code-config · 140 tokens

django-migrations-specialist

Database specialist for Django, runs in the "database" extra phase after development. Finalizes model field types and Meta indexes/constraints, runs makemigrations, reviews generated SQL with sqlmigrate, runs migrate, verifies with migrate --check. Do NOT use for: application logic (django-architect), tests…

AratKruglik/claude-sdlc · 85 tokens

sql-expert

Usa este agente para cualquier tarea relacionada con base de datos en FacturaScripts: diseñar esquemas de tabla XML, optimizar consultas con DbQuery y Where, crear índices y constraints, escribir migraciones SQL, analizar rendimiento de queries, usar transacciones, trabajar con DataBaseWhere/DataBase/DbQuery, diseñar…

FacturaScripts/fs-claude-plugin · 102 tokens