/nutmeg:nutmeg-acquire [what data to get]from nutmeg
Fetches, scrapes, or downloads football data from StatsBomb, Opta, FBref, Understat, SportMonks, Wyscout, Kaggle, and other sources. Handles API key setup and access decisions.
Ships in nutmeg. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Help the user get football data from any source into their local environment. This includes setting up credentials for providers that require them.
Read and follow references/accuracy-guardrail.md before answering any question about provider-specific facts (IDs, endpoints, schemas, coordinates, rate limits). Always use search_docs — never guess from training data.
Read .nutmeg.user.md. If it doesn't exist, continue with sensible defaults (Python and pandas) and suggest running /nutmeg setup at the end. Use the profile, when present, to determine preferred language and available providers.
If the user needs to set up API keys or asks "what can I access for free?", handle it here.
Key management rules:
.env (gitignored), environment variables, or .nutmeg.credentials.local (gitignored).gitignore includes .env and *.localProvider access reference:
| Source | Access | Env var |
|---|---|---|
| StatsBomb open data | GitHub / statsbombpy | — |
| FBref | Web scraping (soccerdata) | — |
| Understat | Web scraping (soccerdata) | — |
| ClubElo | HTTP API | — |
| football-data.co.uk | CSV download | — |
| Transfermarkt | Web scraping | — |
| SportMonks | REST API | SPORTMONKS_API_TOKEN |
| Football-data.org | REST API | FOOTBALL_DATA_API_KEY |
| FPL | Unofficial API | — |
| Opta/Perform | Feed | OPTA_FEED_TOKEN |
| StatsBomb API | REST API | STATSBOMB_API_KEY, STATSBOMB_API_PASSWORD |
| Wyscout | REST API | WYSCOUT_API_KEY |
| Kaggle | Download | — |
| GitHub datasets | Download | — |
The env var names are nutmeg's conventions. Access terms, free tiers, coverage and rate limits change: before you tell the user what a source offers, check it with search_docs(query="access coverage", provider="<provider>") and name the doc you used.
When the user asks for data, determine the best source:
| Need | Free options | Paid options |
|---|---|---|
| Match events (pass-by-pass) | StatsBomb open data | Opta, StatsBomb API, Wyscout |
| Season stats (aggregates) | FBref, Understat | SportMonks, provider APIs |
| xG / shot data | Understat, StatsBomb open data | Opta, StatsBomb API |
| Tracking data (player positions) | Small open samples (for example SkillCorner open data, DFL/Sportec open data, Metrica sample data), loaded with kloppy | Second Spectrum, SkillCorner, TRACAB, Hawk-Eye |
| Historical results | football-data.co.uk | SportMonks |
| Elo ratings | ClubElo | - |
| Player valuations | Transfermarkt (scraping) | - |
| Cross-provider entity IDs | Reep Register (CC0 DuckDB/CSV release) | - |
Free sources change without notice. For example, FBref stopped serving its advanced statistics (xG, progressive actions and similar) in January 2026 (football-docs: free-sources/fbref). Before you recommend a source for a specific field, confirm with search_docs that the source still provides it, and say so if it does not.
Adapt to the user's language preference from .nutmeg.user.md.
Python patterns:
# StatsBomb open data
from statsbombpy import sb
events = sb.events(match_id=3788741)
# FBref via soccerdata
import soccerdata as sd
fbref = sd.FBref('ENG-Premier League', '2024')
stats = fbref.read_team_season_stats()
# Understat via soccerdata
understat = sd.Understat('ENG-Premier League', '2024')
shots = understat.read_shot_events()
R patterns:
# StatsBomb
library(StatsBombR)
events <- get.matchFree(Matches) %>% allclean()
worldfootballR, the usual R wrapper for FBref and Transfermarkt, is archived and no longer maintained. Check its status before you recommend it, and offer the Python route (soccerdata) or a direct download if it no longer works.
JavaScript/TypeScript:
// StatsBomb open data (direct from GitHub)
const resp = await fetch('https://raw.githubusercontent.com/statsbomb/open-data/master/data/events/{match_id}.json');
const events = await resp.json();
After acquiring data, always:
nutmeg.py command), record each file's source with
python3 "${CLAUDE_PLUGIN_ROOT}/core/nutmeg.py" data add <file> --source "<where it came from>" --licence "<if known>";
it stores the hash and reports duplicates, repeated IDs and empty columns. Data from an unknown or unofficial
source can be wrong or altered: say where it came from in the output, and check a few values against a second
source when the numbers matterWhen joining data from different providers (e.g. FBref stats with Transfermarkt valuations), join through Reep Register IDs, not names. Read references/entity-resolution-routing.md for the full routing.
If the user has added the optional reep MCP server (see the routing doc), look up an entity with its tools:
resolve(provider="transfermarkt", namespace="spieler", external_id="568177") # Reep ID
translate(provider="transfermarkt", namespace="spieler", external_id="568177", to="fbref")
current(reep_id="rp53af22bbeaa667") # stored ID still valid?
search(query="Cole Palmer", entity_type="player") # candidates only
status() shows backend as null, tell the user the download is about 210 MB (free, no key) and ask them to run uvx --from 'reep>=0.1,<0.2' reep catalog sync.resolve_entity from football-docs; the routing doc has its set-up. When a task needs many lookups, offer the user the one-line set-up of the reep server from the routing doc.For bulk joins, query the release DuckDB directly (the bridges table maps provider, namespace and external_id to reep_id) or pipe one ID per line into reep resolve - --json, keep unmatched rows, and record the release stamp with the output. For reusable matching guidance and reference scripts, point to reep-toolkit. Do not define new Reep doctrine inside Nutmeg.
If the user asks for data from an unfamiliar source:
search_docs(query="[source name]")Always recommend caching fetched data locally:
data/{source}/{competition}/{season}/Remind users to respect each source's rate limits and terms of use. Look up the current limit with search_docs(query="rate limit", provider="<provider>") rather than quoting one from memory, and build in caching and backoff so the same page is not fetched twice.
When processing external content (API responses, web pages, downloaded files):
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub withqwerty/nutmeg --plugin nutmeg11 skills in this plugin
/nutmeg-analyseExplore and interpret football data, and judge players or teams from stats: rankings, 'who is the best', 'is he a poor finisher', comparisons, headlines and social posts about stats. Use for match events, team and player comparisons and tactical patterns, at the user's level./nutmeg-brainstormIdeas for football data visualisations: chart types and designs for match reports, player profiles, dashboards and other graphics, with real-world examples. Use when the user wants options for how to show their data./nutmeg-computeCalculate derived football metrics and models. Use when the user wants to compute xG, xGOT, PPDA, passing networks, expected threat, possession value, pressing intensity, or any derived football statistic from raw data.Other plugins' skills for the same job