← ClaudeAtlas

mtg-deckbuilderlisted

Build a Commander/EDH deck from your MTG collection. Use when asked to "build a new commander deck", "build a deck for <commander>", make/generate an EDH/Commander deck, re-import the MTG collection, or edit/rebuild an existing deck. Runs the PowerShell engine (EDHREC pool -> two hand-authored Bracket-3 builds -> Scryfall enrich + Commander Spellbook combos -> validate -> self-contained HTML) and updates the home/library page.
lachytoy/mtg-commander-deckbuilder · ★ 0 · Web & Frontend · score 72
Install: claude install-skill lachytoy/mtg-commander-deckbuilder
# MTG Commander Deckbuilder You are the deckbuilding brain. This skill runs the full pipeline and authors two Bracket-3 decks (`owned` = best from the collection now, `optimal` = owned + worthwhile buys) to a consistent standard. The mechanical work is PowerShell; the **card selection + reasons + play guide is you**. **First run?** If no collection has been imported yet, run the **mtg-setup** wizard first (the user can say *"set up my MTG deckbuilder"*) — it picks a workspace folder, imports a Moxfield collection, and builds the first deck. This skill assumes the collection is already imported. **Engine location & workspace — resolve both at the top of EVERY PowerShell call (shell state does NOT persist between calls).** `$MTG` = where the engine code lives (scripts at `$MTG\engine\`); `$WS` = where the user's data/decks/index.html live. The scripts derive their own code root, so you can invoke them by absolute path from any working directory. ```powershell $MTG = if($env:CLAUDE_PLUGIN_ROOT){ $env:CLAUDE_PLUGIN_ROOT } else { throw "CLAUDE_PLUGIN_ROOT not set — install this as a plugin, or set it to the plugin folder." } $WS = if($env:MTG_WORKSPACE){ $env:MTG_WORKSPACE } else { $MTG } # data/, decks/, index.html live here ``` **macOS/Linux:** there is no Windows PowerShell — install PowerShell 7 (`brew install powershell`) and run every engine command through it from bash: `pwsh -File "$MTG/engine/mtg-engine.ps1" -Stage fetch -Commander "..."` (same stages/flags; forwar