acquire
Fetch, scrape, or download football data from any source. Also handles API key setup and credential management. Use when the user wants to get data from…
Fix broken data scrapers and pipelines. Use when data acquisition fails, a scraper breaks, an API returns errors, or data format has changed. Also handles submitting upstream issues or PRs when the problem is in a dependency like soccerdata or kloppy.
$ npx -y skills add withqwerty/nutmeg --skill heal --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/healContext preview
The summary Claude sees to decide when to auto-load this skill.
Fix broken data scrapers and pipelines. Use when data acquisition fails, a scraper breaks, an API returns errors, or data format has changed. Also handles submitting upstream issues or PRs when the problem is in a dependency like soccerdata or kloppy.
name: nutmeg-heal description: "Fix broken data scrapers and pipelines. Use when data acquisition fails, a scraper breaks, an API returns errors, or data format has changed. Also handles submitting upstream issues or PRs when the problem is in a dependency like soccerdata or kloppy." argument-hint: "[error or issue description]" allowed-tools: ["Read", "Write", "Bash", "Glob", "Grep", "Agent", "WebFetch", "WebSearch"]
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 `docs/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, tell the user to run `/nutmeg` first.
Ask the user for the error message or behaviour. Common categories:
| Symptom | Likely cause | |---------|-------------| | HTTP 403/429 | Rate limited or blocked. Wait and retry with backoff | | 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):** 1. Check if there's already an open issue on the library's repo 2. If not, help the user write a clear bug report:
3. If the fix is straightforward, help write a PR:
**If it's a provider change (API/website):** 1. Document what changed 2. Update the local code to handle the new format 3. If using a scraping library, submit an issue to that 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 | Add 6s delay between requests | | WhoScored | Cloudflare blocks | Use headed browser (Playwright) | | 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):
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.
Fetch, scrape, or download football data from any source. Also handles API key setup and credential management. Use when the user wants to get data from…
Explore, interpret, and draw conclusions from football data. Use when the user wants to analyse match events, compare teams or players, understand tactical…
Brainstorm football data visualisations and chart designs. Use when the user wants ideas for how to visualise football data, needs inspiration for chart types,…
Calculate derived football metrics and models. Use when the user wants to compute xG, xGOT, PPDA, passing networks, expected threat, possession value, pressing…
Learn about football analytics concepts and explore provider documentation. Use when the user asks what a metric means (xG, PPDA, expected threat, xT), wants…