agent-memory

Manage game save and progress persistence for UrhoX Lua games.

Updated May 16, 2026
One-click install
npx skills add https://github.com/haitao2016/--Skill --skill agent-memory-haitao2016
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-memory
Source: https://github.com/haitao2016/--Skill/tree/main/agent-memory
Command: npx skills add https://github.com/haitao2016/--Skill --skill agent-memory-haitao2016

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires urhox-engine, cjson, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill solves the problem of game save/progress persistence for UrhoX Lua games, allowing for seamless save/restore capabilities and version management.

Core Features & Use Cases

  • Save/Load API: Offers a unified API for saving and loading game states, supporting multiple save slots, automatic saving, version migration, and data validation.
  • File + cjson Implementation: Based on UrhoX's file system and cjson for JSON parsing, ensuring compatibility and efficiency.
  • Use Case: Ideal for games requiring save systems ranging from simple single-slot saves to complex scenarios with multiple slots, automatic saves, and versioned data.

Quick Start

Use the agent-memory skill to save the current game state to slot 1.

Frequently Asked Questions about agent-memory

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

FAQPage Schema
How do I implement game saving and progress persistence in UrhoX Lua?

Game saving and progress persistence in UrhoX Lua is implemented using a unified API that manages save slots, automatic saves, and data validation. It leverages the UrhoX file system and cjson for efficient JSON state serialization.

What is the best way to handle version migration for saved game files?

Version migration for saved game files is handled natively by the save and load API, ensuring compatibility across game updates. This allows older save states to be validated and seamlessly restored without losing progress.

Does the UrhoX engine support multiple save slots and automatic saving?

Yes, the UrhoX engine supports multiple save slots and automatic saving through this dedicated persistence API. It allows games to maintain several independent player states and trigger automatic saves without manual intervention.

Do I need cjson to parse game state data for UrhoX Lua save files?

Yes, you need cjson to parse game state data for UrhoX Lua save files because the persistence mechanism relies on it for JSON serialization. It works directly with UrhoX's file system to read and write structured save data.

Can I validate corrupted save data when restoring game progress?

You can validate save data when restoring game progress because the API includes built-in data validation checks. This ensures that corrupted or incompatible save files are detected before loading, preventing runtime errors.