# basketball-player-analytics

> Basketball player analytics: efficiency model, injury-risk classifier, breakout score and an 8-sheet Excel report, all in Python + SQLite.

basketball-player-analytics is a free AI agent skill on Agensi by Chinedu Emmanuel, in Research & Analysis. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Chinedu Emmanuel](https://www.agensi.io/creators/chinedu-emmanuel)
- Category: [Research & Analysis](https://www.agensi.io/skills/research-analysis)
- Version: 1.1
- Last updated: 2026-11-24
- Security: scan passed (2026-11-24); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/basketball-player-analytics
- Tags: data, analytics

## About this skill

Builds an end-to-end player analytics system: a SQLite database of players and seasons, three models, and a polished Excel workbook (plus an optional Streamlit dashboard).

Ask whether the user has real stats (CSV exports) or wants seed data. Use only data the user is allowed to use; don't scrape sites against their terms. For seed data, generate ~5 seasons for 150–450 players with a fixed seed, using fictional player names (never real players' names with invented stats).

Realism rules: stats correlate (minutes drive points/rebounds/assists), age curves peak mid-to-late 20s, young players on rising minutes improve, injuries more likely with high minutes, age and prior injuries.

- `teams(team_id, name, conference)`
- `players(player_id, name, position, birth_year, height_cm, team_id)`
- `season_stats(player_id, season, games, minutes, points, rebounds, assists, steals, blocks, turnovers, fg_pct, three_pct, ft_pct)`
- `injuries(player_id, season, games_missed, injury_type)`

## Requires

- Python 3.10+

## Known limitations

Doesn't fetch live league data or scrape stats sites; injury risk is an analytics exercise, not medical advice.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the basketball-player-analytics skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### Can I use real league stats?

Yes, from CSVs you're allowed to use. The skill maps them to its schema.

### Is the dashboard required?

No. The Excel report is the main output; the Streamlit dashboard is optional.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
