agentleFS
hoatv2211hoatv2211/GameStudio-CodexKIT/skills/save-data-schema-migration/SKILL.md

save-data-schema-migration

Skill5 starsChanged 3 months agoMITView on GitHub

Use when versioning or converting serialized player save files, profiles, checkpoints, or persistence payloads across recognized save-format versions with fixture compatibility and rollback.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use for save field renames, defaults, removals, version upgrades, backward compatibility, import migrations, or player-data format changes.

    line 35
  2. Distinctive:

    Do not use for database schema migration, arbitrary config edits, or direct production player-save rewrites without a project runbook.

    line 38
  3. Distinctive:

    Never guess an unknown save version.

    line 65
  4. Distinctive:

    Do not test with the only copy of a player save.

    line 67
  5. Very specific:

    Use the bundled scripts/save_migration.py for isolated fixtures and safe-project-mutation for authorized file application.

    line 78

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Save Data Schema Migration

Overview

Plan and test player-save migrations through an explicit version chain while preserving the original payload and refusing unknown or newer versions.

When to use

Use for save field renames, defaults, removals, version upgrades, backward compatibility, import migrations, or player-data format changes.

When NOT to use

Do not use for database schema migration, arbitrary config edits, or direct production player-save rewrites without a project runbook.

Required inputs and context discovery

Require current and target versions, migration chain, save authority, fixture set, backup scope, rollback method, compatibility window, reviewer, human approval, privacy constraints, and validation checks.

Safety and risk level

High-risk. Unknown versions, incomplete chains, missing backup, missing rollback, missing reviewer, live player data, or missing approval means BLOCKED.

Workflow

  1. Identify save authority, current version, target version, and supported compatibility range. Completion criterion: unknown or newer versions are BLOCKED.
  2. Review each one-version migration step for rename, default, removal, and data loss. Completion criterion: irreversible transformations are explicit.
  3. Preserve the original fixture and run migration on a copy. Completion criterion: fixture mutation cannot destroy rollback input.
  4. Validate migrated semantics and backward/forward compatibility expectations. Completion criterion: expected fields and values are asserted.
  5. Prepare exact backup, apply, rollback, reviewer, and approval evidence for real scope. Completion criterion: real player data remains untouched until authorized.

Evidence and output contract

Produce save-migration-plan.json with versions, migration hashes, fixture results, compatibility, rollback, reviewer, approval, verdict, and limitations.

Handoff contract

Record save authority, version chain, fixture paths, migration result, data-loss risks, backup/rollback, approval state, and next authorized action.

Pitfalls and anti-rationalization

  • Never guess an unknown save version.
  • A successful JSON parse is not semantic compatibility.
  • Do not test with the only copy of a player save.
  • Database migration safety is a separate workflow.

Verification checklist

  • Version chain is complete.
  • Original fixture is preserved.
  • Migration and rollback are tested.
  • Compatibility risks are explicit.
  • Reviewer and human approval gate real apply.

References and scripts

Use the bundled scripts/save_migration.py for isolated fixtures and safe-project-mutation for authorized file application.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.