Jason Flatford Fractional CTO
Book 30 minutes (opens Google Calendar in a new tab)

Content SaaS

Mythic Decks

A new Arena Brawl deck is published daily, ready to play. A fully automated pipeline using GitHub Actions and Anthropic agents generates, validates, and publishes each decklist, grounded in Moxfield references and Scryfall card data so nothing hallucinated ever reaches the site.

  • Next.js 16 + Tailwind v4 + shadcn/ui
  • Anthropic Agent Pipeline
  • Public REST API + OpenAPI
  • Bluesky + Mastodon federated publishing

Overview

Mythic Decks is a dedicated content site that provides Magic: The Gathering Arena Brawl players with a ready-to-import deck each morning. There are no accounts, sign-ups, or AI branding: just a fresh, well-constructed decklist featured on the homepage.

  • Daily publishing, zero manual work: A cron-driven pipeline selects a commander, gathers community references, builds a deck, validates it, and publishes it every day.
  • Grounded generation: Moxfield decklists plus occurrence rankings from the oracle CLI keep the agent anchored to real community play, not guesses.
  • Full validation: Every card is checked against Scryfall for existence, Brawl legality, color identity, and singleton rules before anything is published.
  • One-click Arena import: The deck is pre-formatted so players copy, paste into Arena, and queue up in seconds.

Problem

Although Brawl is one of MTG Arena's most popular formats, finding quality decklists remains fragmented and inconsistent.

Scattered content

  • Decklists are scattered across Reddit threads, outdated blog posts, and random Moxfield searches.
  • There is no single daily source for up-to-date Brawl content.
  • Aggregator sites often treat Brawl as a secondary focus.

Quality vs. scale

  • Hand-curated decks are not scalable for daily publication.
  • Basic AI-generated decks may include invalid cards or violate format rules.
  • Readers need assurance that every card is real and legal.

Friction at the finish line

  • Even when a suitable deck is found, importing it into Arena can be cumbersome.
  • Players prefer to start playing immediately rather than manually transcribe card lists.
  • Mobile clipboard flow must just work

Solution

The site features a minimal design with a single hero section showcasing today's deck, supported by an autonomous publishing pipeline that treats Scryfall and the Anthropic API as its two sources of truth.

Core design decisions

  1. One deck per day, always fresh: A UTC daily cadence with round-robin color rotation, so players never see three Simic decks in a row.
  2. Agent grounded in real play: About ten Moxfield reference decks plus occurrence rankings feed the agent so it synthesizes a consensus build based on actual play, not a speculative one.
  3. Validation is non-negotiable: every card must pass Scryfall existence, format legality, color identity, and singleton checks before publication.
  4. Content over chrome: there are no accounts, no AI branding, and no bloat: just a decklist, a deck guide, and a copy button.

Generation pipeline

A seven-step GitHub Actions workflow runs daily at 06:00 UTC. Each stage has defined inputs, outputs, and failure modes. The pipeline either publishes a validated deck or retains the previous day's deck and logs any failures.

StageWhat happens
1 - Commander selectionPull the next commander from the queue with color rotation and no recent repeats; verify the commander is still Brawl-legal
2 - Reference gatheringFetch ~10 Moxfield decklists for the commander; fall back to pre-ingested data or occurrence rankings if Moxfield is blocked
3 - Theme selectionIdentify viable archetypes (Tokens, Voltron, Aristocrats, Spellslinger, Landfall…) and pick the strongest for this commander
4 - Decklist generationAnthropic agent receives the commander, theme, references, and occurrence data; builds a 100-card singleton list
5 - ValidationEvery card verified against Scryfall for existence, legality, color identity, singleton; up to three correction rounds if checks fail
6 - Deck guideAgent writes the pitch, play summary, key synergies, and opening-hand guidance; guide card references are cross-checked against the decklist
7 - PublicationWrite decklist, guide, Moxfield refs, and metadata to Postgres; trigger Next.js revalidation so the homepage flips

Commander rotation

  • Launch seed: About 15 hand-picked commanders with strong reference availability for day-one quality.
  • Ongoing rotation: A randomized round-robin through color combinations, then a random commander within each slot.
  • No repeats of a commander until the pool is exhausted, and those with no references are deprioritized.

Failure handling

  • If validation fails, the agent receives up to three correction rounds, each informed by specific failure details.
  • After three unsuccessful attempts, the commander is skipped and logged for manual review.
  • If the process fails entirely, the previous day's deck remains featured to ensure the homepage is never blank.

Validation & quality

The agent is not trusted to produce correct decklists on its own. Every card is subject to deterministic validation before database entry, and the generated guide is cross-checked with the final decklist.

CheckFailure action
Card existenceScryfall lookup - reject unknown names, request replacement
Brawl legalityReject banned/unreleased cards, request replacement
Color identityReject cards outside commander's identity
Singleton ruleReject duplicate non-basic cards
Deck size (100)Re-run generation if short or over
Minimum land count (34)Re-prompt to add lands
Minimum interaction (5)Re-prompt to add removal/counterspells
Guide card referencesEvery card named in the guide must be in the decklist and exist on Scryfall

Architecture

There is a clear separation between the publishing pipeline and the reader-facing site. The pipeline operates in GitHub Actions and writes to Neon Postgres, while the Next.js app reads from Postgres via Drizzle and renders server components on Vercel.

Stack choices

  • Next.js 16 App Router: SSR for SEO, server components for direct database reads, and ISR for efficient rebuilds.
  • Drizzle + Neon Postgres: Type-safe schema and queries, with serverless Postgres on a generous free tier.
  • Tailwind v4 + shadcn/ui: Dark-first UI with OKLch tokens, consistent with sister projects.
  • Vercel hosting: Zero-config Next.js, an edge network, and preview deploys for every PR.

Data model highlights

  • Commanders, decklists, decklist cards split so cards are queryable across every published deck (for example, "show me every deck running Arcane Signet").
  • Postgres tsvector, with weighted title, theme, and guide fields, enables robust full-text search functionality.
  • A commander queue table tracks scheduled dates and failure reasons, providing operational visibility.

Platform & public API

Mythic Decks has grown beyond a single daily site into a small platform: a public REST API powers other tools, federated cross-posting shares each day's deck across the open social web, and a Resend-backed email newsletter keeps subscribers informed.

Public Toolkit API

  • REST/JSON endpoints are available over HTTPS at api.mythicdecks.net, providing access to cards, commanders, decks, and sealed pools, all served from the site's primary Postgres database.
  • An OpenAPI 3 specification is rendered with Scalar at /docs, offering an interactive reference.
  • Upstash Redis rate limiting safeguards the public API from excessive usage.
  • The first consumer is the sister mtg-deckbuilder CLI, designed for the Wave 2 public launch and Wave 3+ MCP distribution.

Distribution

  • Each new deck is cross-posted to Bluesky via the AT Protocol, including commander art and a deep link.
  • The same content is distributed to Mastodon via masto, extending federated reach.
  • An email newsletter is delivered through Resend, featuring subscribe and unsubscribe flows and DKIM-aligned delivery.
  • RSS feeds and Open Graph rich previews support organic distribution across all channels.

Data autonomy

  • A Scryfall bulk fetcher keeps the oracle copy up to date, and oracle JSON enables offline validation without per-call costs.
  • EDHrec data ingestion provides card popularity rankings for theme selection and the "hidden gems" tagger.
  • A 17lands pool fetcher supplies the sealed deckbuilder with limited-format rating data.
  • An LLM tagger and dossier synthesizer run incrementally over new cards and commanders to keep the taxonomy current.

Product surface

The site is intentionally streamlined, featuring a hero section, a searchable archive, and select enhancements that make copying and queuing up a deck effortless.

Today's deck

  • Commander art hero with color pips and mana value
  • Deck guide: pitch, play summary, synergies, opening hand
  • Decklist grouped by card type with mana curve
  • One-click Arena import + copy-link share

Archive & cards

  • Full-text search across commanders, cards, guides
  • Card browser with hover previews and Scryfall deep links
  • Filters by color identity, date, and tags
  • Commander permalinks for every featured deck

Sealed builder

  • Build optimal sealed pools from set inputs
  • Backed by 17lands ratings and limited-format heuristics
  • Lives at /sealed-builder alongside the Brawl content

Public API + docs

  • REST endpoints: cards, commanders, decks, sealed pool
  • Scalar-rendered OpenAPI reference at /docs
  • Rate-limited via Upstash Redis

Newsletter

  • Subscribe / unsubscribe flows with Resend delivery
  • One email per featured deck, opt-out honored everywhere
  • Companion to the daily Bluesky + Mastodon posts

Polish

  • Card hover previews on every card name
  • RSS/Atom feed for new decklists
  • Open Graph art so shared links render rich previews
  • Internal design system page for token QA

Outcomes

1
Fresh deck published every day, autonomously
0
Hallucinated cards reach the site
3
Distribution channels per deck: web, Bluesky, Mastodon, email
5
Public API resources: cards, commanders, decks, sealed pool, OpenAPI
0
Manual curation required post-launch

Delivered capabilities

  • Autonomous daily publishing on GitHub Actions cron
  • Anthropic agent grounded in Moxfield refs, EDHrec popularity, and occurrence data
  • Deterministic validation against Scryfall for every card
  • Guide cross-validation against the decklist and Scryfall
  • Sealed/limited deckbuilder backed by 17lands ratings
  • LLM card tagger and commander dossier synthesizer running incrementally
  • Public REST API with Scalar-rendered OpenAPI reference
  • Upstash Redis rate limiting on the public surface
  • Federated cross-posting to Bluesky and Mastodon
  • Resend-backed email newsletter with subscribe/unsubscribe flows
  • One-click Arena import, full-text search, RSS, rich Open Graph
  • Design-system page for dark-theme token QA

Shipping AI-powered content products?

Mythic Decks demonstrates how to publish reliable AI-generated content daily by combining agents with deterministic validation, a minimal interface, and a focused technology stack. If you are building something similar, please reach out.

Return to top

Press Esc to close • ⌘K / Ctrl K to open