Game Save Systems
/save-systems
Design save/load for game state — choosing what to serialize, file formats, save slots, atomic crash-safe writes, schema versioning and migration, and autosave.
- 许可证
- Apache-2.0
- 出品
- GameSkill 出品
所属合集
Awesome Gamedev Agent Skills
77 portable SKILL.md skills across 12 engines (Godot, Unity, Unreal, Phaser, PixiJS, three.js, Bevy, pygame, LÖVE, Roblox, Defold, Ebitengine), with a router.
我们测过
在 Godot 4.7.2 上通过 29/29 项检查(2026-10-28):能触发、有可运行示例、有截图和自检清单、单一职责、中英文文档齐全。触发检查是把提示词和 skill 描述做匹配,不是真实 agent 运行。
测试报告这个 skill 做什么
什么时候触发
Design save/load for game state — choosing what to serialize, file formats, save slots, atomic crash-safe writes, schema versioning and migration, and autosave. Engine-neutral. …
GameSkill 测过的版本
GameSkill 调优版:skill 文件取自提交 184b72be0288,按我们的 skill 流程加上可运行示例、测试报告、自检清单和中文指南。
协议:基于 gamedev-skills/awesome-gamedev-agent-skills(作者 gamedev-skills),协议 Apache-2.0。ZIP 保留协议文件(LICENSE, NOTICE),CHANGES.md 列出了 GameSkill 加的所有文件。

自检清单
- 存档只存纯数据(id、数字、字典),不存节点 / Saves hold plain data (ids, numbers, dictionaries), never nodes
- 每个存档都写了版本号,读出来是整数 / Every save carries a version, read back as an integer
- 先写临时文件再改名,并保留 .bak;主存档坏了能读回 .bak / Writes go to a temp file then rename, keeping a .bak that loads if the main save is corrupt
- 旧版本存档按顺序迁移,新版本存档会被拒绝 / Old saves migrate step by step; saves from a newer build are refused
- 自动存档有独立文件并限制频率 / Autosave has its own file and is throttled
中文指南
这个 skill 做什么
教 AI 设计游戏存档:该存什么、用什么格式、存档槽位、防崩溃的原子写入(先写临时文件再改名,保留备份)、带版本号的迁移,以及自动存档。描述与引擎无关,示例主要用 Godot 4.7,迁移部分用 Python 伪代码说明。
什么时候用
- 第一次做存档/读档
- 玩家反馈存档损坏、进度丢失
- 改了存档结构,旧存档需要升级
- 需要多个存档槽和自动存档
怎么装
下载本页的 ZIP,把 save-systems/ 整个文件夹放进 .claude/skills/(Claude Code)或 .agents/skills/(Codex、Cursor),重启 agent。
最小示例
gameskill/examples/ 是一个 Godot 4.7 工程,save_system.gd 把 skill 里的四个模式放在一起,并把 Python 写的迁移逻辑改写成了 GDScript。运行后按 S 存到槽位 0,按 L 读取,屏幕上列出各槽位状态。
我们怎么测的
在 Godot 4.7.2 无头模式下跑 17 项检查:存读一致、版本号是整数、写入后没有残留临时文件、主存档被截断时读回备份、v1 存档迁移到 v3、拒绝更新版本的存档、自动存档每分钟最多一次且不覆盖槽位。结果在 gameskill/test-report.json。
搭配
godot-nodes-scenes:用自动加载管理全局状态input-systems:按键设置也要保存
安装
告诉你的 AI
Install the skill from https://gameskill.dev/skills/save-systems/install.md
GameSkill 测过的版本
mkdir -p .claude/skills
curl -fsSL https://gameskill.dev/dl/skills/save-systems.zip -o /tmp/gameskill-save-systems.zip
unzip -oq /tmp/gameskill-save-systems.zip -d .claude/skills
rm /tmp/gameskill-save-systems.zip包含内容
- Worked steps: Serialize state as plain data; Atomic, crash-safe write; Versioned load with migration; Save slots + throttled autosave
- A pitfalls section with the mistakes to avoid
- Bundled 1 reference doc the agent reads when needed
适合
- Requests about save system, save/load, game state persistence, save slots or autosave
试试这条提示词
Add save slots and autosave with crash-safe writes and versioned save files.关于这个 Skill
Design save/load for game state — choosing what to serialize, file formats, save slots, atomic crash-safe writes, schema versioning and migration, and autosave. Engine-neutral. Use when the user mentions save system, save/load, game state persistence, save slots, autosave, save file corruption, or migrating old saves to a new version.
From the save-systems SKILL.md in gamedev-skills/awesome-gamedev-agent-skills.
What's inside
- Serialize state as plain data (not engine objects)
- Atomic, crash-safe write (temp + rename)
- Versioned load with migration
- Save slots + throttled autosave
常见问题
肉鸽构筑白标起步工程(Godot 4 + Web + 平衡表)
告别空工程从零搭架子!开箱即玩的白标肉鸽构筑商业起步模板(Godot 4 完整工程 + Web 可玩版):含开局三槽赐福、无交叉 DAG 地图、扇形出牌、Boss 半血锁血、篝火/商店删牌、32 位校验防坏档 SaveStore、中英切换、30 牌/18 遗物/15 怪平衡表与 1,000 局 HTML 压测工具。
- 完整 Godot 4.3+ 工程(打开即 F5 运行,内置防坏档原子 SaveStore + 中英实时切换 LocService)
- 零构建 Web HTML5 可玩起步版(扇形手牌、2 帧受击闪白、震屏与 Boss 半血锁血全跑通)
基于 gamedev-skills/awesome-gamedev-agent-skills (作者 gamedev-skills,协议 Apache-2.0)。ZIP 里保留原作者的 LICENSE 和 NOTICE,ATTRIBUTION.md 和 CHANGES.md 写明来源提交和 GameSkill 加的内容。
搭配使用
作者标注的相关 Skills,或更适合相邻任务的 Skills。
Godot Resources
Data-driven Godot 4.7 games with custom Resource classes: typed data, .tres files, duplication and threaded loading.
Procedural Generation
Procedural content with seeded RNG: Perlin and Simplex noise terrain, rooms-and-corridors dungeons and weighted loot tables.
RPG Systems
Build an RPG: stats and leveling, inventory and equipment, quests, branching dialogue, save/load, and combat.
Survival Crafting
Build a survival-crafting game: resource gathering, inventory, crafting and a tech tree, needs (hunger/thirst/temperature), and base building.
Awesome Gamedev Agent Skills 中的更多 Skills
查看全部 43 个2D Platformer
Build a 2D platformer: run/jump control with coyote time, jump buffering, and variable jump height, plus tiled levels and hazards.
Behavior Trees & Utility AI
Build a behavior-tree runtime and a Utility AI system with response curves, plus hybrid agents where the behavior tree drives utility scoring.
Bevy ECS
Structure a Bevy app around ECS: plugins, components and resources, systems with Query and Commands, system ordering and Time.
Card Game
Build a card game: card data, deck/hand/discard zones, draw/shuffle/reshuffle, a turn structure, costs, and effect resolution.
相似 skills
pixelfx
244 pixel-art effects written as code (fire, explosions, magic, weather, UI, pickups, critters) plus a draft, render, look, refine loop for making new ones; every effect exports a sprite sheet with Aseprite-style JSON for Godot, Unity, Phaser or any engine.
Co-op Anything
Point your coding agent at a single-player game and make it co-op: an MCP server, 13 agent skills and a playbook to research, reverse engineer, build, bot-test and ship co-op mods with Steam relay networking.
Novel to Game: Build
Build a risk-matched whitebox or the approved production game for its target runtime.
Shader Art Coding (GLSL / Shadertoy)
A tested library of 186 GLSL building blocks plus a workflow for procedural fragment shaders: SDF raymarching, 2D distance fields, noise and fBm, terrain, water, clouds, lighting and tonemapping. A Python bundler inlines only the functions a shader uses, and a checker lints it for the mistakes that break WebGL. Good for game backdrops, title screens, portals, pickups and full-screen effects.