add-replacement-effect

Automate replacement effect parsing, registry wiring, and engine execution in the MTG engine.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill encapsulates the design, parsing, and integration of replacement effects within the MTG engine, providing a defined path from ReplacementDefinition through the pipeline to engine execution and post-replacement handling.

Core Features & Use Cases

  • Definition and wiring of ReplacementDefinition entries into the registry.
  • Support for both Mandatory and Optional { decline } replacement modes, including pre-zone-change interactive choices.
  • End-to-end handling of post-replacement effects after the modified event is delivered.
  • Clear guidelines for parsing from Oracle text and testing via the replacement pipeline.

Quick Start

Implement an end-to-end replacement by wiring a new ReplacementDefinition into the registry and validating it through the full pipeline.

Frequently Asked Questions about add-replacement-effect

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

FAQPage Schema
How do I implement MTG replacement effects like enters-tapped and damage prevention in a game engine?

To implement MTG replacement effects, you define a ReplacementDefinition, wire it into the engine registry, and validate it through the parsing pipeline to handle event-modifying abilities like enters-tapped and damage prevention.

How does parsing Oracle text work for mandatory and optional MTG replacement effects?

Parsing Oracle text for MTG replacement effects extracts ability definitions from the text and configures them as Mandatory or Optional modes, enabling pre-zone-change interactive choices and subsequent post-replacement event handling.

What is the best way to wire pre-zone-change interactive choices for ETB replacement effects?

The best way to wire pre-zone-change interactive choices for ETB replacement effects is by configuring Optional decline modes within the ReplacementDefinition and hooking them into the engine pipeline before zone changes occur.

Can I handle post-replacement effects automatically after a modified MTG event is delivered?

Yes, you can handle post-replacement effects automatically by utilizing the engine hooks specified in the replacement pipeline, which manage subsequent actions after the modified event is successfully delivered.

Does this MTG engine replacement pipeline support testing end-to-end event-modifying abilities?

Yes, the MTG engine replacement pipeline supports end-to-end testing by validating the full flow from ReplacementDefinition and registry wiring through to execution and post-replacement handling.

When should I use Optional decline modes instead of Mandatory replacements for MTG abilities?

Use Optional decline modes for MTG abilities when players need pre-zone-change interactive choices, whereas Mandatory replacements are required for automatic event modifications like damage prevention.