nutmeg-compute
Compute
Help the user calculate derived football metrics from raw event or stat data.
Accuracy
Read and follow ${CLAUDE_PLUGIN_ROOT}/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.
First: check profile
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.
Metric reference
Expected Goals (xG)
What it measures: Probability of a shot resulting in a goal, based on shot location, type, body part, and game situation.
If provider already has xG: look up where it lives before writing code, with search_docs(query="expected goals xG", provider="[provider]"). Providers differ: some put xG on shot events, some serve it from a separate endpoint, and scraped sources can drop it. Name the doc you used.