add-static-ability
OfficialDefine and apply MTG static abilities in-engine.
Authorphase-rs
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Use when adding or modifying static abilities, continuous effects, or layer system modifications — type-changing effects, power/toughness modification, keyword granting, color changes, CDAs, or any "as long as" / "enchanted creature" / "creatures you control" ability.
Core Features & Use Cases
- Static abilities produce continuous effects that modify game objects through the layer system (MTG Rule 613).
- Trace how Changeling's AddAllCreatureTypes works from parser to layers. It's the reference for type-changing effects: synthesize_changeling_cda() in synthesis.rs → StaticDefinition with ContinuousModification::AddAllCreatureTypes → gather_active_continuous_effects() → apply_continuous_effect() in layers.rs.
- The engine models static definitions as Continuous modifications applied in a defined layer order, driven by StaticDefinition, Conditional activity, and Target filtering, enabling complex card effects like type changes, color changes, and keyword grants to be implemented and tested.
Quick Start
Create a new StaticDefinition with mode Continuous and a set of ContinuousModification entries to implement a new static effect, then ensure it is evaluated by evaluate_layers() to apply the changes to the active game state.
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-static-ability Download link: https://github.com/phase-rs/phase/archive/main.zip#add-static-ability 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.