clv-journal
БесплатноБез исполняемых скриптовНе проверенLog bets with entry + closing odds, compute closing-line value (CLV) in odds pts and implied-prob pts, and roll up beat-close rate by sport/book/market.
от ianalloway215 установок в других каталогахОб этом скилле
CLV Journal
Closing Line Value (CLV) is the process metric that predicts long-term betting edge. This skill keeps a dedicated CLV journal — entry price vs. close — separate from win/loss P&L. Beat the close consistently and the results follow.
Use alongside bet-journal (outcome/ROI) and sports-odds (live lines). This skill answers: Did I get a better price than the market at close?
Formulas
American → implied probability (no-vig single side):
p = 100 / (a + 100) if a > 0
p = |a| / (|a| + 100) if a < 0
Implied-prob CLV (pts):
clv_prob = p_close − p_entry
Positive = you bought cheaper than the close (you beat the close). Example: entry −110 → p≈0.5238, close −120 → p≈0.5455 → CLV ≈ +2.17 pts.
American odds CLV (pts): for favorites (negative American), more negative close is better for the bettor who bought earlier:
clv_american_pts = entry − close # e.g. −110 vs −120 → +10 pts
For underdogs (positive American), higher entry than close means you beat the close:
clv_american_pts = entry − close # e.g. +150 vs +130 → +20 pts
Spread / total line CLV (half-points): if you bet a side, positive means the line moved in your favor after you bet:
# betting favorite −3.5 that closes −5.5 → +2.0 line pts
# betting underdog +3.5 that closes +1.5 → +2.0 line pts (same direction)
clv_line = signed_move_toward_your_side
Beat-close rate:
beat_close_rate = count(clv_prob > 0) / count(rows with both entry + close)
| Metric | Neutral | Good | Elite |
|---|---|---|---|
| Avg CLV (prob pts) | ~0 | +1.0+ | +2.5+ |
| Beat-close rate | 50% | 55%+ | 60%+ |
| Sample size | — | 50+ | 200+ |
Initialize the Journal
python3 -c "
import csv, os
JOURNAL = os.path.expanduser('~/.openclaw/clv-journal.csv')
os.makedirs(os.path.dirname(JOURNAL), exist_ok=True)
HEADERS = [
'id', 'ts_entry', 'ts_close', 'sport', 'event', 'market', 'side',
'book', 'odds_entry', 'odds_close', 'line_entry', 'line_close',
'clv_prob', 'clv_american', 'clv_line', 'beat_close', 'notes',
]
if not os.path.exists(JOURNAL):
with open(JOURNAL, 'w', newline='') as f:
csv.DictWriter(f, fieldnames=HEADERS).writeheader()
print(f'Created {JOURNAL}')
else:
print(f'Already exists: {JOURNAL}')
print('Markets: ML | SPREAD | TOTAL | PROP')
print('Leave odds_close / line_close blank until the market closes (pending).')
"
Log an Entry (open price)
python3 -c "
import csv, os, uuid
from datetime import datetime, timezone
JOURNAL = os.path.expanduser('~/.openclaw/clv-journal.csv')
HEADERS = [
'id', 'ts_entry', 'ts_close', 'sport', 'event', 'market', 'side',
'book', 'odds_entry', 'odds_close', 'line_entry', 'line_close',
'clv_prob', 'clv_american', 'clv_line', 'beat_close', 'notes',
]
def log_entry(sport, event, market, side, book, odds_entry,
line_entry='', notes=''):
row = {
'id': str(uuid.uuid4())[:8],
'ts_entry': datetime.now(timezone.utc).strftime('%Y-%m-%dT%H:%M:%SZ'),
'ts_close': '',
'sport': sport,
'event': event,
'market': market,
'side': side,
'book': book,
'odds_entry': odds_entry,
'odds_close': '',
'line_entry': line_entry,
'line_close': '',
'clv_prob': '',
'clv_american': '',
'clv_line': '',
'beat_close': '',
'notes': notes,
}
with open(JOURNAL, 'a', newline='') as f:
csv.DictWriter(f, fieldnames=HEADERS).writerow(row)
print(f\"Logged entry {row['id']}: {sport} | {event} | {side} @ {odds_entry:+d} ({book})\")
print('Fill close later with log_close(id, odds_close, line_close=...)')
# --- EDIT THESE ---
log_entry(
sport='NBA',
event='Lakers @ Warriors',
market='SPREAD',
side='Warriors -3.5',
book='FanDuel',
odds_entry=-110,
line_entry=-3.5,
notes='early steam, sharp-leaning',
)
"
Fill Closing Odds + Compute CLV
python3 -c "
import csv, os, tempfile
from datetime import datetime, timezone
JOURNAL = os.path.expanduser('~/.openclaw/clv-journal.csv')
def american_to_prob(a):
a = int(a)
return 100 / (a + 100) if a > 0 else abs(a) / (abs(a) + 100)
def clv_line_pts(side, line_entry, line_close):
if line_entry == '' or line_close == '':
return ''
le, lc = float(line_entry), float(line_close)
# Convention: side string starts with team; use signed lines as stored.
# Positive clv_line = line moved against the bettor's price (got better number).
# For a negative line (favorite), more negative close → positive CLV.
# For a positive line (dog), less positive / more negative close → positive CLV.
return round(le - lc, 2)
def log_close(bet_id, odds_close, line_close=''):
rows = []
found = False
with open(JOURNAL) as f:
reader = csv.DictReader(f)
fieldnames = reader.fieldnames
f
Установить clv-journal в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл clv-journal?
Log bets with entry + closing odds, compute closing-line value (CLV) in odds pts and implied-prob pts, and roll up beat-close rate by sport/book/market.
Как установить скилл clv-journal?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл clv-journal запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic