data-manager

Manage key-value game state with event-driven change tracking in Phaser.

Updated Mar 13, 2026
One-click install
npx skills add https://github.com/Dominik-Steinweg/Fragdachse --skill data-manager-dominik-steinweg
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: data-manager
Source: https://github.com/Dominik-Steinweg/Fragdachse/tree/main/.agents/skills/data-manager
Command: npx skills add https://github.com/Dominik-Steinweg/Fragdachse --skill data-manager-dominik-steinweg

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill solves the challenge of managing game state and synchronizing data across different game objects, scenes, and global systems without creating tightly coupled, hard-to-maintain code.

Core Features & Use Cases

  • Reactive Data Binding: Automatically triggers events when data changes, allowing UI elements or game systems to update instantly.
  • Multi-Level Storage: Provides consistent key-value storage at the GameObject, Scene, and Global Registry levels.
  • Use Case: Use this to track player health across multiple scenes or to synchronize a HUD display with a score variable that updates whenever the player collects an item.

Quick Start

Use the data-manager skill to initialize a new registry key for player score and set up an event listener to update the UI whenever that score changes.

Frequently Asked Questions about data-manager

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

FAQPage Schema
How do I manage Phaser game state across multiple scenes?

Reactive game state management uses an event-driven key-value store to synchronize data across GameObjects, Scenes, and the global Registry. It triggers events automatically when data changes, allowing UI elements to update instantly without tightly coupled code.

How do I synchronize a Phaser HUD display when the player score changes?

You can synchronize a Phaser HUD by setting up an event listener on a reactive data store. When the player collects an item and the score variable updates, the event-driven system automatically triggers the UI refresh to reflect the new score.

Can I query specific data keys in a Phaser registry without retrieving everything?

Yes, you can retrieve specific values using pattern-based querying. This allows you to target and extract specific matching keys from the key-value storage system rather than pulling the entire game state registry.

Does this event-driven state management approach support locking data to prevent edits?

Yes, the state management system supports data freezing. This feature allows you to lock specific registry values and prevent further modifications, ensuring critical game state data remains read-only during gameplay.

What is the best way to increment or toggle Phaser game state values?

The best way to increment or toggle Phaser game state values is using standardized storage methods for these exact operations. This allows you to safely update numerical or boolean data while automatically triggering reactive events for dependent systems.