mtga-draft-helper
4
总安装量
3
周安装量
#50005
全站排名
安装命令
npx skills add https://github.com/kkunde/skills --skill mtga-draft-helper
Agent 安装分布
antigravity
3
claude-code
3
github-copilot
3
opencode
2
gemini-cli
2
codex
2
Skill 文档
MTGA Draft Helper
Assist users during MTG Arena drafts by combining 17Lands statistical data with real-time Arena log parsing.
Core Workflow
- Acquire card data â Fetch card ratings and color win rates from the 17Lands API. See references/17lands-api.md.
- Read draft state â Parse the Arena
Player.logto detect the active draft, current pack/pick, and taken cards. See references/arena-log-parsing.md. - Evaluate picks â Use win-rate metrics (GIHWR, OHWR, IWD, ALSA, etc.) and color signals to recommend the best pick. See references/card-evaluation.md.
- Show card images â Display Scryfall card images from URLs stored in the dataset.
- Suggest a deck â When the draft is complete (all picks made), build an optimal 40-card deck from the pool. See references/deck-building.md.
Live Draft Tracking (Active Draft Mode)
To assist during a live draft in progress, the agent monitors the Arena log in real time. Full details in references/live-draft-tracking.md.
Quick Start
- Start watcher â Run
live_watcher.py(from the reference) as a background process. It tailsPlayer.logand emits JSON-line events to stdout. - Poll for events â Periodically check the background terminal output for new lines.
- React to each event:
draft_startâ fetch 17Lands data for the detected set, load set guide.packâ resolve card IDs, evaluate, present ranked pick suggestion with card images.pick_madeâ record the pick, update colours and curve, confirm to user.
- Draft complete (42 picks) â auto-build a 40-card deck and present it.
Fallback: Manual Poll
If a background watcher is not available, run this on demand when the user asks:
Get-Content "$env:LOCALAPPDATA\Low\Wizards Of The Coast\MTGA\Player.log" -Tail 200 |
Select-String "Draft\.Notify|Event_Join|Event_PlayerDraftMakePick|BotDraft_DraftStatus|CardsInPack"
Parse the output for the latest pack/pick data and respond with a suggestion.
Quick Reference
17Lands Card Ratings URL
https://www.17lands.com/card_ratings/data?expansion={SET}&format={FORMAT}&start_date={START}&end_date={END}
Optional: &user_group={top|middle|bottom}, &colors={WU|BG|...}
17Lands Color Ratings URL
https://www.17lands.com/color_ratings/data?expansion={SET}&event_type={FORMAT}&start_date={START}&end_date={END}&combine_splash=true
Card Image URLs
Each card’s dataset entry contains an image array with Scryfall URLs:
https://cards.scryfall.io/large/front/{hash}.jpg
For split/DFC cards, a second URL may be present for the back face.
Arena Player.log Location
| OS | Path |
|---|---|
| Windows | C:/Users/{USER}/AppData/LocalLow/Wizards Of The Coast/MTGA/Player.log |
| macOS | ~/Library/Logs/Wizards of the Coast/MTGA/Player.log |
| Linux (Steam) | ~/.local/share/Steam/steamapps/compatdata/2141910/pfx/drive_c/users/steamuser/AppData/LocalLow/Wizards Of The Coast/MTGA/Player.log |
Key Draft Detection Strings in the Log
| Purpose | Log prefix |
|---|---|
| Premier/Trad draft start | [UnityCrossThreadLogger]==> Event_Join |
| Quick draft start | [UnityCrossThreadLogger]==> BotDraft_DraftStatus |
| Premier pack data | [UnityCrossThreadLogger]Draft.Notify |
| Premier pick made | [UnityCrossThreadLogger]==> Event_PlayerDraftMakePick |
| Quick draft pack | DraftPack within BotDraft_DraftStatus |
| Quick draft pick | [UnityCrossThreadLogger]==> BotDraft_DraftPick |
Key Data Fields
| Abbreviation | Full Name | Meaning |
|---|---|---|
| GIHWR | Games In Hand Win Rate | Win rate when card is drawn â primary pick metric |
| OHWR | Opening Hand Win Rate | Win rate when card is in opening hand |
| GPWR | Games Played Win Rate | Win rate in games where card is in the deck |
| ALSA | Average Last Seen At | Average pick position where card is last seen |
| ATA | Average Taken At | Average pick position where card is taken |
| IWD | Improvement When Drawn | Win-rate delta between drawn and not-drawn |
| GIH | Games In Hand (count) | Sample size for GIHWR |
Draft Suggestion Prompt Template
When making pick suggestions, provide for each pack card:
{Name} | Colors: {W/U/B/R/G} | CMC: {N} | Mana Cost: {cost} | Rarity: {R} | Types: {types} | GIH WR: {X.X}%
Recommend the pick considering:
- Raw GIHWR (higher is better, >56% is strong, >60% is a bomb)
- Color alignment with already-drafted cards
- Mana curve needs (creature distribution across CMC slots)
- Archetype synergies for the set
- Wheel probability (cards with high ALSA may come back)
Deck Building Summary
After all picks, build a 40-card deck:
- Target ~17 lands, ~15 creatures, ~8 non-creature spells
- Identify the 2 strongest colors from the pool using color affinity (sum of above-average GIHWR per color)
- Sort cards by GIHWR within the chosen colors, fill creature curve first, then add non-creatures
- Calculate land distribution proportional to mana symbols in the deck
- Output in Arena-importable format:
{count} {Card Name}
Detailed References
- 17Lands API details & data schema: references/17lands-api.md
- Arena log parsing procedures: references/arena-log-parsing.md
- Card evaluation methodology: references/card-evaluation.md
- Deck building algorithm: references/deck-building.md
- Live draft tracking (active mode): references/live-draft-tracking.md
Set-Specific Guides
- Lorwyn Eclipsed (ECL): references/ecl-lorwyn-eclipsed.md â Archetype tier list, top commons/uncommons, pick order, card ratings, and draft strategy tips. Sources: Draft Guide, Set Review, Pick Order.