Sandbox
@withqwerty/nutmeg

Football data analytics plugin for Claude Code

nutmeg is a Claude Code plugin for football data analytics. It combines reusable skills, review agents, and a football-docs MCP server so Claude can look up real provider documentation before it answers or writes code. The skills cover acquiring data, wrangling event streams, computing metrics like xG, analysing matches, storing outputs, and reviewing charts and pipelines.

41 stars5 forksUpdated 1mo ago
Who it's for

Builders who work with football data and want Claude Code to use real provider docs and reusable football workflows.

What it delivers

You can ask Claude to handle football data work with fewer wrong assumptions about providers, IDs, coordinates, and xG conventions.

What it does

Football data skills

Skills for `/nutmeg`, `/nutmeg-acquire`, `/nutmeg-wrangle`, `/nutmeg-compute`, `/nutmeg-analyse`, `/nutmeg-brainstorm`, `/nutmeg-store`, `/nutmeg-review`, `/nutmeg-heal`, and `/nutmeg-learn`.

Review agents

Agent files for chart review, data review, and pipeline building in `agents/`.

Provider docs index

A searchable football-docs MCP server that gives Claude live access to provider facts instead of relying on frozen model knowledge.

Plugin packaging

A Claude Code plugin bundle in `.claude-plugin/` with marketplace metadata and install config.

Shared guardrails and workflows

Docs for accuracy guardrails, entity resolution routing, publishing, and provider notes in `docs/`.

How to get it

  1. 1Includes skills, agents, and the football docs MCP server.
    # From Claude Code — add the marketplace first (one-time), then install
    /plugin marketplace add withqwerty/plugins
    /plugin install nutmeg@withqwerty
  2. 2Works with Claude Code, Cursor, Codex, Windsurf, and 40+ other agents via the Agent…
    npx skills add withqwerty/nutmeg

README

nutmeg

A Claude Code plugin that makes Claude an expert at football data analytics.

Who it's for: Anyone who works with football data — analysts, developers, journalists, researchers, hobbyists. If you've ever spent an hour figuring out which Opta qualifier is xG, or why your StatsBomb coordinates are upside down, or how to normalise a heatmap properly, this is for you.

What it does: Gives Claude deep, verified knowledge of football data providers, libraries, and conventions. Claude looks up the actual docs instead of guessing from training data, writes code adapted to your stack, and catches football-specific mistakes in your work.

Why not just ask Claude directly? Claude knows football data exists but its knowledge is frozen and often wrong on specifics — qualifier IDs, API endpoints, coordinate systems, method signatures. These change. nutmeg connects Claude to a live, searchable index of real provider documentation so it gets the details right.

Capabilities

nutmeg gives Claude deep knowledge of football data so it can help you:

  • Acquire data from Opta, StatsBomb, Wyscout, SportMonks, FBref, Understat, and more
  • Wrangle event streams, transform coordinates, join datasets, handle large files
  • Route entity-resolution work to the right public surface: provider facts in football-docs, public ID lookup in Reep Register, reusable matching code in reep-scripts
  • Compute derived metrics like xG, PPDA, passing networks, expected threat
  • Store data in the right format and publish results via Streamlit, Observable, or static sites
  • Analyse matches, players, and teams with statistical rigour
  • Learn football analytics concepts, from xG basics to academic research

It adapts to your experience level, preferred programming language, and available data sources.

Install

Full install (Claude Code plugin)

Includes skills, agents, and the football docs MCP server.

# From Claude Code — add the marketplace first (one-time), then install
/plugin marketplace add withqwerty/plugins
/plugin install nutmeg@withqwerty

Skills only (any AI coding agent)

Works with Claude Code, Cursor, Codex, Windsurf, and 40+ other agents via the Agent Skills standard.

npx skills add withqwerty/nutmeg

This installs the 10 skills but not the agents or MCP docs server. For the full experience (searchable provider docs, pipeline builder agent, data reviewer agent), use the plugin install above.

Setup

Run /nutmeg and describe what you want to do. On first run, it creates your profile (experience, tools, data access) so all skills adapt accordingly.

Skills

Most users only need two commands — /nutmeg routes everything else automatically.

Entry points

SkillWhat it does
/nutmegStart here. Describe what you want — it handles setup, routing, and dispatch
/nutmeg-learnConcepts, resources, provider docs, learning paths

Sub-skills (auto-dispatched or direct)

These are invoked automatically by /nutmeg based on what you're doing. Power users can call them directly.

SkillWhat it does
/nutmeg-acquireFetch, scrape, or download data + manage API keys
/nutmeg-wrangleTransform, filter, reshape data
/nutmeg-computeCalculate derived metrics (xG, PPDA, passing networks)
/nutmeg-analyseExplore and interpret football data
/nutmeg-brainstormResearch-backed visualisation ideation and chart design
/nutmeg-storeChoose storage format and publishing method
/nutmeg-reviewReview data code and charts for correctness and conventions
/nutmeg-healFix broken scrapers, submit upstream issues

Football Docs MCP Server

nutmeg includes a searchable index of football data provider documentation. Think Context7 for football data. Provider-specific facts, including identity surfaces and ID-scheme quirks, should come from this index rather than from Nutmeg's own prompts.

The server is published as the football-docs npm package and starts automatically when nutmeg is loaded (via npx -y football-docs). No local build step is required.

Adding provider docs

Provider docs and the search index live in the football-docs repository. Drop markdown files in docs/{provider}/ there and run pnpm ingest to rebuild data/docs.db:

docs/providers/
  opta/
    event-types.md
    qualifiers.md
    coordinate-system.md
    api-access.md
  statsbomb/
    event-types.md
    data-model.md
    ...

Providers covered

ProviderEvent dataStatsxGTrackingFree?
StatsBombYesYesYesNoOpen data (select comps)
Opta/PerformYesYesYes (xGOT too)YesNo (unofficial feed exists)
WyscoutYesYesNoNoNo
SportMonksPartialYesNoNoFree tier
FBrefNoYesYes (via StatsBomb)NoYes (scraping)
UnderstatNoPartialYesNoYes (scraping)
ClubEloNoNoNoNoYes (API)

License

MIT

Files in the repo

Repository payload10 top-level entries
  • .claude-plugin
  • .github
  • agents
  • docs
  • skills
  • .editorconfig
  • .gitignore
  • .mcp.json
  • CLAUDE.md
  • README.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More plugins

Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.

138k
1 add

Graphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.

82k
code-yeongyu/
oh-my-openagent

OmO: Just type "mass ulw" keyword with your prompt. Now you are the master of graph engineering.

69k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

94k

Opinionated Oxlint rules for rejecting low-evidence TypeScript and JavaScript patterns

4.3k