cbb-data by machina-sports/sports-skills
npx skills add https://github.com/machina-sports/sports-skills --skill cbb-data在编写查询之前,请查阅 references/api-reference.md 以了解端点、联盟 ID、球队 ID 和数据格式。
首次使用前,检查 CLI 是否可用:
which sports-skills || pip install sports-skills
如果 pip install 因 Python 版本错误而失败,则该包需要 Python 3.10+。请找到兼容的 Python 版本:
python3 --version # 检查版本
# 如果版本 < 3.10,尝试:python3.12 -m pip install sports-skills
# 在 macOS 上使用 Homebrew:/opt/homebrew/bin/python3.12 -m pip install sports-skills
无需 API 密钥。
推荐使用 CLI —— 它可以避免 Python 导入路径问题:
sports-skills cbb get_scoreboard
sports-skills cbb get_rankings
sports-skills cbb get_standings --group=23
关键:在调用任何数据端点之前,请验证:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
currentDategroup 参数设置为正确的联盟 ID(参见 references/api-reference.md)。get_teams 来解析球队 ID。从系统提示的日期推导当前年份(例如,currentDate: 2026-02-28 → 当前年份为 2026)。
season = current_year + 1。如果是 1 月至 4 月,则使用 season = current_year。如果是 5 月至 10 月(休赛期),则使用 season = current_year(最近结束的赛季)。group 参数进行筛选rank 字段(null = 未排名)| 命令 | 描述 |
|---|---|
get_scoreboard | 实时/近期的大学篮球比分 |
get_standings | 按联盟的排名(使用 group 参数) |
get_teams | 所有 360+ 支 D1 男子篮球队 |
get_team_roster | 球队的完整阵容名单 |
get_team_schedule | 特定球队的赛程 |
get_game_summary | 详细的技术统计和球员数据 |
get_rankings | AP Top 25 和教练投票排名 |
get_news | 大学篮球新闻 |
get_play_by_play | 比赛的完整逐场播报 |
get_win_probability | 获胜概率图表数据 |
get_schedule | 指定日期或赛季的赛程 |
get_futures | 未来市场/赔率(全国冠军等) |
get_team_stats | 球队统计数据概况 |
get_player_stats | 球员统计数据概况 |
完整参数列表和返回格式请参见 references/api-reference.md。
示例 1:当前排名 用户说:"大学篮球排名是什么?" 操作:
get_rankings()
结果:AP Top 25 和教练投票排名,包含排名、上周排名、战绩和积分示例 2:联盟排名 用户说:"给我看看 SEC 篮球排名" 操作:
currentDate 推导赛季年份get_standings(group=23, season=<derived_year>)(group 23 = SEC)
结果:SEC 排名及各队的胜负记录示例 3:今日比分 用户说:"今天大学篮球的比分是什么?" 操作:
get_scoreboard()
结果:所有实时和近期的 CBB 比赛,包含比分和排名状态示例 4:球队阵容 用户说:"给我看看杜克大学的阵容" 操作:
get_team_roster(team_id="150")
结果:杜克大学的完整阵容,包含姓名、位置、球衣号码示例 5:疯狂三月未来市场 用户说:"谁最有可能赢得疯狂三月?" 操作:
get_futures(limit=10)
结果:全国冠军热门竞争者及其赔率值示例 6:球队统计数据 用户说:"给我看看杜克大学的球队数据" 操作:
currentDate 推导赛季年份get_team_stats(team_id="150", season_year=<derived_year>)
结果:杜克大学按类别的赛季统计数据,包含数值、排名和场均平均值get_oddsget_betting_oddssearch_teamsget_teams。get_box_scoreget_game_summary。get_player_ratingsget_player_stats。get_ap_pollget_rankings。如果一个命令没有在上面的命令表中列出,则它不存在。
当命令失败时,不要向用户显示原始错误信息。而是:
错误:sports-skills 命令未找到
原因:包未安装
解决方案:运行 pip install sports-skills
错误:记分板上未找到比赛
原因:CBB 是季节性运动(11 月至次年 4 月);休赛期记分板将为空
解决方案:全年使用 get_rankings 或 get_news;使用 get_schedule 查看赛季何时恢复
错误:返回的比赛太多 —— 难以筛选
原因:赛季期间,每天安排 50 多场比赛
解决方案:使用 --group 按联盟筛选,或使用 --limit 限制结果数量
错误:排名为空
原因:排名仅在赛季期间(11 月至次年 3 月)每周发布
解决方案:休赛期使用 get_news;排名在 11 月恢复
每周安装次数
87
仓库
GitHub Stars
55
首次出现
2026年2月20日
安全审计
安装于
opencode86
codex86
gemini-cli85
github-copilot84
cursor84
amp83
Before writing queries, consult references/api-reference.md for endpoints, conference IDs, team IDs, and data shapes.
Before first use, check if the CLI is available:
which sports-skills || pip install sports-skills
If pip install fails with a Python version error, the package requires Python 3.10+. Find a compatible Python:
python3 --version # check version
# If < 3.10, try: python3.12 -m pip install sports-skills
# On macOS with Homebrew: /opt/homebrew/bin/python3.12 -m pip install sports-skills
No API keys required.
Prefer the CLI — it avoids Python import path issues:
sports-skills cbb get_scoreboard
sports-skills cbb get_rankings
sports-skills cbb get_standings --group=23
CRITICAL: Before calling any data endpoint, verify:
currentDate — never hardcoded.group parameter is set to the correct conference ID (see references/api-reference.md).get_teams to resolve the team ID.Derive the current year from the system prompt's date (e.g., currentDate: 2026-02-28 → current year is 2026).
season = current_year + 1. If January–April, use season = current_year. If May–October (offseason), use season = current_year (most recently completed season).group parameter to filterrank field (null = unranked) on scoreboard competitors| Command | Description |
|---|---|
get_scoreboard | Live/recent college basketball scores |
get_standings | Standings by conference (use group parameter) |
get_teams | All 360+ D1 men's basketball teams |
get_team_roster | Full roster for a team |
get_team_schedule | Schedule for a specific team |
get_game_summary |
See references/api-reference.md for full parameter lists and return shapes.
Example 1: Current rankings User says: "What are the college basketball rankings?" Actions:
get_rankings() Result: AP Top 25 and Coaches Poll with rank, previous rank, record, and pointsExample 2: Conference standings User says: "Show me SEC basketball standings" Actions:
currentDateget_standings(group=23, season=<derived_year>) (group 23 = SEC) Result: SEC standings with W-L records per teamExample 3: Today's scores User says: "What are today's college basketball scores?" Actions:
get_scoreboard() Result: All live and recent CBB games with scores and ranked statusExample 4: Team roster User says: "Show me Duke's roster" Actions:
get_team_roster(team_id="150") Result: Full Duke roster with name, position, jersey numberExample 5: March Madness futures User says: "Who's favored to win March Madness?" Actions:
get_futures(limit=10) Result: Top National Championship contenders with odds valuesExample 6: Team statistics User says: "Show me Duke's team stats" Actions:
currentDateget_team_stats(team_id="150", season_year=<derived_year>) Result: Duke's season stats by category with value, rank, and per-game averagesget_oddsget_betting_oddssearch_teamsget_teams instead.get_box_scoreget_game_summary instead.get_player_ratingsget_player_stats instead.get_ap_pollget_rankings instead.If a command is not listed in the Commands table above, it does not exist.
When a command fails, do not surface raw errors to the user. Instead:
Error: sports-skills command not found Cause: Package not installed Solution: Run pip install sports-skills
Error: No games found on scoreboard Cause: CBB is seasonal (November–April); off-season scoreboard will be empty Solution: Use get_rankings or get_news year-round; check get_schedule for when the season resumes
Error: Too many games returned — hard to filter Cause: During the season, 50+ games per day are scheduled Solution: Use --group to filter by conference, or --limit to cap results
Error: Rankings empty Cause: Rankings are published weekly during the season (November–March) only Solution: Use get_news in the offseason; rankings resume in November
Weekly Installs
87
Repository
GitHub Stars
55
First Seen
Feb 20, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode86
codex86
gemini-cli85
github-copilot84
cursor84
amp83
DOCX文件创建、编辑与分析完整指南 - 使用docx-js、Pandoc和Python脚本
52,800 周安装
Intercom自动化指南:通过Rube MCP与Composio实现客户支持对话管理
69 周安装
二进制初步分析指南:使用ReVa工具快速识别恶意软件与逆向工程
69 周安装
PrivateInvestigator 道德人员查找工具 | 公开数据调查、反向搜索与背景研究
69 周安装
TorchTitan:PyTorch原生分布式大语言模型预训练平台,支持4D并行与H100 GPU加速
69 周安装
screenshot 截图技能:跨平台桌面截图工具,支持macOS/Linux权限管理与多模式捕获
69 周安装
tmux进程管理最佳实践:交互式Shell初始化、会话命名与生命周期管理
69 周安装
| Detailed box score and player stats |
get_rankings | AP Top 25 and Coaches Poll rankings |
get_news | College basketball news |
get_play_by_play | Full play-by-play for a game |
get_win_probability | Win probability chart data |
get_schedule | Schedule for a date or season |
get_futures | Futures/odds markets (National Championship, etc.) |
get_team_stats | Team statistical profile |
get_player_stats | Player statistical profile |