game-state

Implement GameState resources and phase transitions in Bevy games.

Updated Apr 21, 2026
One-click install
npx skills add https://github.com/gregoryraymond/claude-agents-and-skills --skill game-state-gregoryraymond
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: game-state
Source: https://github.com/gregoryraymond/claude-agents-and-skills/tree/main/skills/game-state
Command: npx skills add https://github.com/gregoryraymond/claude-agents-and-skills --skill game-state-gregoryraymond

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a guided pattern for implementing and coordinating complex game state management, phase transitions, and turn flow within a Bevy-based project, reducing boilerplate and integration friction.

Core Features & Use Cases

  • Custom GameState resource with a GamePhase enum and a structured turn/phase pipeline.
  • Phase-gated systems, UI visibility hooks, and robust transition logic to drive deterministic gameplay.
  • Use cases include multi-phase game loops, AI integration for turns, and resource processing across phases.

Quick Start

Load this skill when modifying game phases, turn flow, or state transitions to follow the documented GameState pattern

Frequently Asked Questions about game-state

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

FAQPage Schema
How do I manage game phases and turn flow in a Bevy ECS project?

Game phase management in Bevy uses a GameState resource with a GamePhase enum to drive phase-gated systems and transition logic, coordinating turn flow and reducing integration friction for multi-phase game loops.

What is the best way to structure state transitions for a multi-phase game loop in Bevy?

The best way to structure state transitions is using a documented GameState pattern with a GamePhase enum pipeline, providing robust transition logic and UI visibility hooks to drive deterministic gameplay across all phases.

Can I integrate AI turns and resource processing within Bevy game state phases?

Yes, you can integrate AI turns and resource processing by utilizing the GameState resource and structured turn pipeline, applying phase-gated systems to process actions and resources across specific GamePhase enum states.

Does this Bevy game state pattern support UI visibility hooks during phase transitions?

Yes, the Bevy game state pattern supports UI visibility hooks, allowing interface elements to react dynamically to GamePhase enum transitions and ensuring the UI accurately reflects the current phase and turn flow.

When do I need a dedicated GameState resource versus standard Bevy states for game phase management?

You need a dedicated GameState resource when designing complex multi-phase game loops, turn orders, and resource processing that require coordinated phase-gated systems and robust transition logic beyond standard Bevy state configurations.