casting-stack-conditions

Official

Master MTG casting, stack, and condition resolution.

Authorphase-rs
Version1.0.0
Installs0

System Documentation

What problem does it solve?

The MTG rules engine presents significant complexity around casting, stack management, and condition evaluation. This Skill provides a structured approach to implementing, validating, and extending the casting pipeline to ensure correct behavior and consistency across spell casting and abilities.

Core Features & Use Cases

  • Cohesive casting flow: unify spell casting, target selection, and cost handling with a shared set of primitives.
  • Modal and resolution-time support: enable modal choices and interactive resolutions using a robust WaitingFor state machine.
  • Extensibility for new casting steps and conditions: add or modify casting steps, costs, and conditional logic with minimal risk.
  • Use Case: engine developers adding new casting features or refining interactivity within the stack, priority, and resolution paths.

Quick Start

Review the Casting, Stack & Condition Systems to implement or adjust a casting step, stack behavior, or condition check in the engine.

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: casting-stack-conditions
Download link: https://github.com/phase-rs/phase/archive/main.zip#casting-stack-conditions

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.