bet-journal
БесплатноБез исполняемых скриптовНе проверенTrack your sports bets in a local CSV journal. Calculate ROI, CLV, win rate by sport/bet-type, and identify where you're actually making money.
от ianalloway214 установок в других каталогахОб этом скилле
Bet Journal
The most important edge in sports betting isn't picking winners — it's tracking your bets to learn where your edge is real vs. imagined. This skill creates and analyzes a local CSV bet journal.
Initialize the Journal
python3 -c "
import csv, os
JOURNAL_FILE = os.path.expanduser('~/.openclaw/bet-journal.csv')
os.makedirs(os.path.dirname(JOURNAL_FILE), exist_ok=True)
HEADERS = ['date', 'sport', 'game', 'bet_type', 'pick', 'odds_american',
'stake', 'result', 'pnl', 'closing_odds', 'notes']
if not os.path.exists(JOURNAL_FILE):
with open(JOURNAL_FILE, 'w', newline='') as f:
csv.DictWriter(f, fieldnames=HEADERS).writeheader()
print(f'Journal created: {JOURNAL_FILE}')
else:
print(f'Journal already exists: {JOURNAL_FILE}')
print()
print('Fields:')
for h in HEADERS:
print(f' {h}')
print()
print('result values: W (win), L (loss), P (push), V (void)')
print('bet_type values: ML (moneyline), SPREAD, TOTAL, PARLAY, PROP, FUTURES')
"
Add a Bet
python3 -c "
import csv, os
from datetime import date
JOURNAL_FILE = os.path.expanduser('~/.openclaw/bet-journal.csv')
def add_bet(sport, game, bet_type, pick, odds_american, stake, result, closing_odds=None, notes=''):
if result == 'W':
if odds_american > 0:
pnl = stake * odds_american / 100
else:
pnl = stake * 100 / abs(odds_american)
elif result in ('L',):
pnl = -stake
else:
pnl = 0 # push or void
row = {
'date': date.today().isoformat(),
'sport': sport,
'game': game,
'bet_type': bet_type,
'pick': pick,
'odds_american': odds_american,
'stake': stake,
'result': result,
'pnl': round(pnl, 2),
'closing_odds': closing_odds or '',
'notes': notes,
}
with open(JOURNAL_FILE, 'a', newline='') as f:
csv.DictWriter(f, fieldnames=row.keys()).writerow(row)
print(f'Added: {sport} | {game} | {pick} ({odds_american:+d}) | Result: {result} | P&L: {pnl:+.2f}')
# --- EDIT THESE TO LOG YOUR BET ---
add_bet(
sport='NBA',
game='Lakers vs Warriors',
bet_type='SPREAD',
pick='Warriors -3.5',
odds_american=-110,
stake=100,
result='W', # W / L / P / V
closing_odds=-115, # Line at close (for CLV tracking)
notes='Sharp action on Warriors, public on Lakers',
)
"
View Your Dashboard
python3 -c "
import csv, os
from collections import defaultdict
JOURNAL_FILE = os.path.expanduser('~/.openclaw/bet-journal.csv')
if not os.path.exists(JOURNAL_FILE):
print('No journal found. Run the init script first.')
exit()
bets = []
with open(JOURNAL_FILE) as f:
for row in csv.DictReader(f):
row['stake'] = float(row['stake'])
row['pnl'] = float(row['pnl'])
row['odds_american'] = int(row['odds_american'])
bets.append(row)
if not bets:
print('No bets logged yet.')
exit()
wins = [b for b in bets if b['result'] == 'W']
losses = [b for b in bets if b['result'] == 'L']
pushes = [b for b in bets if b['result'] in ('P', 'V')]
total_bets = len(wins) + len(losses)
win_rate = len(wins) / total_bets if total_bets else 0
total_wagered = sum(b['stake'] for b in bets)
total_pnl = sum(b['pnl'] for b in bets)
roi = total_pnl / total_wagered if total_wagered else 0
print('=== Bet Journal Dashboard ===')
print(f'Record: {len(wins)}-{len(losses)}-{len(pushes)}')
print(f'Win Rate: {win_rate:.1%}')
print(f'Total Wagered: \${total_wagered:,.2f}')
print(f'Net P&L: {total_pnl:+,.2f}')
print(f'ROI: {roi:+.1%}')
print()
# By sport
by_sport = defaultdict(list)
for b in bets:
by_sport[b['sport']].append(b)
print('=== P&L by Sport ===')
for sport, sbets in sorted(by_sport.items()):
sw = sum(1 for b in sbets if b['result'] == 'W')
sl = sum(1 for b in sbets if b['result'] == 'L')
spnl = sum(b['pnl'] for b in sbets)
swag = sum(b['stake'] for b in sbets)
sroi = spnl / swag if swag else 0
print(f' {sport:<8} {sw}-{sl} P&L: {spnl:+.2f} ROI: {sroi:+.1%}')
# By bet type
print()
print('=== P&L by Bet Type ===')
by_type = defaultdict(list)
for b in bets:
by_type[b['bet_type']].append(b)
for bt, tbets in sorted(by_type.items()):
tw = sum(1 for b in tbets if b['result'] == 'W')
tl = sum(1 for b in tbets if b['result'] == 'L')
tpnl = sum(b['pnl'] for b in tbets)
twag = sum(b['stake'] for b in tbets)
troi = tpnl / twag if twag else 0
print(f' {bt:<10} {tw}-{tl} P&L: {tpnl:+.2f} ROI: {troi:+.1%}')
"
Closing Line Value (CLV) Calculator
CLV is the #1 predictor of long-term betting success. If you consistently beat the closing line, you have a real edge:
python3 -c "
import csv, os
JOURNAL_FILE = os.path.expanduser('~/.openclaw/bet-journal.csv')
def american_to_prob(american):
if american > 0:
return 100 / (american + 100)
else:
return abs(american) /
Установить bet-journal в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл bet-journal?
Track your sports bets in a local CSV journal. Calculate ROI, CLV, win rate by sport/bet-type, and identify where you're actually making money.
Как установить скилл bet-journal?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл bet-journal запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic