Agent skill

Godot Save Load Systems

by thedivergentai in thedivergentai/GD-Agentic-Skills

Expert blueprint for save/load systems using JSON/binary serialization, PERSIST group pattern, versioning, and migration.

LGPL-3.0Auto-check passedGame Development

Install Godot Save Load Systems

skills CLI
$ npx skills add thedivergentai/GD-Agentic-Skills --skill godot-save-load-systems -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install thedivergentai/GD-Agentic-Skills godot-save-load-systems --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/thedivergentai/GD-Agentic-Skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/godot-save-load-systems .claude/skills/godot-save-load-systems && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
godot-save-load-systems
GitHub stars
821
Token cost
~3.2k tokens
SKILL.md length
1,170 words
Files
7 (incl. scripts, references)
Skills in repo
98
Repo updated
First seen
Licence
LGPL-3.0

At a glance

Expert blueprint for save/load systems using JSON/binary serialization, PERSIST group pattern, versioning, and migration.

  • Works in 7 steps: Version field on every save blob. → Migrate via save_migration_manager.gd… → Backup existing file… → …
  • Implementing save systems OR data persistence
  • SKILL.md covers NEVER Do, Available Scripts, Deep dive (load on demand) and Expert WHY (critical), plus 4 more sections
  • Tasks that involve Game development

What it does

Godot Save Load Systems is an agent skill from thedivergentai/GD-Agentic-Skills. Expert blueprint for save/load systems using JSON/binary serialization, PERSIST group pattern, versioning, and migration. Covers player progress, settings, game state persistence, and error recovery. Use when implementing save systems OR data persistence. Keywords save, load, JSON, FileAccess, user://, serialization, version migration, PERSIST group.

Its SKILL.md is about 3.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files, including scripts and reference files (for example `references/migration-notes.md` and `references/save-patterns-deep.md`).

It sits in Game Development, covering Game development and Agent memory. It works with Godot. The repository describes itself as: The official "Long-Term Memory" for Godot 4.7+ AI Agents. A high-density library of 99 expert skills and 27 genre blueprints, providing audited, strictly typed GDScript patterns… The licence is LGPL-3.0.

When your agent uses it

  • Implementing save systems OR data persistence
  • Tasks that involve Game development
  • Tasks that involve Agent memory

Example prompts

  • “/godot-save-load-systems”

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Version field on every save blob.
  2. Migrate via save_migration_manager.gd when versions differ.
  3. Backup existing file (DirAccess.copy_absolute to .bak) before overwrite.
  4. Write to temp then rename, or write-after-backup; validate open errors.
  5. Integrity optional: FileAccess.get_sha256 compare; fall back to backup on mismatch.
  6. Paths only user:// — never absolute OS paths.
  7. When to save — menu, checkpoint, level complete — never per physics frame.

What it can do on your machine

Read from SKILL.md and the folder at commit 4c4d0ff. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 4 files in scripts/, which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • docs.godotengine.org

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Godot Save Load Systems loads about 3.2k tokens when it runs, and up to ~5.1k if it reads all its reference files. Until then it costs about 94 tokens; SKILL.md has 1,170 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~94
When it runs · the whole SKILL.md, loaded when a task matches
~3.2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~5.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from thedivergentai/GD-Agentic-Skills at commit 4c4d0ff, republished under its LGPL-3.0 licence (© thedivergentai). 1,170 words, ~3,222 tokens.

Download SKILL.mdSave it as .claude/skills/godot-save-load-systems/SKILL.md (or your agent's skills folder). This skill also uses 6 other files; get the full folder from GitHub.
name
godot-save-load-systems
description
Expert blueprint for save/load systems using JSON/binary serialization, PERSIST group pattern, versioning, and migration. Covers player progress, settings, game state persistence, and error recovery. Use when implementing save systems OR data persistence. Keywords save, load, JSON, FileAccess, user://, serialization, version migration, PERSIST group.

NEVER Do

  • NEVER save without a version field — When you update your game's data structure, old saves will break. Always include a "version": "1.0.0" field and implement migration logic.
  • NEVER use absolute OS paths — Hardcoding C:/Users/... will break on every other machine. Always use the user:// protocol, which Godot maps to the correct OS-specific app data folder.
  • NEVER attempt to save Node references directly — Nodes are objects, not raw data. Extract the necessary primitive data (positions, health, levels) into a Dictionary or Resource instead.
  • NEVER forget to close FileAccess handles — Leaving a file open can lead to handle leaks and save-file corruption. In Godot 4, files auto-close when the variable goes out of scope, but explicit close() is safer for long-running logic.
  • NEVER use JSON for very large binary data — Storing 10MB of texture data as Base64 in JSON is slow and bloats file size. Use binary store_var() or separate dedicated asset files.
  • NEVER trust loaded data without validation — Users can edit save files. Always use data.get("field", default_value) and validate that numbers are within expected ranges to prevent crashes.
  • NEVER trigger a save during high-frequency physics or animation updates — A crash mid-write will corrupt the file. Save only on explicit game events like entering a menu, finishing a level, or at a checkpoint.
  • NEVER modify a save Dictionary while iterating over its keys — Calling erase() or add() inside a loop over the same dictionary causes iteration errors. Use data.duplicate() to iterate safely.
  • NEVER store raw passwords or sensitive credentials in unencrypted JSON — If you have sensitive data, use FileAccess.open_encrypted_with_pass() to secure it.
  • NEVER use ResourceLoader.load() for massive scenes on the main thread — It causes a visible freeze. Use ResourceLoader.load_threaded_request() to load levels in the background.
  • NEVER rely on get_instance_id() for cross-session identification — These IDs are assigned at runtime and change every time the game restarts. Generate your own persistent String UUIDs for game objects.
  • NEVER forget to call duplicate(true) on a loaded Resource stats block — If multiple enemies load the same "goblin_stats.tres", they will all share the same health pool unless duplicated.
  • NEVER use the "allow_objects" flag in store_var/get_var for untrusted data — Setting this to true allows full object decoding, which is a major security risk for saves downloaded from the web.
  • NEVER use JSON for data requiring strict type preservation — JSON converts Vector3 to a string or dictionary. For strict data types, use var_to_bytes() or a binary format.
  • NEVER leave internal metadata (set_meta) in persistent dictionaries — This unnecessarily inflates save file size. Clean your dictionaries before serialization.

Available Scripts

MANDATORY: Read the script for the chosen format before writing SaveManager code.

save_load_patterns.gd

MANDATORY for JSON / binary / PERSIST collect — patterns default store_var(..., false).

save_migration_manager.gd

MANDATORY when any save has a version field that can lag the build.

save_system_encryption.gd

MANDATORY before encrypted slots — password from secure storage / user secret, never hardcoded in examples.

save_integrity_validator.gd

Rolling .bak + SHA-256 verify before trusting a slot; fall back to backup on mismatch.


Deep dive (load on demand)

MANDATORY for JSON/PERSIST walkthroughs, binary examples, gotchas, and elite encrypted paths — references/save-patterns-deep.md. Do not paste Step 1–3 Autoload tutorials into scenes.

Expert WHY (critical)

CAUTION: Baseline tutorials used store_var(data, true). Untrusted user:// saves must allow_objects=false — RCE risk on modded/workshop files.

  • Vectors in JSON — store {x,y,z} components; JSON does not round-trip Vector3 faithfully.
  • Rolling backup — crash mid-write corrupts primary; copy to .bak before overwrite (save_integrity_validator.gd).
  • When to save — menu/checkpoint/level complete only — never per physics frame.

Decision Tree: Pick a Persistence Shape

NeedFormatMANDATORY
Human-readable, small/medium progressJSON + versionsave_load_patterns.gd
Type-faithful Variants / larger blobsBinary store_var with allow_objects=falsesame
Typed Resource trees / inspector schemasResourceSaver / .tres/.resPeer godot-resource-data-patterns
Many scene nodes auto-collectPERSIST group + save()/load()save_load_patterns.gd
Schema evolvedMigrate then loadsave_migration_manager.gd
Anti-tamper / sensitive fieldsEncrypted FileAccesssave_system_encryption.gd

Do not paste Step 1–3 JSON Autoload tutorials here — implement from the scripts.

allow_objects Trust Boundary

Default always store_var(data, false) / get_var(false).

Caseallow_objectsRule
Player user:// saves, workshop mods, downloadsfalseNEVER true — RCE risk
Trusted local only (your own tooling, offline debug fixtures you control)true only if unavoidableDocument why; never ship as default; prefer Resources / Dictionaries of primitives

Encrypted elite paths still use false unless the payload is explicitly trusted-local and non-user-editable.

Show full SKILL.md (476 more words)Show less

Golden Path (version → migrate → backup → atomic write)

  1. Version field on every save blob.
  2. Migrate via save_migration_manager.gd when versions differ.
  3. Backup existing file (DirAccess.copy_absolute to .bak) before overwrite.
  4. Write to temp then rename, or write-after-backup; validate open errors.
  5. Integrity optional: FileAccess.get_sha256 compare; fall back to backup on mismatch.
  6. Paths only user:// — never absolute OS paths.
  7. When to save — menu, checkpoint, level complete — never per physics frame.

Settings may use ConfigFile separately from run-progress JSON/binary.

Reference

Progressive disclosure: open Official Documentation links only when researching a specific API; load Related Skills when routing to a peer domain — do not preload the whole lattice.

Official Documentation
  • Saving games — Persist group serialization, JSON line format, and the canonical save/load loop this skill builds on.
  • File paths in Godot — user:// vs res:// mapping across OS app-data folders; never hardcode absolute paths.
  • Binary serialization API — store_var/get_var Variant encoding, type fidelity, and why allow_objects is unsafe for untrusted saves.
  • Background loading — ResourceLoader.load_threaded_request for hitch-free level/resource loads after a save restore.
  • File system — FileAccess/DirAccess workflow for existence checks, backups, and safe overwrite patterns.
  • Resources — Resource vs Dictionary persistence, duplicate(true), and when .tres/.res beats hand-rolled JSON.
  • Groups — SceneTree group membership used by the Persist/PERSIST auto-collect pattern.
  • FileAccess — Open modes, encrypted-with-pass AES helpers, SHA-256, compression flags, and buffer I/O.
  • JSON — stringify/parse/parse_string for human-readable saves and validation of parse errors.
  • ConfigFile — INI-style settings (user://settings.cfg) separate from full game-state saves.
  • ResourceSaver — Persist typed Resources/custom Resource trees when JSON type loss is unacceptable.
  • AESContext — Low-level AES block encrypt/decrypt used by custom compressed encrypted save pipelines.
Prerequisites
  • godot-project-foundations — ProjectSettings, Autoload registration, and user:// project identity must exist before a SaveManager can own paths.
  • godot-gdscript-mastery — Typed Dictionaries, Resources, and error-handling patterns for versioned serialize/deserialize code.
  • godot-autoload-architecture — SaveManager is almost always an Autoload; use this for singleton ownership, boot order, and scene-change survival.
Complements
  • godot-resource-data-patterns — Custom Resource schemas and .tres workflows that pair with ResourceSaver instead of flattening everything to JSON.
  • godot-scene-management — Threaded scene swaps and wipe/rebuild Persist nodes after load without leaking old world state.
  • godot-signal-architecture — game_saved / game_loaded event buses so UI and systems react without hard-wiring SaveManager.
  • godot-ui-containers — Settings menus that write ConfigFile/volume keys this skill persists separately from run progress.
  • godot-inventory-system — Item stacks and equipment dictionaries are the heaviest Persist payloads; share ID schemes with save migration.
  • godot-quest-system — Quest flags/stage IDs must round-trip through versioned saves without breaking journal UI.
  • godot-economy-system — Currency wallets and shop unlocks need the same version field and validation as player progress.
Downstream / consumers
Master
  • godot-master — Library router and mirrored module entry; open when discovering which Domain Skill owns persistence vs content systems.

© thedivergentai, LGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 6 other files (scripts, references) in skills/godot-save-load-systems of thedivergentai/GD-Agentic-Skills.

  • SKILL.md
  • references/migration-notes.md
  • references/save-patterns-deep.md
  • scripts/save_integrity_validator.gd
  • scripts/save_load_patterns.gd
  • scripts/save_migration_manager.gd
  • scripts/save_system_encryption.gd

Open the folder on GitHubat commit 4c4d0ff

Compare with similar skills

Godot Save Load Systems next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Godot Save Load Systems compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Godot Save Load Systems this skillthedivergentai/GD-Agentic-Skills821—~3.2kAutomated safety check: PassLGPL-3.0
Godot Gdscript Patterns925236118/AlphaAgent10310 repos~5kAutomated safety check: PassMIT
2D Map and Scene Generator0x0funky/agent-sprite-forge4.4k—~2.9kAutomated safety check: PassMIT
Godot UI Integrationzimo-xiao-zheng/godot-ui-integration285—~1.5kAutomated safety check: PassMIT
Godot Wechat Minigame Adaptergodothub/godot-minigame187—~1.5kAutomated safety check: PassMIT
AI Game Art Pipelineybuild-ai/ai-game-art-pipeline-skill297—~1.1kAutomated safety check: PassMIT

Similar skills

  • Godot Gdscript Patterns

    925236118/AlphaAgent

    Master Godot 4 GDScript patterns including signals, scenes, state machines, and optimization.

    103 GitHub starsUsed in 10 repos~5k tokens
    Game DevelopmentAuto-check passed
  • 2D Map and Scene Generator

    0x0funky/agent-sprite-forge

    Plans and builds 2D game maps and scenes, from tilemaps and parallax backgrounds to HD-2D plates, with collision checks, a playable HTML preview and Tiled, Godot or LDtk export.

    4.4k GitHub stars~2.9k tokensUpdated 4 days ago
    Game DevelopmentAuto-check passed
  • Godot UI Integration

    zimo-xiao-zheng/godot-ui-integration

    Build or revise Godot UI from an approved design, separated art, or a visual reference when scene structure, gameplay binding, and runtime visual verification all matter.

    285 GitHub stars~1.5k tokensUpdated 1 mo ago
    Game DevelopmentAuto-check passed
  • Godot Wechat Minigame Adapter

    godothub/godot-minigame

    Apply the bundled self-contained Godot WeChat Mini Game adapter kit to an official Godot checkout.

    187 GitHub stars~1.5k tokensUpdated 25 days ago
    Game DevelopmentAuto-check passed
  • AI Game Art Pipeline

    ybuild-ai/ai-game-art-pipeline-skill

    Provider-neutral open-source skill for planning and producing game-runtime art assets and animation: static props/icons, canonical character sheets, combat sprites, 3D/video motion references…

    297 GitHub stars~1.1k tokensUpdated 3 mo ago
    Game DevelopmentAuto-check passed
  • MCP Driver

    RandallLiuXin/GodotMaker

    Runtime debugging and live project inspection via godot-mcp.

    550 GitHub starsUsed in 1 repo~1.1k tokens
    Game DevelopmentAuto-check passed

More from thedivergentai/GD-Agentic-Skills

All 98 skills in this repo
  • Godot 2D Animation

    thedivergentai/GD-Agentic-Skills

    Expert patterns for 2D animation in Godot using AnimatedSprite2D and skeletal cutout rigs.

    821 GitHub stars~3.6k tokensUpdated 1 mo ago
    Auto-check passed
  • Godot 3D World Building

    thedivergentai/GD-Agentic-Skills

    Expert patterns for 3D level design using GridMap with MeshLibrary, CSG constructive solid geometry, occlusion, and runtime GridMap builders.

    821 GitHub stars~3.3k tokensUpdated 1 mo ago
    Auto-check passed
  • Godot Adapt 2D To 3D

    thedivergentai/GD-Agentic-Skills

    Expert patterns for migrating 2D games to 3D including node type conversions, camera systems (third-person, first-person, orbit), physics layer migration, sprite-to-model art pipeline, and control…

    821 GitHub stars~4.7k tokensUpdated 1 mo ago
    Auto-check passed
  • Godot Adapt 3D To 2D

    thedivergentai/GD-Agentic-Skills

    Expert patterns for simplifying 3D games to 2D including dimension reduction strategies, 2.5D fake-depth, isometric ports, camera flattening, physics conversion, 3D-to-sprite art pipeline, and…

    821 GitHub stars~4.5k tokensUpdated 1 mo ago
    Auto-check passed
  • Godot Agent Vision

    thedivergentai/GD-Agentic-Skills

    Agentic eyes for Godot work: cross-platform screenshot CLI (asset/region/window/screen) to budgeted WebP, TEMP editor viewport bridge under .gdskills/, and Taste Receptor Atlas v2 (~237…

    821 GitHub stars~3.5k tokensUpdated 1 mo ago
    Auto-check passed
  • Godot Animation Tree Mastery

    thedivergentai/GD-Agentic-Skills

    Expert patterns for AnimationTree including StateMachine transitions, BlendSpace2D for directional movement, BlendTree for layered animations, root motion, transition conditions, advance…

    821 GitHub stars~3.6k tokensUpdated 1 mo ago
    Auto-check passed

Works with

Questions about Godot Save Load Systems

What does Godot Save Load Systems do?

Expert blueprint for save/load systems using JSON/binary serialization, PERSIST group pattern, versioning, and migration. Godot Save Load Systems is an agent skill from thedivergentai/GD-Agentic-Skills. Expert blueprint for save/load systems using JSON/binary serialization, PERSIST group pattern, versioning, and migration.

When should I use Godot Save Load Systems?

Godot Save Load Systems fits situations like: implementing save systems OR data persistence; tasks that involve Game development; tasks that involve Agent memory.

How do I install Godot Save Load Systems in Claude Code?

Run `npx skills add thedivergentai/GD-Agentic-Skills --skill godot-save-load-systems -a claude-code`. Or copy the skill folder (skills/godot-save-load-systems in thedivergentai/GD-Agentic-Skills) into .claude/skills/godot-save-load-systems in your project. Claude Code loads it when a task matches its description.

How do I install Godot Save Load Systems in Codex?

Run `npx skills add thedivergentai/GD-Agentic-Skills --skill godot-save-load-systems -a codex`. Or copy the skill folder (skills/godot-save-load-systems in thedivergentai/GD-Agentic-Skills) into .agents/skills/godot-save-load-systems in your project. Codex loads it when a task matches its description.

Can I use Godot Save Load Systems in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add thedivergentai/GD-Agentic-Skills --skill godot-save-load-systems -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/godot-save-load-systems, .gemini/skills/godot-save-load-systems, .github/skills/godot-save-load-systems and .opencode/skills/godot-save-load-systems in your project.

What does Godot Save Load Systems need to run?

SKILL.md names no scripts, command-line tools or credentials: Godot Save Load Systems is instructions for the agent only.

Does Godot Save Load Systems access the network?

SKILL.md names 1 domain. As links in the text: docs.godotengine.org. This is read from the text; nothing was executed.

Is Godot Save Load Systems safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Godot Save Load Systems use?

Godot Save Load Systems is published under the LGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Godot Save Load Systems use?

About 3.2k tokens (SKILL.md is roughly 13k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.8k tokens, read only when the agent opens those files.

What are the alternatives to Godot Save Load Systems?

Skills that share tags, products or a category with Godot Save Load Systems: Godot Gdscript Patterns (925236118/AlphaAgent, 103 stars), 2D Map and Scene Generator (0x0funky/agent-sprite-forge, 4.4k stars), Godot UI Integration (zimo-xiao-zheng/godot-ui-integration, 285 stars) and Godot Wechat Minigame Adapter (godothub/godot-minigame, 187 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Godot Save Load Systems?

thedivergentai (a GitHub user) maintains it in thedivergentai/GD-Agentic-Skills, which has 821 GitHub stars. The repository holds 98 skills in this directory. The repository was last updated on September 9, 2026.

Source: thedivergentai/GD-Agentic-Skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.