Token导航 LogoToken导航TokenDH.com
前端设计操作浏览器github未标认证来源可访问许可证需确认审计提醒

mlb-league-state-readerMLB 联盟州读者

Agent Skill

mlb-league-state-reader 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

192

周安装

8

GitHub Stars

85

下载量

64
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:mlb-league-state-reader(MLB 联盟州读者)
来源仓库:https://github.com/lyndonkl/claude
仓库路径:skills/mlb-league-state-reader
安装命令:
npx skills add https://github.com/lyndonkl/claude --skill mlb-league-state-reader
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/lyndonkl/claude --skill mlb-league-state-reader

简介

mlb-league-state-reader 用于处理 GitHub 仓库、Issue 等协作信息,适合联盟状态展示。

  • 适用于 Codex、Claude、Cursor、Gemini CLI 中的可视化看板构建场景。
  • 通过 npx skills add 命令从 claude 仓库安装。
  • 使用前需确认前端组件与现有系统的样式兼容性问题。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

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:

  • ~/Documents/Projects/yahoo-mlb/context/league-config.md (league ID 23756, team 5, 12 teams, 5x5 cats)
  • ~/Documents/Projects/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:

FieldValue
Record8-6-1
Rank5 of 12
FAAB spent$14
FAAB remaining$86
This week oppLos Doyers
Live matchup score4-3-3 (us leading R, HR, K; losing OBP, ERA, WHIP)
Roster returned26 of 26 slots populated
Free agents top-20captured 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 ~/Documents/Projects/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 ~/Documents/Projects/yahoo-mlb/context/team-profile.md — capture prior FAAB remaining, prior roster for diff
  • Read ~/Documents/Projects/yahoo-mlb/context/frameworks/signal-framework.md — confirm signal file format
  • Read ~/Documents/Projects/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 ~/Documents/Projects/yahoo-mlb/signals/YYYY-MM-DD-league-state.md with YAML frontmatter per the signal framework. Every URL navigated must appear in source_urls. Degraded fetches drop confidence to 0.5; full-failure fields drop to 0.3 and are flagged. See resources/template.md.

  • Frontmatter: type: league-state, date, emitted_by: mlb-league-state-reader, confidence, source_urls[]
  • Body: roster table, standings table, matchup table, FAAB ledger, top-25 free agents
  • Validate via mlb-signal-emitter before writing (if that skill is available in this run); otherwise write directly

Degraded Mode

Chrome can fail for several reasons: tab not open, session expired, Yahoo rate-limiting, 500 error, unreadable DOM. Never abort the whole run. Fail gracefully per-URL.

Per-URL fallback decision tree:

FailureFallback
Navigation error / timeoutRetry once. If still failing, ask user: "Paste the contents of {URL} and I'll parse from that."
Session expired (login page returned)Ask user: "Please log into Yahoo in your Chrome tab, then say 'retry'." Do not attempt to re-authenticate.
Page loads but parse fails (unknown layout)Dump the first ~4000 chars of get_page_text into the signal file under raw_capture: and drop confidence to 0.4 for that field.
Free-agents page gated / emptyMark free_agents: [] and flag in the signal. The waiver-analyst can still run on roster + standings.
Transactions page gatedAsk user: "What's your FAAB remaining right now? Visible at the top of the transactions page." Accept user value; mark faab_confidence: 0.6.

User-paste template (reuse for any Yahoo page):

"I couldn't reach {URL}. Please copy the visible table on that page (select all, paste into chat) and I'll extract the fields I need from your paste."

Parse the pasted text with the same regex/row patterns as the live page. See resources/methodology.md.

Guardrails

  1. Never assume the roster is still what it was yesterday. Waivers clear daily and trades can fire any time. Always re-read the Yahoo team page at the start of every run, even if team-profile.md looks fresh.
  2. FAAB remaining is derived, not displayed. Yahoo's UI sometimes shows "FAAB Balance" and sometimes doesn't. The authoritative computation is: $100 minus sum of all winning bids on the transactions page this season. Do not trust a single visible number over the ledger.
  3. Cite every URL. The signal file's source_urls: list must contain every Yahoo page actually visited. If a page was skipped because of degradation, note it in the signal body, not silently.
  4. Do not re-scrape downstream. Once this skill has emitted today's league-state signal, lineup-optimizer / waiver-analyst / category-strategist MUST read that signal rather than re-visit Yahoo. Re-scraping wastes tokens and risks drift.
  5. Overwrite team-profile.md; append nowhere. This file is "current state." Preserving yesterday's roster pollutes it. The append-only log lives in tracker/decisions-log.md, not here.
  6. Status values are normalized enums. Map Yahoo's labels (P, DTD, IL-10, IL-60, NA, SUSP) to the normalized enum: active | BN | IL | DTD | NA | SUSP. Downstream agents branch on the enum, not Yahoo's strings.
  7. Today's opponent may be blank. Off-days, postponements, and doubleheaders all produce unusual opp_today values. Record exactly what Yahoo shows (@TEX, TEX, Off, PPD, DH1/DH2) — do not normalize away information the downstream lineup-optimizer needs.
  8. Don't emit a signal with zero source URLs. If every page failed, write an empty-body signal with confidence: 0.0 and a prominent note to the coach: "Could not reach Yahoo — paste or retry required before any downstream agent runs."

Quick Reference

The five Yahoo URLs (from context/frameworks/data-sources.md):

Team:         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: https://baseball.fantasysports.yahoo.com/b1/23756/transactions
Free agents:  https://baseball.fantasysports.yahoo.com/b1/23756/players?status=A

Chrome tool order (load via ToolSearch first, then call):

1. mcp__claude-in-chrome__tabs_context_mcp    (confirm active tab, auth state)
2. mcp__claude-in-chrome__navigate            (go to URL)
3. mcp__claude-in-chrome__get_page_text       (extract DOM text)
4. mcp__claude-in-chrome__read_page           (structured read if text fails)

Roster slot order (for team-profile YAML; matches league-config.md):

C, 1B, 2B, 3B, SS, OF, OF, OF, UTIL, UTIL, SP, SP, SP, RP, RP, P, P, P, P, P, BN, BN, BN, IL, IL, IL

Status enum mapping:

YahooNormalized
(blank) / Pactive
BNBN
DTDDTD
IL-10 / IL-60 / ILIL
NANA
SUSPSUSP

Signal frontmatter (minimum fields):

---
type: league-state
date: 2026-04-17
emitted_by: mlb-league-state-reader
variant_synthesis: false
confidence: 0.9
source_urls:
  - https://baseball.fantasysports.yahoo.com/b1/23756/5
  - https://baseball.fantasysports.yahoo.com/b1/23756?lhst=stand
  - https://baseball.fantasysports.yahoo.com/b1/23756/matchup
  - https://baseball.fantasysports.yahoo.com/b1/23756/transactions
  - https://baseball.fantasysports.yahoo.com/b1/23756/players?status=A
---

Key resources:

Inputs required:

  • Authenticated Yahoo Fantasy session in Chrome (user's responsibility)
  • context/league-config.md (league ID, team ID, roster shape)
  • context/team-profile.md (prior state, may be stub)

Outputs produced:

  • Updated context/team-profile.md (overwrite; reflects today's state)
  • signals/YYYY-MM-DD-league-state.md (with frontmatter + source_urls)
  • Degraded-mode prompts to user if any page fails

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.46%
按下载量换算21

Claude

29.45%
按下载量换算19

Cursor

19.67%
按下载量换算13

Gemini CLI

9.68%
按下载量换算6

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills