Install
openclaw skills install @raymondeeeemmmm/mtg-wiki-en万智牌全知识库助手。用于回答万智牌规则问题、查询中英文牌张、分析牌张互动、解释赛制与策略、讲述背景故事。当用户询问万智牌相关内容(牌名、规则概念、赛制、策略、背景设定)或调用 /mtg-wiki 时触发。
openclaw skills install @raymondeeeemmmm/mtg-wiki-enYour all-in-one Magic: The Gathering companion covering rules, card lookup, interactions, formats, strategies, and lore. Powered by a local knowledge base including ~187 wiki pages, 37,230-card Oracle database, and complete bilingual CR/MTR/IPG rule documents.
| Directory | Contents |
|---|---|
wiki/concepts/ | Rule concepts, mechanics, strategies (~174 pages) |
wiki/entities/ | Characters, organizations, products |
wiki/sources/ | Source document summaries |
wiki/synthesis/ | Comparative analysis |
raw/cr/ | Complete Comprehensive Rules (bilingual) |
raw/mtr/ | Magic Tournament Rules |
raw/ipg/ | Infraction Procedure Guide |
Triggered by: "how does first strike + deathtouch work", "stack resolution order", "layer system"
Workflow:
wiki/concepts/rule_search.py to search the local rules indexKey rules quick reference:
Triggered by: user mentions a card name (in either language, fuzzy, or slang)
Workflow:
card_search.py for unified searchCard name format:
Chinese Name (English Name)Chinese NameTriggered by: user describes a multi-card scenario ("what happens if...")
Analysis framework:
Triggered by: user discusses deck archetypes, format selection, banned/restricted lists
Format pages: standard.md / pioneer.md / modern.md / legacy.md / vintage.md
Commander: commander.md / cedh.md
When translating MTG deck guides or strategy articles:
name_translator.py for official Chinese translations# Card lookup (supports Chinese/English fuzzy search)
python3 ./raw/tools/mtg_wiki/card_search.py "Lightning Bolt"
python3 ./raw/tools/mtg_wiki/card_search.py "闪电击"
# Rules lookup (by rule number or keyword)
python3 ./raw/tools/mtg_wiki/rule_search.py "101.4"
python3 ./raw/tools/mtg_wiki/rule_search.py "stack"
# Name translation (EN↔CN)
python3 ./raw/tools/mtg_wiki/name_translator.py "Lightning Bolt"
API priority:
https://mtgch.com/api/v1/) — Chinese first, bilingualhttps://api.scryfall.com/) — English primary| Layer | Effect | Example |
|---|---|---|
| 1 | Copy effects | Clone |
| 2 | Control-changing | Betray |
| 3 | Text-changing | Alter Reality |
| 4 | Type-changing | Blood Moon vs. Urborg |
| 5 | Color-changing | Sleight of Mind |
| 6 | Add/Remove abilities | Tidebinder / Suppression Field |
| 7 | Power/Toughness | Various +/- P/T |
Key distinctions:
Untap → Upkeep → Draw → Precombat Main → Combat → Postcombat Main → End
APNAP (CR 101.4):
wiki/concepts/ first for relevant pagesChinese (English) format[[slug|display]] references| File | Contents |
|---|---|
raw/cr/1.md | Game concepts, priority, costs |
raw/cr/6.md | Spells, abilities, layer system (613) |
raw/cr/7.md | Keyword abilities (702), keyword actions (701) |
raw/cr/glossarycn.md | Chinese terminology glossary |
Decision trees: wiki/branches/referee/decision-trees/
Analysis frameworks: wiki/branches/referee/frameworks/
Judge rules questions must:
This published skill contains only the core code. For the complete ~187 wiki pages + 37,230 card database + bilingual CR/MTR/IPG rules (~13MB), clone the full repository:
git clone https://github.com/RaymondYHH/mtg-skill.git
cd mtg-skill/magic-skill
Full repository contents:
wiki/ — 187 pages of local knowledge (concepts, entities, sources, synthesis)raw/cr/ — Complete Comprehensive Rules (bilingual)raw/mtr/ — Magic Tournament Rules (bilingual)raw/ipg/ — Infraction Procedure Guide (bilingual)raw/data/ — 37,230-card Oracle database + analysis scriptsAfter installing, run python3 raw/tools/mtg_wiki/build_indices.py to build local indices.
card_search.py or API, never from memory