agentleFS
jammyfujammyfu/open-game-skills/skills/disciplines/save-systems/SKILL.md

save-systems

Skill12 starsChanged 23 days agoMITView on GitHub

Use when game progress needs versioned slot schemas, migration rules, atomic persistence, rollback safety, or a single authoritative save-file contract.

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never update the only good copy in place.

    line 28
  2. Distinctive:

    Test normal save/load, kill during write, out-of-space/write failure, corrupt newest generation, v1→current migration and …

    line 36

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “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 systems

This skill owns the durable progress document shape and commit protocol. save-checkpoint owns when a checkpoint is taken; save-integrity owns which slot may contain debug/capture state; cloud-save owns cross-device reconciliation.

Modes

ModeShape
single-slotone logical story slot with explicit overwrite/new-game policy
multi-slotnamed/player-selected slots with independent revisions
profile-plus-slotsprofile metadata plus one or more story slots

Schema and migration

Every durable document publishes schema_version, slot/profile identity, revision/generation, and enough metadata to reject the wrong owner/account. Old schemas migrate through explicit version-to-version steps or fail without overwriting the source. Migration runs on a copy and records success before the old version is replaced.

Unknown/newer schemas are not silently truncated. A migration test fixture keeps at least one representative save from every supported historical version.

Atomic commit

A save is committed atomically: write/flush a new payload to a temporary or journaled location, validate it, then replace the current committed pointer/file using the target platform's atomic primitive where available. Preserve a previous/backup/last-known-good generation until the new commit is known durable.

Never update the only good copy in place. A process kill between payload write and commit must leave either the old committed save or the complete new save, not a half-written hybrid.

Load selection

Validate identity, schema, checksum/structure and revision before applying gameplay state. If the newest generation is invalid, fall back only to a verified previous/backup generation and report that recovery occurred. Other slots remain isolated.

Acceptance

Test normal save/load, kill during write, out-of-space/write failure, corrupt newest generation, v1→current migration and unsupported-future schema. Verify slot isolation, migration evidence, and that the last-known-good save remains loadable after every failed commit. Unrun device/filesystem cases stay not-run.

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.