save-system

Persist Unity game state with versioned JSON slot-based saves.

3|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/XeldarAlz/KlondikeSolitaire --skill save-system
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: save-system
Source: https://github.com/XeldarAlz/KlondikeSolitaire/tree/main/.claude/skills/gameplay/save-system
Command: npx skills add https://github.com/XeldarAlz/KlondikeSolitaire --skill save-system

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

The Save/Load system provides a cohesive pattern for persisting game state independently of Unity scene changes, enabling reliable restoration of player progress and world state.

Core Features & Use Cases

  • ISaveable interface for components that need persistence and a central SaveManager that orchestrates capture/restore.
  • JSON-based save data with versioning, slot-based saves, per-scene keys, and optional cloud sync prep.
  • Use Case: When a player finishes a level, their inventory, quest progress, and player stats are saved automatically and can be reloaded on game startup or after loading a different scene.

Quick Start

Attach SaveManager to a persistent object, implement ISaveable on components, and call Save or Load at key game events.

Frequently Asked Questions about save-system

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I persist game state across Unity scenes?

To persist game state across Unity scenes, implement the ISaveable interface on components and use a central SaveManager to orchestrate capture and restore. This pattern enables reliable restoration of player progress independently of scene changes.

What is the best way to implement slot-based saves in Unity?

Slot-based saves in Unity are managed through JSON-based save data with versioning and per-scene keys. This approach organizes multiple save slots while preparing the data structure for optional cloud synchronization.

How does JSON serialization work for Unity save data?

JSON serialization for Unity save data uses a versioned format with ISaveable capture and restore. It enforces atomic writes to prevent data corruption and ensures the save data remains migration-ready for future format updates.

Do I need a save manager to keep player stats and inventory after loading a different scene?

Yes, attaching a SaveManager to a persistent object allows you to save player stats and inventory automatically. By calling Save or Load at key game events, the state is preserved and reloaded on startup or after scene transitions.

Can I prepare Unity save data for cloud sync?

Yes, you can prepare Unity save data for cloud sync using this system's JSON-based format. It includes slot-based saves and per-scene keys designed specifically to facilitate downstream cloud synchronization preparation.

Why does my game state need migration-ready save data?

Migration-ready save data is needed to handle versioned JSON formats safely when updating your game. It prevents loss of player progress by allowing structured data migrations rather than breaking compatibility with older save files.