Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

mlb-league-state-reader

БесплатноБез исполняемых скриптовНе проверен

Parses Yahoo Fantasy Baseball league state (roster, standings, current matchup, FAAB remaining, free agents) from authenticated Yahoo team pages via…

lyndonklот lyndonkl★ 208 звёзд на GitHub

Об этом скилле

MLB League State Reader

Table of Contents

Example

Scenario: Morning brief run on 2026-04-17. Coach needs current roster, matchup, FAAB, and standings before launching lineup-optimizer.

Inputs read first:

  • yahoo-mlb/context/league-config.md (league ID 23756, team 5, 12 teams, 5x5 cats)
  • yahoo-mlb/context/team-profile.md (prior known roster skeleton)

Chrome navigation sequence (authenticated):

  1. https://baseball.fantasysports.yahoo.com/b1/23756/5 — roster with today's opponents per player
  2. https://baseball.fantasysports.yahoo.com/b1/23756?lhst=stand — standings + category ranks
  3. https://baseball.fantasysports.yahoo.com/b1/23756/matchup — this week's head-to-head vs Los Doyers
  4. https://baseball.fantasysports.yahoo.com/b1/23756/transactions — FAAB spent to date → remaining
  5. https://baseball.fantasysports.yahoo.com/b1/23756/players?status=A — top free agents (page 1)

Extracted bundle:

Field Value
Record 8-6-1
Rank 5 of 12
FAAB spent $14
FAAB remaining $86
This week opp Los Doyers
Live matchup score 4-3-3 (us leading R, HR, K; losing OBP, ERA, WHIP)
Roster returned 26 of 26 slots populated
Free agents top-20 captured for waiver-analyst

Outputs written:

  • context/team-profile.md — roster snapshot updated in place (slot, player, MLB team, today's opp, status)
  • signals/2026-04-17-league-state.md — signal file with YAML frontmatter, source_urls, confidence

Every downstream agent (lineup-optimizer, waiver-analyst, category-strategist) now reads this signal file and team-profile.md rather than re-scraping Yahoo.

Workflow

Copy this checklist and track progress:

League State Reader Progress:
- [ ] Step 1: Read context files (league-config.md + team-profile.md)
- [ ] Step 2: Pull Yahoo pages via Claude-in-Chrome (5 URLs)
- [ ] Step 3: Parse roster, standings, matchup, FAAB, free agents
- [ ] Step 4: Update team-profile.md in place
- [ ] Step 5: Emit signal file with frontmatter + source_urls

Step 1: Read context files

Load the authoritative contract and the last known state before touching Yahoo. This both verifies the league ID/URL and provides the skeleton to diff against.

  • Read yahoo-mlb/context/league-config.md — confirm league ID 23756, team 5, roster shape (C/1B/2B/3B/SS/3OF/2UTIL/3SP/2RP/5P/3BN/3IL = 26), FAAB budget $100
  • Read yahoo-mlb/context/team-profile.md — capture prior FAAB remaining, prior roster for diff
  • Read yahoo-mlb/context/frameworks/signal-framework.md — confirm signal file format
  • Read yahoo-mlb/context/frameworks/data-sources.md — confirm the 5 Yahoo URLs

Step 2: Pull Yahoo pages via Claude-in-Chrome

The user is already authenticated in the browser. Navigate in order; parse page text; if any step fails, jump to Degraded Mode for that specific URL only (do not abort the whole run). See resources/methodology.md for the exact tool-call sequence and page-parsing patterns.

  • Team page: https://baseball.fantasysports.yahoo.com/b1/23756/5
  • Standings: https://baseball.fantasysports.yahoo.com/b1/23756?lhst=stand
  • Matchup: https://baseball.fantasysports.yahoo.com/b1/23756/matchup
  • Transactions (for FAAB): https://baseball.fantasysports.yahoo.com/b1/23756/transactions
  • Free agents: https://baseball.fantasysports.yahoo.com/b1/23756/players?status=A

Step 3: Parse and normalize

Extract structured data from each page. See resources/methodology.md for row-level parsing logic, and resources/methodology.md for how to reconstruct FAAB remaining from the transactions log.

  • Roster: for each of 26 slots, capture {slot, player, mlb_team, opp_today, status: active|IL|DTD|NA|BN}
  • Standings: W-L-T record, rank, per-category rank (10 cats)
  • Matchup: opponent name, live scoreline by category (W-L-T across the 10 cats so far this week)
  • FAAB: sum all -$N entries from transactions history this season; remaining = $100 - total spent
  • Free agents: capture top 25 by rostered% — enough for waiver-analyst to start ranking

Step 4: Update team-profile.md in place

See resources/template.md for the exact output shape. Overwrite the existing file (not append); this file is meant to always reflect "as of the latest run."

  • Header: ## As of YYYY-MM-DD
  • State table: record, rank, FAAB remaining, current opponent, acquisitions used, IL slots used
  • Roster snapshot: full 26-slot YAML block
  • Open questions: empty unless a page failed

Step 5: Emit signal file

Write `yahoo-mlb/signals/YYYY-MM-

Полный SKILL.md на GitHub

Установить mlb-league-state-reader в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

resources/evaluators/rubric_mlb_league_state_reader.jsonresources/methodology.mdresources/template.md

FAQ

Что делает скилл mlb-league-state-reader?

Parses Yahoo Fantasy Baseball league state (roster, standings, current matchup, FAAB remaining, free agents) from authenticated Yahoo team pages via Claude-in-Chrome browser automation, then grounds it against league-config.md and team-profile.md to emit a normalized league-state bundle every other agent can consume without re-scraping. Use when the coach or any downstream agent needs to read Yahoo roster, refresh team profile, pull league state, get current matchup, check FAAB remaining, list free agents, or when user mentions "what's on my roster", "who am I playing this week", "how much FAAB do I have left", or "refresh my team".

Как установить скилл mlb-league-state-reader?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл mlb-league-state-reader запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить mlb-league-state-reader с