add-interactive-effect
OfficialAdd interactive effects via seamless continuation.
System Documentation
What problem does it solve?
Interactive effects pause game resolution to wait for player input, then resume. The core mechanism is the continuation pattern, which allows a waiting state to stash remaining sub-abilities and resume after a response, enabling complex card interactions like Scry, Dig, Surveil, and Search.
Core Features & Use Cases
- Continuation-driven waiting states (WaitingFor) and pending_continuation to pause and resume ability chains.
- Engine wiring that propagates targets, resumes on GameAction responses, and handles subsequent waiting states.
- AI support and multiplayer routing patterns to generate and validate legal actions for interactive decisions.
- Frontend UI integration with modals and card/option selections to collect player input.
Quick Start
Create a new interactive effect by implementing a resolver that sets a WaitingFor state, stores a continuation, handles the player's response to resume the chain, and integrates AI, multiplayer, and frontend UI patterns.
Dependency Matrix
Required Modules
None requiredComponents
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-interactive-effect Download link: https://github.com/phase-rs/phase/archive/main.zip#add-interactive-effect Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.