/sports-skills:machinafrom sports-skills
Provides access to licensed real-time sports data, betting odds, and live streams via the Machina Sports platform. Use for premium sports workflows and when open-source skills are rate-limited.
Ships in sports-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Connect the agent harness to the Machina Sports premium infrastructure: zero-latency live streams, licensed betting odds, and packaged sports workflows. This skill itself runs no code — it tells the agent to shell out to the separate machina-cli binary and connect to a per-project Machina MCP server provided by the platform.
# 1. Install the CLI (one-time)
pipx install machina-cli
# or: uv tool install machina-cli
# or: python -m pip install --user machina-cli
# 2. Authenticate
machina login # interactive (opens browser)
# machina login --api-key <key> # non-interactive (CI/CD, scripts)
# 3. Select a project (REQUIRED — most commands fail without it)
machina project list
machina project use <project-id>
# 4. Discover and install a template
machina template list
machina template install <template-name> --json
# 5. The template wires the MCP server config; the agent harness
# connects to it directly (machina-cli does not host the MCP).
Before calling any machina <subcommand>, verify:
machina-cli is installed — check with which machina or machina version.machina auth whoami returns a user.machina project use <id> has been run at least once.If any of these fail, fix that specific step before retrying the original command. Do not loop on the same failing command.
sports-skills endpoints are rate-limited or insufficient for the requested task (e.g., sub-second tick streams, licensed feeds, proprietary projections).pipx install machina-cli
# or
uv tool install machina-cli
# or
python -m pip install --user machina-cli
Run this in the developer's terminal if you have permission, or ask them to run it.
If a shell installer is required by the user's environment, never pipe it directly to a shell by default. Download it, inspect it, then run it only after the user approves:
curl -fsSL https://raw.githubusercontent.com/machina-sports/machina-cli/main/install.sh -o /tmp/machina-install.sh
less /tmp/machina-install.sh
bash /tmp/machina-install.sh
machina login # interactive (opens browser)
machina login --api-key <project-api-key> # non-interactive
machina login --with-credentials # username/password
API keys are scoped per project. Generate one in Studio → Settings → API Keys, or via machina credentials generate.
Most premium commands (templates, workflows, credentials, connectors) require a project context. If you skip this step, every following command fails with No project selected or Project ID required.
machina project list # show projects under the current org
machina project use <project-id> # set the default project
machina project status # confirm
Machina provides fully packaged agent workflows (Templates) that contain system prompts, pre-flight checks, and the necessary serverless code to run a sports bot out of the box.
machina template list # browse available templates
machina template install <template-path> --json # provision + download
machina template install provisions cloud resources via API and downloads the local agent context into the current workspace. Use --json for structured output that the agent can parse.
If you modify a template or create a new sports workflow locally, push it directly to the Machina Cloud Pod:
machina template push ./<your-custom-folder>
This zips the local workspace, validates _install.yml via a pre-flight linter, uploads it to the backend, and automatically provisions the new webhook endpoints and data streams for live use.
The Machina platform provides a per-project MCP (Model Context Protocol) server that streams live data, betting odds, and zero-latency feeds. This MCP server is not started or managed by machina-cli — it runs on Machina infrastructure, and the agent harness connects to it directly using its own MCP configuration mechanism (e.g., .claude/mcp.json for Claude Code).
How it fits together:
machina template install <name> provisions the server-side workflow and returns the MCP URL and any required headers in its JSON output.X-Api-Token rotation happen inside the MCP server.Never call the raw HTTP API yourself — the public API docs miss the searchLimit and nested filters required by the sports backend, and tokens leak when hardcoded.
| Error message | Cause | Recovery |
|---|---|---|
command not found: machina | CLI not installed | pip install machina-cli |
Not authenticated. Run \machina login` first.` | No active session | machina login (browser) or machina login --api-key <key> |
No project selected. Run \machina project use ` first.` | Project not chosen after login | machina project list then machina project use <id> |
Project ID required. Set default or use --project. | Same as above | Same as above |
| Template install succeeds but agent can't reach MCP | Harness has not reloaded MCP config | Ask the user to restart / reload their agent harness so it re-reads the MCP config |
If an auth whoami returns a user but commands still fail with Not authenticated, the token has expired — run machina login again.
python -m sports_skills machina ...sports-skills. Shell out to machina-cli directly.machina mcp startmachina mcp connectmcp subcommand. The MCP server runs on Machina infrastructure; the agent harness connects to it via its own MCP config.machina sports ...machina template runmachina template install provisions them server-side); they don't run locally.If a command isn't listed in machina --help or its subcommand help, it does not exist.
MACHINA_API_TOKEN in their source code if using the MCP setup. The CLI handles shared context securely.searchLimit and nested filters required by the sports backend. Installing a template automatically injects the correct workflow.json config.machina project use <id> after a fresh login.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
sports-data, betting-odds, live-streams, agent-workflows, premium-api, machina-cli
npx claudepluginhub machina-sports/sports-skills --plugin sports-skills31 skills in this plugin
/bettingBetting analysis — odds conversion, de-vigging, edge detection, Kelly criterion, arbitrage detection, parlay analysis, and line movement. Pure computation, no API calls. Works with odds from any source: ESPN (American odds), Polymarket (decimal probabilities), Kalshi (integer probabilities).
Use when: user asks about bet sizing, expected value, edge analysis, Kelly criterion, arbitrage, parlays, line movement, odds conversion, or comparing odds across sources. Also use when you have odds from ESPN and a prediction market price and want to evaluate whether a bet has positive expected value.
Don't use when: user asks for live odds or market data — use polymarket, kalshi, or the sport-specific skill to fetch odds first, then use this skill to analyze them.
/cbb-dataCollege Basketball (CBB) data via ESPN public endpoints and the NCAA's official endpoints — scores, standings, rosters, schedules, game summaries, play-by-play, win probability, rankings, futures, team/player stats, and news for Division I men's basketball, plus official D2/D3 scoreboards, NCAA game detail, the March Madness bracket with live scores, and the schools index. Zero config, no API keys.
Use when: user asks about college basketball scores, March Madness, the NCAA tournament bracket, standings, rankings, team rosters, schedules, play-by-play, betting futures, team/player statistics, CBB news, or D2/D3 games.
Don't use when: user asks about NBA/WNBA (use nba-data/wnba-data), college football (use cfb-data), or non-sports topics.
Other plugins' skills for the same job