add-frontend-component

Official

Streamline frontend UI overlays for the engine.

Authorphase-rs
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Frontend developers need a standardized way to wire new UI overlays into the engine-driven game flow, ensuring overlays receive proper data and dispatch actions.

Core Features & Use Cases

  • Architectural guidance for integrating overlays (CardChoiceModal, TargetingOverlay, ReplacementModal) with the engine -> adapter -> stores path.
  • Enforcement of CR-correct frontend behavior: overlays render only engine-provided state and avoid client-side data derivation.
  • Practical patterns for reusable components, routing in GamePage, and gating overlays by playerId in multiplayer.

Quick Start

Integrate a new overlay by following the documented pattern and wiring it into GamePage waitingFor routing

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: add-frontend-component
Download link: https://github.com/phase-rs/phase/archive/main.zip#add-frontend-component

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.