add-static-ability

Implement MTG static abilities with continuous effects and layer ordering.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/gamajose/MagicTheGathering --skill add-static-ability-gamajose
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-static-ability
Source: https://github.com/gamajose/MagicTheGathering/tree/main/.claude/skills/add-static-ability
Command: npx skills add https://github.com/gamajose/MagicTheGathering --skill add-static-ability-gamajose

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a structured guide to implementing static abilities and continuous effects within the MTG engine, including integration with the layer system and Changeling interactions.

Core Features & Use Cases

  • Covers Continuous effects, layer ordering, and CDA handling for Changeling-type changes.
  • Documents how to wire StaticDefinition, ContinuousModification, and StaticCondition through the parser and layer evaluator.
  • Real-world usage: add a new static ability that grants or modifies power/toughness depending on game state.

Quick Start

Add a new StaticDefinition for your static ability and wire it through the layers, parser, and tests.

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 MTG static abilities and continuous effects in a game engine?

Continuous effects in MTG engine implementations are processed through a layer evaluation system that applies power, toughness, type, color, and keyword modifications in a specific deterministic order.

How do I handle Changeling interactions and characteristic-defining abilities in an MTG engine?

Changeling interactions and characteristic-defining abilities are handled by routing ContinuousModification and StaticCondition logic through the layer evaluator before standard continuous effects are applied.

What is the correct layer ordering for continuous effects modifying creature types and power?

Layer ordering applies continuous effects sequentially based on MTG rules, evaluating type and color modifications before power and toughness changes to ensure correct game state resolution.

How do I wire a new StaticDefinition through the MTG parser and layer system?

You wire a new StaticDefinition by integrating it with the parser routing, passing ContinuousModification objects to the layer evaluator, and adding validation tests for the static ability.

Do I need to write tests when adding static abilities to the MTG engine?

Yes, writing tests is required when adding static abilities because the Skill enforces test coverage for StaticDefinition, parser routing, and layer evaluation code paths to guarantee correct interactions.