scenario-roblox-data
БесплатноЗапускает вложенные скриптыНе проверенUse when a Roblox game saves or loads player data, or when players report data not saving, lost progress, rollbacks, duplicated items or a purchase granted…
от scenario-labs★ 4 422 звезды на GitHubОб этом скилле
Roblox Data and Backend
Roblox Studio (October 2026 build) on macOS, driven through the scenario-roblox-expert toolkit.
Expert level here means the data layer stays correct when a server crashes, a write fails after it landed, or two servers want the same player. Prove those cases against a simulated multi-server backend before any published test, because an unpublished place cannot reach DataStores at all.
If a sibling skill named here is missing from your available skills, load it with skill_get
(Scenario MCP) or ask the user to install it (https://github.com/scenario-labs/skills#install);
unattended, proceed from tool schemas and flag the gap.
REQUIRED BACKGROUND: scenario-roblox-expert (channels, review loop, toolkit, current-Roblox traps).
Stance (the expert delta)
- Session locks stop duplication, UpdateAsync alone does not. One ProfileStore profile per
player holds the lock (loleris, ProfileStore docs).
UpdateAsyncis safer thanSetAsynconly when the transform reads the old value (Suphi Kaner, 00:04:43). - A failed write may have landed. Read with
UseCache = falsebefore redoing it (Roblox best practices). Put an operation id inside the value so a repeat is a no-op [added]. With 30% of writes failing after they landed, naive retries stored 39 for 30 operations in the mock run. - Retries on one key stay in order. A late retry of an old value overwrites newer data (Roblox
best practices).
KeyQueueserializes per key. - A purchase is granted once and confirmed saved. Log each
PurchaseIdin the profile. ReturnPurchaseGrantedonly whenLastSavedDataholds it (Rileybytes, 00:29:08; Roblox purchasing doc). Every other path returnsNotProcessedYet. - Migrate before
Reconcile.Reconcilecopies the template'sSchemaVersioninto old data, and the migration is skipped [added, proven against the real ProfileStore]. - Old servers never save newer data. During an update, old and new servers run side by side.
Refuse a higher
SchemaVersion, release the lock untouched, and kick [added]. Publish every place of a multi-place game together (CJ_Oyer, 00:27:33). - Two profiles never save atomically. Editing both without a yield protects memory only (loleris). Escrow both sides, then let one trade-log record decide [added]. Without escrow a crash between the two saves duplicated a Shield and lost a Sword.
- Test against an injected store. Write the data code so
DataStoreServicecan be swapped forMockDataStoreand run several simulated servers with the unmodified ProfileStore [added].
Establish first
- Published, and Studio API access on? Unpublished: every DataStore call throws, so test with
mocks. Published with access on: Studio writes live keys, so use a separate test experience
(Roblox docs) or
ProfileStore.Mock. - What persists where. Player state goes in one profile. Leaderboards use an
OrderedDataStore. Matchmaking and short-lived shared state use MemoryStore. Announcements use MessagingService. - Trading, Developer Products, multi-place? Each adds a stage below.
- Peak CCU, players per server, profile size. Feed
rbx_data.budget. - Data already live? Then keys and store names are frozen; every change becomes a migration step.
Defaults: ProfileStore at the pinned commit, store PlayerData, key Player_<UserId>, a
SchemaVersion field, a 100-entry PurchaseIds log.
Procedure
Modules live in scripts/agentkit/data/ and have no requires. Inline them with
rbx_data.run(studio, code, dm, data=[...]), or build them into a place with
rbx_data.build_place(dir). Full code and results: procedures.md.
- Probe the environment. Goal: know which services answer here. How:
rbx_data.probe_services(studio, "Edit"), then"Server"in a playtest. GATE: the error texts are recorded, and the store choice (real or mock) follows from them. - Design the schema. Goal: a profile that saves as-is and grows safely. How:
DataCheck.report(template)and a maxed sample,DataCheck.key(key, {userId}). GATE: zero error findings, size under 25% of 4,194,304 characters, and a JSON round trip equal to the input. - Plan the budget. Goal: no throttling at peak. How:
rbx_data.budget(players, ccu, kb, saves_per_min). GATE:okis true at peak CCU, and the per-key writes per minute cover autosave plus purchases. - Wire sessions. Goal: one owner per profile. How:
PlayerDatarunsStartSessionAsyncwithCancel, kicks on nil, thenAddUserId, migrate,Reconcile, a kick onOnSessionEnd, andEndSessionon leave. GATE: thesessionssuite passes, and a playtest shows the profile loaded withDataStoreState"NoAccess".
local Players = game:GetService("Players")
local ServerStorage = game:GetService("ServerStorage")
local ProfileStore = require(ServerStorage.Packages.ProfileStore)
loca
Установить scenario-roblox-data в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл scenario-roblox-data?
Use when a Roblox game saves or loads player data, or when players report data not saving, lost progress, rollbacks, duplicated items or a purchase granted twice. Triggers: DataStoreService, UpdateAsync, SetAsync, BindToClose, ProfileStore, ProfileService, DataStore2, session locking, data schema or migration, Developer Product ProcessReceipt, player trading, OrderedDataStore leaderboards, MemoryStore, MessagingService, TeleportService and reserved servers, DataStore budgets and throttling (errors 301 to 306), 'You must publish this place to the web to access DataStore', and testing data code in an unpublished place.
Как установить скилл scenario-roblox-data?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл scenario-roblox-data запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic