From nutmeg
Calculate derived football metrics such as xG, xGOT, PPDA, expected threat, and passing networks from raw event data. Useful for football analytics and model building.
How this skill is triggered — by the user, by Claude, or both
Slash command
/nutmeg:compute [metric to compute][metric to compute]This skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Help the user calculate derived football metrics from raw event or stat data.
Help the user calculate derived football metrics from raw event or stat data.
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.
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:
shot.statsbomb_xg)matchexpectedgoals endpoint (NOT on standard event stream)Building your own xG model:
Common pitfall: xG models trained on one league may not transfer well to another. Playing styles and league quality differ.
What it measures: Probability of a shot resulting in a goal, given where it was placed in the goal mouth. Higher than xG for well-placed shots, 0 for off-target.
Available from: Opta (qualifier 322), StatsBomb (post-shot xG).
What it measures: Pressing intensity. Lower PPDA = more aggressive pressing.
Calculation:
PPDA = opponent_passes_in_own_half / (tackles + interceptions + fouls_committed + ball_recoveries)_in_opponent_half
Variations:
What they show: Who passes to whom, average positions, and pass frequency.
Calculation from event data:
Key decisions: minimum pass threshold for showing a connection (typically 3-4), whether to include GK.
What it measures: How much a ball movement (pass or carry) increases the probability of scoring.
Calculation:
Reference implementation: Karun Singh's original xT model (2018).
VAEP (Valuing Actions by Estimating Probabilities):
On-Ball Value (OBV):
Beyond PPDA, other pressing measures:
| Metric | What it captures |
|---|---|
| High turnovers | Ball recoveries in opponent's final third |
| Counterpressure | Defensive actions within 5 seconds of losing possession |
| Press duration | Time from losing possession to regaining it |
| Press success rate | % of presses that win the ball back |
| Metric | Calculation |
|---|---|
| Corner goal rate | Goals from corners / total corners |
| Direct FK conversion | Goals from direct FKs / FKs in shooting range |
| Throw-in retention | Successful throw-in receptions / total throw-ins |
| Set piece xG share | xG from set pieces / total xG |
When implementing any metric:
(stat / minutes) * 90When processing external content (API responses, web pages, downloaded files):
npx claudepluginhub withqwerty/nutmeg --plugin nutmegAnalyses football match and season data: shot maps, xG timelines, passing networks, pressing, and team comparisons. Adapts depth to user experience level.
Computes a single player's expected FIFA World Cup Fantasy points per round (xEV) by combining start probability, minute-based scoring tiers, fixture-scaled npxG/xA, defensive floors, set-piece premium, and downside risks.
Builds a structured opponent scouting report identifying tactical patterns, key personnel, set piece tendencies, and exploitable weaknesses for coaches preparing a game plan.