save-module

Encrypt and version Unity game saves with AES-256 and checksum validation.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/punkfuncgames/tetris-clone --skill save-module
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: save-module
Source: https://github.com/punkfuncgames/tetris-clone/tree/main/.claude/skills/save-module
Command: npx skills add https://github.com/punkfuncgames/tetris-clone --skill save-module

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a production-ready save and load system for Unity projects that ensures game state is persisted reliably, protected with strong encryption, validated with checksums, and migrated across versions to avoid data loss and corruption during updates.

Core Features & Use Cases

  • Efficient binary serialization with fallbacks: MessagePack with LZ4 compression and a JSON fallback for compatibility.
  • Strong encryption and integrity checks: AES-256 encryption, PBKDF2 key derivation, and SHA256 checksums to detect tampering or corruption.
  • Versioning and migration pipeline: Register sequential migrations to transform legacy saves to the current schema safely.
  • Cloud synchronization and conflict resolution: Optional cloud upload/download, conflict events, and resolution strategies (use cloud, use local, most recent, keep both).
  • Reactive key-value storage and autosave: Observe keys reactively, mark dirty on changes, and configurable autosave intervals with backups.
  • Installer and DI integration: Easy registration into Unity DI containers for singleton services and related dependencies.

Quick Start

Call the save service to set the player's data key, then invoke save to write an encrypted, versioned backup and trigger cloud sync if available.

Frequently Asked Questions about save-module

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

FAQPage Schema
How do I implement encrypted save data in Unity with AES-256 and checksum validation?

Encrypted save data in Unity is handled using AES-256 encryption, PBKDF2 key derivation, and SHA256 checksums to detect tampering or corruption. This ensures game state is securely persisted and protected against unauthorized modifications.

What is the best way to migrate legacy game saves to a new schema version in Unity?

Migrating legacy game saves in Unity uses a sequential migration pipeline that transforms older save versions to the current schema safely. This versioning process prevents data loss and corruption during game updates by applying registered migrations in order.

Can I synchronize Unity game saves to the cloud and resolve sync conflicts?

Yes, Unity game saves support optional cloud synchronization with conflict events and resolution strategies. You can resolve cloud sync conflicts using strategies like use cloud, use local, most recent, or keep both to manage divergent save data effectively.

Does this save system support MessagePack serialization with JSON fallback for Unity?

Yes, the Unity save system supports efficient binary serialization using MessagePack with LZ4 compression and includes a JSON fallback for compatibility. This ensures performant local persistence while maintaining format flexibility across different environments.

How do I set up autosave and reactive key-value storage for Unity game state?

Autosave and reactive key-value storage in Unity are configured by observing keys reactively, marking dirty on changes, and setting configurable autosave intervals with backups. This provides automated persistence and responsive state tracking without manual save calls.