MTG Wiki & Rules Assistant for Openclaw

A comprehensive Magic: The Gathering encyclopedia and rules engine for resolving complex game interactions and card queries.

raymondeeeemmmm
v1.3.1
Apr 30, 2026
0
481
1

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install mtg-wiki

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install mtg-wiki using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is MTG Wiki & Rules Assistant?

The MTG Wiki Assistant is a professional-grade encyclopedia for Magic: The Gathering players, judges, and content creators. It functions as a specialized knowledge base within the Openclaw Skills ecosystem, covering rules, cards, formats, strategies, and lore. By utilizing a local database of over 37,230 cards and complete bilingual rulebooks (CR, MTR, IPG), this skill provides high-fidelity answers to even the most obscure mechanical questions. It is designed to be the ultimate companion for anyone needing precise technical data about the game.

This skill bridges the gap between casual play and competitive judging by providing instant citations from official rulebooks. Whether you are translating deck guides or settling a dispute over the Layers system, this addition to your Openclaw Skills library ensures you have the technical truth at your fingertips.

MTG Wiki & Rules Assistant Use Cases

  • Resolving complex interactions involving the Layers system (CR 613) or APNAP order (CR 101.4).
  • Searching for card data using English names, Chinese names, or fuzzy nicknames.
  • Checking format legality for Standard, Pioneer, Modern, Legacy, and Commander.
  • Assisting tournament judges with Infraction Procedure Guide (IPG) and Magic Tournament Rules (MTR) lookups.
  • Translating strategy articles with standardized MTG terminology and official Chinese card names.

How MTG Wiki & Rules Assistant Works

  1. The user triggers the skill by asking about an MTG card, rule, or using the /mtg-wiki command.
  2. The assistant first scans the local wiki concepts to understand the general game mechanics involved.
  3. For precise rule citations, it executes rule_search.py to query the local index of official rulebooks.
  4. If card data is requested, it uses card_search.py to look up the 37k+ Oracle database or external APIs (mtgch and Scryfall).
  5. It synthesizes the information into a structured response, providing bilingual card names and exact rule numbers for verification.
  6. For complex interactions, it applies a step-by-step analysis framework to explain the stack and continuous effects.

MTG Wiki & Rules Assistant Setup

This skill requires Python 3 and comes with a pre-packaged database. No external environment variables are required for basic functionality.

# Example: Search for a card name
python3 ./raw/tools/mtg_wiki/card_search.py "Lightning Bolt"

# Example: Search for a specific rule number
python3 ./raw/tools/mtg_wiki/rule_search.py "613.1"

MTG Wiki & Rules Assistant Data Schema & Taxonomy

The skill organizes its extensive knowledge base into a structured directory for efficient retrieval:

Directory Content Description
wiki/concepts/ 174+ pages covering rules, mechanics, and game strategies.
wiki/entities/ Lore-related data on characters, organizations, and planes.
raw/cr/ Bilingual Comprehensive Rules (CR) divided by chapters.
raw/mtr/ & raw/ipg/ Official tournament rules and infraction handling guidelines.
Oracle DB A local SQLite database containing 37,230 card entries.

MTG Wiki & Rules Assistant Advanced Features

  • Layer System Engine: Automates the determination of continuous effects across seven distinct layers.
  • Bilingual Translator: Standardizes terminology between English and Chinese using the official mtgch dictionary.
  • Judge Decision Trees: Provides specialized frameworks for tournament officials to handle infractions and game states.
  • Cross-Referencing: Automatically generates wiki-style links between related cards and rules for deep-dive research.
  • Format Legality: Instant verification of card legality across all major sanctioned formats within Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*