# roblox-datastore-safety

roblox-datastore-safety is a Claude Code skill that reviews Roblox DataStore code. It targets problems such as lost player data, rollback issues, and duplicated items.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 98 repo stars
- Author: LihFolk
- License: LicenseRef-Proprietary · policy=link-only · description only; the file stays with the author
- Source: https://github.com/lihfolk-cy/v2-vault/tree/HEAD/skills/roblox-datastore-safety/SKILL.md
- Updated: 2026-10-29
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/roblox-datastore-safety

## What it does

The skill inspects code that reads or writes player data and checks session ownership, retry handling, autosaving, and purchase receipts. It looks for save paths that could replace real data after a failed load, and checks whether a purchase grant is recorded with its `PurchaseId`.

It uses the `LihFolk Vault V2` knowledge base from the plugin folder and examines data modules, receipt handlers, and other storage writers in the project. Those project files are needed for the review. Player profiles should be updated through `UpdateAsync`; the skill rules out `SetAsync` for profile writes.

## Install

### Claude Code (native platform)

1. **Plugin marketplace**
In the agent chat (not a shell):
```text
/plugin marketplace add lihfolk-cy/v2-vault
```
In the agent chat (not a shell):
```text
/plugin install lihfolk@lihfolk
```
This installs the whole lihfolk plugin with all its skills

2. **Skills CLI (Vercel)**
```bash
npx skills add lihfolk-cy/v2-vault --skill roblox-datastore-safety -a claude-code
```

3. **Manually: put the files in place**
- File: `~/.claude/skills/roblox-datastore-safety/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/roblox-datastore-safety/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add lihfolk-cy/v2-vault --skill roblox-datastore-safety -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/roblox-datastore-safety/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add lihfolk-cy/v2-vault --skill roblox-datastore-safety -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/roblox-datastore-safety/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install lihfolk-cy/v2-vault skills/roblox-datastore-safety
```

2. **Manually: put the files in place**
- File: `.github/skills/roblox-datastore-safety/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add lihfolk-cy/v2-vault --skill roblox-datastore-safety -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/lihfolk-cy/v2-vault --path skills/roblox-datastore-safety
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/roblox-datastore-safety/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/lihfolk-cy/v2-vault/tree/HEAD/skills/roblox-datastore-safety/SKILL.md

## When to use it
- find every writer of player data
- check whether sessions prevent concurrent profile access
- catch saves after failed profile loads
- check receipt handling for duplicate grants
- review autosave and schema migration logic

## Example prompts
- Review every player-data writer and check how the project handles session ownership.
- Find code paths that could overwrite a profile after a failed load.
- Check whether purchase receipts can grant the same item twice.

## Similar
- [scenario-roblox-data](https://affpapa.org/en/nevibecode/skills/scenario-roblox-data.md) — skill · 348 installs
- [roblox-datastores](https://affpapa.org/en/nevibecode/skills/sentinelcore-roblox-datastores.md) — skill · 680 installs
- [roblox-security](https://affpapa.org/en/nevibecode/skills/roblox-security.md) — skill · 3500 installs
- [roblox-server-data](https://affpapa.org/en/nevibecode/skills/roblox-server-data.md) — skill · 3000 installs
- [roblox-data-stores](https://affpapa.org/en/nevibecode/skills/roblox-data-stores.md) — skill · 1200 installs
- [roblox-analytics-liveops](https://affpapa.org/en/nevibecode/skills/roblox-analytics-liveops.md) — skill · 1200 installs

From the same set: [lihfolk-cy/v2-vault](https://affpapa.org/en/nevibecode/by/lihfolk-cy/v2-vault.md) — 29 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
