Mtg Export

Export the user's MTG Arena (MTGA) collection straight from the running game into their MTG workspace as collection/MTGA-export-<date>.csv, then sync it. Use this skill when the user wants to export, dump, capture, back up, or refresh their MTG Arena collection / owned cards, or asks "what do I own in Arena", or wants their collection available to the deckbuilding skills (mtg-std-build / mtg-std-upgrade prefer cards you already own). It is a one-shot: it reads the owned-card list out of the live MTGA process memory (no anchor cards, no manual steps), names the cards from the local Scryfall database built by the mtg-db skill (never downloading its own card data), and writes a Moxfield-format CSV into the collection folder. The export is then pushed by invoking the mtg-sync skill afterwards (as the normal user — never from inside the export process). Works on Windows (via pymem) and macOS (via Mach APIs; needs sudo). Requires MTG Arena installed and running.

guuse Updated

File contents

guuse/claude-mtg-skills/tree/main/mtg-skills/skills/mtg-export commit 9146143a41

Frequently asked questions

npx skillmds@latest add guuse/mtg-export