mlb-regression-flagger
БесплатноБез исполняемых скриптовНе проверенIdentifies fantasy baseball players whose surface stats (wOBA, ERA, batting average) are diverging from their underlying Statcast quality (xwOBA, FIP, xBA)…
от lyndonkl★ 208 звёзд на GitHubОб этом скилле
MLB Regression Flagger
Table of Contents
Example
Scenario: User asks "Is Junior Caminero a buy-low candidate or am I chasing noise?"
Raw data gathered from Baseball Savant + FanGraphs (cite URLs):
- Caminero 2026 wOBA: .310 (actual results)
- Caminero 2026 xwOBA: .380 (expected based on exit velocity + launch angle)
- BABIP: .255 (well below .300 league mean)
- Barrel %: 14.2% (elite, 90th percentile)
- Hard-Hit %: 52% (elite)
Regression index calculation:
regression_index = (xwOBA - wOBA) x 500
= (.380 - .310) x 500
= +35
Secondary check — BABIP: .255 is below the .240 lower-outlier threshold for hitters only if we tighten further, but .255 plus elite contact quality confirms unlucky. Not a "will correct to .300" player, but unlikely to stay at .255 given the batted-ball profile.
Verdict: regression_index = +35 → BUY. Caminero has been unlucky; underlying contact quality is elite. Expect his surface stats to catch up over the next 30 days.
User-facing translation (per CLAUDE.md rule #5 — beginner writing):
"Junior Caminero's raw numbers look mediocre (.310 wOBA — that's a catch-all hitting stat), but the quality of his actual contact (how hard and at what angle he hits the ball) suggests he should be hitting .380. The gap is one of the biggest in the league. ADD if available, or OFFER a trade for him before his stats correct."
Signal file emission (per signal-framework.md):
---
type: regression
date: 2026-04-17
emitted_by: mlb-regression-flagger
player: Junior Caminero
regression_index: +35
direction: BUY
confidence: 0.78
source_urls:
- https://baseballsavant.mlb.com/savant-player/junior-caminero-...
- https://www.fangraphs.com/players/junior-caminero/...
---
Workflow
Copy this checklist and track progress:
Regression Flagger Progress:
- [ ] Step 1: Define the candidate list (who to check)
- [ ] Step 2: Web-search Savant for expected stats (xwOBA, xERA, xBA)
- [ ] Step 3: Web-search FanGraphs for surface stats (wOBA, ERA, BABIP, HR/FB)
- [ ] Step 4: Compute regression_index per player
- [ ] Step 5: Apply secondary flags (BABIP, HR/FB)
- [ ] Step 6: Emit signal file + user-facing translation
Step 1: Define the candidate list
Who are we checking? Three entry points:
- User's current roster (for SELL candidates — anyone overperforming)
- Free agents + waiver wire (for BUY candidates — anyone underperforming with elite underlying metrics)
- Specific player asked about (e.g., trade target)
Step 2: Web-search Baseball Savant for expected stats
See resources/methodology.md for exact queries and URL patterns.
- Hitters:
xwOBA,xBA,xSLG, Barrel %, Hard-Hit % - Pitchers:
xERA, Expected Batting Average against, Whiff %, Chase % - Record each URL in
source_urlsfor the signal file
Step 3: Web-search FanGraphs for surface stats
See resources/methodology.md for query patterns.
- Hitters:
wOBA,BABIP, AVG, OBP, SLG - Pitchers:
ERA,FIP,xFIP, HR/FB %, LOB % - Record each URL
Step 4: Compute regression_index
See resources/methodology.md for the formulas.
- Hitter:
regression_index = (xwOBA - wOBA) x 500, clamped to ±100 - Pitcher:
regression_index = (FIP - ERA) x 50, clamped to ±100- Note: for pitchers, a LARGER (more positive) FIP than ERA = pitcher has been lucky (negative signal for fantasy); a SMALLER FIP than ERA = pitcher has been unlucky (positive signal). See methodology for sign convention.
- Populate resources/template.md with the result
Step 5: Apply secondary flags
- Hitter BABIP check: flag if > .370 (unsustainably lucky) or < .240 (unsustainably unlucky)
- Pitcher HR/FB check: flag if > 17% (unlucky, normalizes to ~12%) or < 8% (lucky)
- Note: secondary flags reinforce or contradict the primary
regression_index. When they agree, confidence goes up; when they disagree, confidence drops and the player goes into a "watchlist" bucket instead of an actionable BUY/SELL.
Step 6: Emit signal file + user-facing translation
- Write
signals/YYYY-MM-DD-regression.mdwith frontmatter per signal-framework.md - Translate every stat to plain English for the user (per CLAUDE.md rule #5)
- End every recommendation with an action verb:
BUY/SELL/HOLD/ADD/DROP(per CLAUDE.md rule #6) - Validate against resources/evaluators/rubric_mlb_regression_flagger.json. Target average ≥ 3.5.
Common Patterns
**Pattern 1: The Elite-Contact, Bad-Luck Hitter (c
Установить mlb-regression-flagger в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл mlb-regression-flagger?
Identifies fantasy baseball players whose surface stats (wOBA, ERA, batting average) are diverging from their underlying Statcast quality (xwOBA, FIP, xBA) — emits a `regression_index` from -100 (very lucky, sell high) to +100 (very unlucky, buy low). Primary signal for buy-low/sell-high decisions on trades and waivers. Use when user mentions "buy low", "sell high", "regression candidate", "lucky", "unlucky", "xwOBA gap", "ERA-FIP gap", "BABIP", "due for regression", or is deciding whether to trade for / trade away a player based on over- or under-performance.
Как установить скилл mlb-regression-flagger?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mlb-regression-flagger запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic