add-static-ability

Define and apply static abilities modifying MTG objects through the layer system.

212|148|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/phase-rs/phase --skill add-static-ability
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-static-ability
Source: https://github.com/phase-rs/phase/tree/main/.claude/skills/add-static-ability
Command: npx skills add https://github.com/phase-rs/phase --skill add-static-ability

SYSTEM DOCUMENTATION & REQUIREMENTS

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.

Frequently Asked Questions about add-static-ability

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

FAQPage Schema
How do I implement continuous effects for MTG static abilities?

To apply continuous effects, define a StaticDefinition with Continuous mode and ContinuousModification entries, then ensure evaluate_layers() processes them to update the active game state.

How does the layer system handle type-changing effects like Changeling?

Type-changing effects like Changeling work by passing ContinuousModification::AddAllCreatureTypes through gather_active_continuous_effects() to apply_continuous_effect() in the layer evaluation cycle.

Can I use static abilities to modify power, toughness, and color simultaneously?

Yes, a single StaticDefinition can contain multiple ContinuousModification entries to adjust power, toughness, color, and grant keywords simultaneously across the layer system.

What is needed to add an 'enchanted creature' or 'creatures you control' static effect?

Conditional static effects like 'creatures you control' require a StaticDefinition utilizing Conditional activity and Target filtering to restrict modifications to specific battlefield objects.

When do I need to use StaticDefinition for MTG continuous modifications?

You need StaticDefinition whenever implementing continuous modifications like type changes, power/toughness adjustments, keyword grants, or characteristic-defining abilities (CDAs) that require layer evaluation.