/nutmeg:nutmeg-heal [error or issue description]from nutmeg
Diagnoses and fixes broken football data scrapers and pipelines: failed requests, API errors, changed formats. Drafts upstream issues or PRs for library bugs.
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.
Diagnose and fix broken football data pipelines. When a scraper or API call fails, figure out why and either fix it locally or report upstream.
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, intermediate level) and suggest running /nutmeg setup at the end.
Ask the user for the error message or behaviour. Common categories:
| Symptom | Likely cause |
|---|---|
| HTTP 429 | Rate limited. Wait and retry with backoff, and slow down |
| HTTP 403 with a "challenge" (Cloudflare or similar) | Anti-bot protection is rejecting automated requests. Waiting and retrying will not fix it (see below) |
| HTTP 404 | URL/endpoint changed. Check if site restructured |
| Parse error (HTML) | Website redesigned. Scraper selectors need updating |
| Parse error (JSON) | API response schema changed. Check for versioning |
| Empty response | Data not available for this competition/season |
| Import error | Library version changed. Check changelog |
| Authentication error | Key expired, rotated, or wrong format |
If it's a local issue:
If it's an upstream issue (library bug):
If it's a provider change (API/website):
A 403 "challenge" means the site is deliberately blocking automated access. Tell the user that plainly:
search_docs), an official API or licence, a manual export, or waiting for an upstream fix in the scraping library.When writing data acquisition code via /nutmeg:acquire, build in resilience:
# Retry with exponential backoff
import time
def fetch_with_retry(url, max_retries=3):
for attempt in range(max_retries):
try:
resp = requests.get(url, timeout=30)
resp.raise_for_status()
return resp.json()
except requests.RequestException as e:
if attempt == max_retries - 1:
raise
wait = 2 ** attempt
print(f"Attempt {attempt + 1} failed, retrying in {wait}s: {e}")
time.sleep(wait)
| Source | Common issue | Fix |
|---|---|---|
| FBref | 429 rate limit | Slow down to the documented rate (look it up with search_docs) and cache pages |
| WhoScored, Sofascore | 403 challenge (anti-bot) | Treat as a block, not a bug (see below) |
| Understat | JSON parse error | Response is JSONP, strip callback wrapper |
| SportMonks | 401 | Token expired or plan limit hit |
| StatsBomb open data | 404 | Match/competition not in open dataset |
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-acquireGet football data: fetch, scrape or download from StatsBomb, Opta, FBref, Understat, SportMonks, Wyscout, Kaggle or any source, and set up API keys and access. Use when the user wants data, or asks what is free and what is paid./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./nutmeg-learnExplain football analytics concepts and provider documentation: what a metric means (xG, PPDA, xT), learning paths and resources, and provider details such as qualifier IDs, coordinate systems, event types, schemas, ID schemes, coverage, or comparing providers./nutmegFootball data analytics entry point. Use for any task with football data: xG, match or player stats, scouting, shot maps, scraping FBref, Understat or Transfermarkt, judging players or teams from stats. Routes to the right nutmeg skill and handles first-time setup.Other plugins' skills for the same job