Skip to content
SkillModel-led2,843 tokens in use

save-systems

Designs game save and load that survives crashes and patches: state as data, a version field, atomic writes with a backup, migrations, slots and throttled autosave.

9,682 stars on the repository Apache License 2.0gamedev-skills/awesome-gamedev-agent-skills · skills/disciplines/save-systems
npx skills add gamedev-skills/awesome-gamedev-agent-skills
View source

Install command as written in the repository's README

Skill label

measured from its files

What installing save-systems costs

93tokens idle
2,843tokens in use
4,531tokens, up to

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Up to adds the files its instructions link. Counts are approximate, made offline with cl100k_base.

Model dependence Model-led

Script-ledMixedModel-led

Mostly instructions, so how well it works depends on the model that follows them.

This describes the skill's structure, how much of it is scripts. It does not say how well it works.

Touches

Nothing detected: no shell, network, file writes, git or credentials in its files.

Declared tags come from the skill's frontmatter; detected ones from its scripts, its code blocks and the commands it names in inline code. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Excellent
  • Frontmatter8/15
  • Structure25/25
  • Examples12/15
  • Output15/15
  • Size15/15
  • Resources15/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Excellent

No findings.

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Good
  • Development activity92
  • Maintenance96
  • Community60
  • Maturity24
  • Momentum40

Save Systems is an engine-neutral skill for the save file itself: its format, writes, versioning, slots and location. It uses Godot and Python code to show how to serialize ids and flags, write through a temp file with a backup, and migrate old saves one version at a time.

The agent finds the existing save code first, adds an integer version, loads defensively and runs a round-trip and corruption test before asking you to quit and relaunch the game.

What You Get

  • A capture and apply pattern that saves data and rebuilds nodes from it on load
  • An atomic write with a temp file and a .bak that the loader falls back to
  • A versioned loader that refuses newer saves and migrates older ones step by step
  • Separate manual slots and a throttled autosave file
  • A headless round-trip and corruption test that prints a pass or fail line
  • A gotchas list on JSON number types, loading objects from saves and save locations

Common Use Cases

  • Adding save, load and a continue button to a new game
  • Fixing saves that corrupt after a crash or power loss
  • Keeping old saves working after a patch changes the data shape
  • Setting up autosave at checkpoints without overwriting manual slots

What Makes It Unique

It treats the save as a long-lived contract. Every save carries a version from the first release, migrations are pure functions kept forever, and the loader falls back to a backup. It also records Godot specifics that bite in practice, such as JSON loading every number as a float and Windows rename deleting the target first.

Under The Hood

The skill is a SKILL.md with one reference file on versioning and migration. The agent searches your project for existing save code and shipped saves, edits game code and writes a small test script under a tools folder. It runs the engine headless from the command line to execute the round-trip test, which writes and deletes temporary save files in the user data folder. It does not fetch web pages or call outside services.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers