data-manager

Manage key-value data for Phaser 4 game objects, scenes, and global registry.

Updated May 16, 2026
One-click install
npx skills add https://github.com/ckyeon/claude-code-settings --skill data-manager-ckyeon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: data-manager
Source: https://github.com/ckyeon/claude-code-settings/tree/main/project-templates/phaser/.claude/skills/data-manager
Command: npx skills add https://github.com/ckyeon/claude-code-settings --skill data-manager-ckyeon

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires phaser, and includes scripts (resource) components.

What problem does it solve?

The Phaser 4 DataManager skill simplifies storing and accessing custom data in Phaser game objects, scenes, and the global registry. It eliminates the complexity of manual data tracking, making it easy to manage state within your game.

Core Features & Use Cases

  • GameObject Data: Attach and manipulate key-value pairs directly to Phaser GameObjects for local state management.
  • Scene Data: Maintain per-scene state through a DataManager instance embedded within each scene.
  • Global Registry: Use a sharedDataManager instance to store data that needs to persist across multiple scenes or the entire game lifecycle.
  • Use Case: Suppose you want to track a player's health points, score, or other custom game variables throughout a Phaser game. The DataManager skill enables this by providing an intuitive API to handle all your game's data needs.

Quick Start

Use the 'data-manager' skill to set the health points for a game object named 'player' with a value of 100.

Frequently Asked Questions about data-manager

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

FAQPage Schema
How do I manage game state in Phaser 4 using key-value data?

To manage game state in Phaser 4, you use a key-value system to attach data directly to GameObjects, scenes, or a global registry. This provides reactive, event-driven updates and persistent storage for custom variables throughout your game lifecycle.

How do I store and track custom player variables across multiple Phaser scenes?

To store and track custom variables across multiple Phaser scenes, you use a shared global registry. This DataManager instance persists data across the entire game lifecycle, ensuring values like player health or score remain accessible during scene transitions.

Can I attach local state data directly to a Phaser game object?

Yes, you can attach local state data directly to a Phaser game object. The system allows you to bind and manipulate key-value pairs to individual GameObjects, providing isolated state management for specific entities like a player character.

How does event-driven data management work for Phaser game variables?

Event-driven data management works by triggering real-time updates whenever key-value pairs change in the registry, scene, or game object. This reactive mechanism ensures your game logic responds immediately to state modifications without manual polling.

Do I need Phaser 4 to use this data manager approach?

Yes, you need Phaser 4 because the data manager depends on it to function. It relies on the Phaser framework to embed DataManager instances into scenes and GameObjects for reactive state updates.