$npx -y skills add machina-sports/sports-skills --skill cbb-dataCollege Basketball (CBB) data via ESPN public endpoints — scores, standings, rosters, schedules, game summaries, play-by-play, win probability, rankings, futures, team/player stats, and news for NCAA Division I men's basketball. Zero config, no API keys. Use when: user asks about
| 1 | # College Basketball Data (CBB) |
| 2 | |
| 3 | Before writing queries, consult `references/api-reference.md` for endpoints, conference IDs, team IDs, and data shapes. |
| 4 | |
| 5 | ## Setup |
| 6 | |
| 7 | Before first use, check if the CLI is available: |
| 8 | ```bash |
| 9 | which sports-skills || pip install sports-skills |
| 10 | ``` |
| 11 | If `pip install` fails with a Python version error, the package requires Python 3.10+. Find a compatible Python: |
| 12 | ```bash |
| 13 | python3 --version # check version |
| 14 | # If < 3.10, try: python3.12 -m pip install sports-skills |
| 15 | # On macOS with Homebrew: /opt/homebrew/bin/python3.12 -m pip install sports-skills |
| 16 | ``` |
| 17 | No API keys required. |
| 18 | |
| 19 | ## Quick Start |
| 20 | |
| 21 | Prefer the CLI — it avoids Python import path issues: |
| 22 | ```bash |
| 23 | sports-skills cbb get_scoreboard |
| 24 | sports-skills cbb get_rankings |
| 25 | sports-skills cbb get_standings --group=23 |
| 26 | ``` |
| 27 | |
| 28 | ## CRITICAL: Before Any Query |
| 29 | |
| 30 | CRITICAL: Before calling any data endpoint, verify: |
| 31 | - Season year is derived from the system prompt's `currentDate` — never hardcoded. |
| 32 | - For standings, the `group` parameter is set to the correct conference ID (see `references/api-reference.md`). |
| 33 | - If only a team name is provided, use `get_teams` to resolve the team ID. |
| 34 | |
| 35 | ## Choosing the Season |
| 36 | |
| 37 | Derive the current year from the system prompt's date (e.g., `currentDate: 2026-02-28` → current year is 2026). |
| 38 | |
| 39 | - **If the user specifies a season**, use it as-is. |
| 40 | - **If the user says "current", "this season", or doesn't specify**: The CBB season runs November–April. If the current month is November or December, use `season = current_year + 1`. If January–April, use `season = current_year`. If May–October (offseason), use `season = current_year` (most recently completed season). |
| 41 | |
| 42 | ## Important: College vs. Pro Differences |
| 43 | |
| 44 | - **Standings are per-conference** — use the `group` parameter to filter |
| 45 | - **Rankings replace leaders** — college uses AP Top 25 and Coaches Poll |
| 46 | - **Ranked teams** have a `rank` field (null = unranked) on scoreboard competitors |
| 47 | - **360+ D1 teams** — many games per day during the season (50+ during conference play) |
| 48 | - **March Madness** — NCAA Tournament runs in March/April with 68 teams |
| 49 | |
| 50 | ## Commands |
| 51 | |
| 52 | | Command | Description | |
| 53 | |---|---| |
| 54 | | `get_scoreboard` | Live/recent college basketball scores | |
| 55 | | `get_standings` | Standings by conference (use `group` parameter) | |
| 56 | | `get_teams` | All 360+ D1 men's basketball teams | |
| 57 | | `get_team_roster` | Full roster for a team | |
| 58 | | `get_team_schedule` | Schedule for a specific team | |
| 59 | | `get_game_summary` | Detailed box score and player stats | |
| 60 | | `get_rankings` | AP Top 25 and Coaches Poll rankings | |
| 61 | | `get_news` | College basketball news | |
| 62 | | `get_play_by_play` | Full play-by-play for a game | |
| 63 | | `get_win_probability` | Win probability chart data | |
| 64 | | `get_schedule` | Schedule for a date or season | |
| 65 | | `get_futures` | Futures/odds markets (National Championship, etc.) | |
| 66 | | `get_team_stats` | Team statistical profile | |
| 67 | | `get_player_stats` | Player statistical profile | |
| 68 | |
| 69 | See `references/api-reference.md` for full parameter lists and return shapes. |
| 70 | |
| 71 | ## Examples |
| 72 | |
| 73 | Example 1: Current rankings |
| 74 | User says: "What are the college basketball rankings?" |
| 75 | Actions: |
| 76 | 1. Call `get_rankings()` |
| 77 | Result: AP Top 25 and Coaches Poll with rank, previous rank, record, and points |
| 78 | |
| 79 | Example 2: Conference standings |
| 80 | User says: "Show me SEC basketball standings" |
| 81 | Actions: |
| 82 | 1. Derive season year from `currentDate` |
| 83 | 2. Call `get_standings(group=23, season=<derived_year>)` (group 23 = SEC) |
| 84 | Result: SEC standings with W-L records per team |
| 85 | |
| 86 | Example 3: Today's scores |
| 87 | User says: "What are today's college basketball scores?" |
| 88 | Actions: |
| 89 | 1. Call `get_scoreboard()` |
| 90 | Result: All live and recent CBB games with scores and ranked status |
| 91 | |
| 92 | Example 4: Team roster |
| 93 | User says: "Show me Duke's roster" |
| 94 | Actions: |
| 95 | 1. Call `get_team_roster(team_id="150")` |
| 96 | Result: Full Duke roster with name, position, jersey number |
| 97 | |
| 98 | Example 5: March Madness futures |
| 99 | User says: "Who's favored to win March Madness?" |
| 100 | Actions: |
| 101 | 1. Call `get_futures(limit=10)` |
| 102 | Result: Top National Championship contenders with odds values |
| 103 | |
| 104 | Example 6: Team statistics |
| 105 | User says: "Show me Duke's team stats" |
| 106 | Actions: |
| 107 | 1. Derive season year from `currentDate` |
| 108 | 2. Call `get_team_stats(team_id="150", season_year=<derived_year>)` |
| 109 | Result: Duke's season stats by category with value, rank, and per-game averages |
| 110 | |
| 111 | ## Commands that DO NOT exist — never call these |