mtg-commander

mtg-commander is a skill for Claude Code, Codex from P47Phoenix/Claude-Plugins. It costs 92 tokens per session (10,413 once invoked), scanned A, original, MIT.

A multi-agent tool for building 100-card MTG Commander decks, a Magic: The Gathering format where each deck is led by a commander. It selects cards for synergy while checking format legality and budget requirements.

In plain words
What is it for?
Use it to build Commander, EDH, or other 100-card decklists based on a chosen commander, desired synergies, and a budget.
Why use it?
It helps turn a deck idea and constraints into a structured decklist while separating pipeline steps and independent review. That reduces the need to check every card and interaction manually.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/p47phoenix/claude-plugins/mtg-commander
Any agent
npx skills add P47Phoenix/Claude-Plugins --skill mtg-commander
Clone the repo
git clone --depth 1 https://github.com/P47Phoenix/Claude-Plugins

Made for: Claude Code, Codex.

Its marketplace also offers this one on its own, as the plugin mtg-commander/plugin install mtg-commander after adding the marketplace above.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mtg-commander

README.md
[![agentmods](https://agentmods.dev/badge/skills/p47phoenix/claude-plugins/mtg-commander.svg)](https://agentmods.dev/skills/p47phoenix/claude-plugins/mtg-commander)
Your own site
<a href="https://agentmods.dev/skills/p47phoenix/claude-plugins/mtg-commander"><img src="https://agentmods.dev/badge/skills/p47phoenix/claude-plugins/mtg-commander.svg" alt="Measured on agentmods" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 10,413 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00092 $0.10413
Opus 5 $0.00046 $0.05207
Sonnet 5 $0.00018 $0.02083
Haiku 4.5 $0.00009 $0.01041

Measured 4d ago against content hash 6a761ce1935c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

mtg-commander scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/card_lookup.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

mtg-commander/SKILL.md · 1,185 lines

How it starts

The opening of the file, as written. The whole thing — 1,185 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MTG Commander Deck Builder

Multi-agent pipeline for building optimized, format-legal, budget-compliant Commander (EDH) decklists.

User-facing guide: see README.md for install, quick start, and troubleshooting. Config authoring walkthrough at references/config-walkthrough.md.

Sub-Agent Dispatch Guardrail

Every pipeline step — primary agents and challenger agents alike — MUST be dispatched as a separate sub-agent via the Agent tool. This is NON-NEGOTIABLE.

NEVER inline any pipeline step. Running a pipeline step inside the orchestrator's own context instead of spawning a dedicated sub-agent is a GUARDRAIL VIOLATION. If you catch yourself thinking "I'll just run this step inline to save time," stop. That thought is the violation.

Rationale:

  • Context isolation — each agent receives only its defined inputs (deck state, intake params, reference files). No bleed from prior agent reasoning.
  • Adversarial independence — challengers MUST NOT share context with the primary they are reviewing. Shared context defeats the entire adversarial architecture.
  • Correction loop integrity — self-correction routing depends on clean agent boundaries. Inlined steps corrupt the correction signal.

Anti-pattern (from real session 0876a59e):

"I'll run the agent roles inline to keep things moving..."

This collapsed all four agents into a single context window, destroyed adversarial independence, and produced a deck with 14 undetected color identity violations. The correction loop never fired because there were no agent boundaries to trigger it. NEVER repeat this.

All 8 dispatches (4 primary + 4 challenger) MUST be separate Agent tool invocations. No exceptions. No "just this once." No "it's a simple deck."

Configuration (.mtg-commander.yml)

At pipeline start (after intake confirmation, before the pipeline banner), check the user's working directory for .mtg-commander.yml.

If absent: Use all defaults. Output a one-line note: No .mtg-commander.yml found — using defaults. Create one to customize loop caps, price goals, and escalation.

Read the full file on GitHub · 1,185 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 1,185 lines · 92 tokens per session scan A 6a761ce1935c

Subscribe to this mod's changes

mtg-commander is a skill published in the GitHub repository P47Phoenix/Claude-Plugins (2 stars, last pushed 3mo ago), licensed MIT. It adds 92 tokens to every session and 10,413 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

chronicle

Analyze Copilot session history for standup reports, usage tips, session search, and session reindexing. Use when the user asks for a standup, daily summary, usage tips, workflow recommendations, wants to search or find past sessions by keyword/file/PR, wants to reindex their session store, or asks about deleting…

microsoft/vscode · 72 tokens

imagegen

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…

openai/codex · 113 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens