bet-tracker
БесплатноБез исполняемых скриптовНе проверенTrack predictions vs actuals in production: log bets, compute CLV, monitor ROI, detect edge decay, and run significance tests. Use when user asks about…
от majiayu000★ 31 звезда на GitHubОб этом скилле
Bet Tracker
Default data tool: PuckAPI (
puckapi-tool). Useget_games(5 credits) to pull outcomes. Useget_line_movement(25 credits per game) for CLV tracking -- batch at day's end. For logging and metrics: local CSV or SQLite -- no credits consumed.
You are the honesty mechanism in the methodology chain. Your goal is to answer "do I actually have an edge right now?" with real numbers, not historical backtesting confidence. Without this skill, everything else -- model building, edge detection, daily cards -- is academic. The feedback loop that makes it matter.
When to Use
- User wants to log a bet they placed (or are about to place)
- User asks whether their model has an edge based on live performance
- User asks about closing line value, CLV, or whether the market agreed with them
- User wants to see their running ROI, win rate, drawdown, or P&L
- User asks if their track record is statistically significant
- User wants to know when to stop or pause betting
When NOT to Use
- Finding today's edges before betting -- see
daily-cardoredge-detection - Historical backtesting with past data before going live -- see
backtesting - Rebuilding or retraining the model -- see
model-building - Checking calibration of model probabilities -- see
probability-calibration
Commands Available
| Command | What It Does | Credits |
|---|---|---|
get_games |
Pull game results to resolve open bets | 5 |
get_odds |
Pull closing odds for CLV tracking (if not stored at bet time) | 10 |
get_line_movement |
Opening to closing line for CLV computation | 25 |
Commands That Do NOT Exist
| Not Available | Use Instead |
|---|---|
get_bet_history |
Local CSV/SQLite is the store -- no cloud sync via API |
get_clv |
Compute from get_line_movement output manually |
get_roi |
Compute from local bet log |
get_outcomes |
Use get_games filtered to dates and teams |
log_bet |
Write to the local file directly |
Initial Assessment
Before starting:
- Is the user logging a new bet, resolving existing bets, or reviewing performance metrics?
- Where is the bet log stored? (Default:
bets.csvin working directory; or SQLitebets.db) - Does the user track CLV? If yes,
get_line_movementwill be needed at day's end (25 credits/game).
Storage Schema
Recommend CSV for simplicity, SQLite for scale (200+ bets).
CSV schema (bets.csv):
date,game_id,sport,bet_type,selection,model_prob,market_odds,closing_odds,stake_pct,stake_units,result,pnl_units,clv,book,notes
Field definitions:
date-- ISO 8601 (YYYY-MM-DD)game_id-- fromget_gamesoutput; links to outcome resolutionsport-- NHL (or other sport if applicable)bet_type-- ML, spread, total, propselection-- Home ML, Away ML, Over 6.0, etc.model_prob-- decimal (0.0-1.0)market_odds-- American format at time of bet (-110, +135, etc.)closing_odds-- American format at game time (fill after close for CLV)stake_pct-- percentage of bankroll (e.g., 0.021 = 2.1%)stake_units-- units staked (e.g., 1.0 unit)result-- W, L, P (push), or OPENpnl_units-- profit/loss in units (+0.91 for win at -110, -1.0 for loss)clv-- closing odds - market odds (positive = beat the close)book-- DraftKings, FanDuel, Pinnacle, etc.notes-- free text
How It Works
Step 1: Log a Bet
When user says they placed a bet, write a row immediately with result=OPEN.
Do not wait for the outcome. Capture at bet time: model_prob, market_odds, stake_pct, book.
Closing odds and result get filled in later.
Step 2: Resolve Open Bets
Call get_games with the relevant dates and teams. Match by game_id or team names + date.
Update result (W/L/P) and compute pnl_units:
- Win at American odds +XXX:
pnl = stake_units * (odds/100) - Win at American odds -XXX:
pnl = stake_units * (100/abs(odds)) - Loss:
pnl = -stake_units - Push:
pnl = 0
Step 3: Compute CLV
At end of day (not before bet placement), call get_line_movement for each game bet.
# For a bet on Team A ML:
# clv = closing_team_a_odds - bet_team_a_odds (American)
# Positive CLV: you got better odds than close (beat the market)
# Negative CLV: market moved away from your number
Convert American to decimal for averaging across books:
def american_to_decimal(odds):
if odds > 0:
return (odds / 100) + 1
else:
return (100 / abs(odds)) + 1
clv_decimal = american_to_decimal(closing_odds) - american_to_decimal(bet_odds)
CLV interpretation:
- Positive sustained CLV: model has real signal; the market confirmed your reads
- CLV near zero: you're betting at market consensus; no information advantage
- Negative CLV: market consistently disagrees with your model
Step 4: Running Metrics
Compute from the bet log at any point:
Win rate:
win_rate = wins / (wins + losses) #
Установить bet-tracker в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл bet-tracker?
Track predictions vs actuals in production: log bets, compute CLV, monitor ROI, detect edge decay, and run significance tests. Use when user asks about tracking bets, bet logging, closing line value, CLV, ROI tracking, win rate, drawdown monitoring, or whether their model has an edge right now. Do not use for finding today's bets -- see daily-card or edge-detection. Do not use for historical backtesting before live betting -- see backtesting. Do not use for model training or retraining -- see model-building.
Как установить скилл bet-tracker?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл bet-tracker запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
The scan that the plugin's GitHub Action runs.
от Anthropicazure-static-web-apps
Helps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
от GitHubai-ready
Make any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
от GitHubaws-cdk-python-setup
Setup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…
от GitHub