datastore-review

Audit Roblox DataStore and MemoryStore usage for correctness and security.

8|Updated Apr 16, 2026
One-click install
npx skills add https://github.com/CodePhobiia/claude-roblox-game-studio --skill datastore-review
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: datastore-review
Source: https://github.com/CodePhobiia/claude-roblox-game-studio/tree/main/.claude/skills/datastore-review
Command: npx skills add https://github.com/CodePhobiia/claude-roblox-game-studio --skill datastore-review

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

DataStore usage in Roblox projects is prone to subtle bugs, insecure patterns, and anti-patterns that can cause data loss, performance issues, or hard-to-maintain code. This skill helps identify and remediate such issues at the source.

Core Features & Use Cases

  • Discovery of DataStore and MemoryStore usage across the codebase, including initialization, reads, writes, and migrations.
  • Detection of unsafe patterns: unguarded operations, missing pcall wrappers, and inappropriate locking strategies.
  • Validation of data keys (prefer UserId over Name), schema versioning, and budget monitoring, with a comprehensive risk assessment.
  • Use Case: Teams can run this audit during code reviews or before major releases to ensure data integrity and compliance with best practices.

Quick Start

Scan the repository for DataStore usage and generate a findings report outlining critical and important issues.

Frequently Asked Questions about datastore-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit Roblox DataStore code for security and data loss risks?

To audit Roblox DataStore code for security, scan your source files for unguarded operations and missing pcall wrappers. This identifies unsafe patterns that risk data loss and generates a severity-based report outlining critical issues.

What are common DataStore anti-patterns in Roblox that cause data corruption?

Common DataStore anti-patterns include unguarded operations without pcall wrappers, inappropriate session locking, and missing schema versioning. Detecting these issues early prevents data corruption and ensures data integrity during player data flows.

How do I check if my Roblox DataStore calls are correctly wrapped in pcall?

Check if your DataStore calls are wrapped in pcall by scanning the codebase for DataStoreService usage. The audit validates that all reads, writes, and migrations include proper pcall error handling to prevent silent failures.

Should I use UserId or Player Name to key user data in Roblox DataStores?

You should use UserId rather than Player Name to key user data in Roblox DataStores. UserIds are immutable and unique, preventing data loss when players change their names, which is a critical best practice for data integrity.

Does this DataStore audit cover MemoryStoreService and BindToClose handlers?

Yes, this DataStore audit covers MemoryStoreService usage and BindToClose handlers. It evaluates player data flows, session locking, and budget monitoring across both services to ensure robust data management and safe server shutdown procedures.

What is schema versioning and why do I need it for Roblox DataStore migrations?

Schema versioning is explicitly tagging data structures with version numbers during DataStore migrations. You need it to manage data structure changes safely over time, preventing compatibility issues and data loss when updating your game.