market-mechanics-betting — Claude Code skill: science-backed bets
market-mechanics-betting is a Claude Code skill that converts probabilities into trading decisions by calculating market edge, sizing bets with Kelly, extremizing forecasts, and improving Brier Score calibration.
no license 179 installs ★ 203 updated 2026-09-01
npx skills add lyndonkl/claude --skill market-mechanics-betting -a claude-codeWhat market-mechanics-betting does
The skill covers four workflows. First, you identify edge by comparing your probability estimate to the market price, then checking whether the gap meets your minimum threshold—typically 5–10% for prediction markets to account for fees. Next, you compute optimal bet size via Kelly formula, which maximizes long-term wealth growth, then apply it as a fraction (usually one-quarter or one-half) to reduce variance and model error sensitivity.
When aggregating forecasts from multiple forecasters, the skill extremizes the result—shifts the average away from 50%—because group predictions tend toward underconfidence. A separate routine refines Brier Score (forecast accuracy metric) by showing how to recalibrate. Each calculation unfolds step by step: data collection, threshold checks, decision rules, and final execution. The skill assumes comfort with probability and numerical work.
What it helps with
- decide whether to bet based on edge over market odds
- calculate bet size that maximizes growth without blowing up the bankroll
- strengthen aggregated forecasts that are too close to 50–50
- measure and improve forecast accuracy over time
- manage correlated bets as a portfolio
Example prompts for the agent
- I estimate 75% chance; the market shows 60%. What's my edge and how much should I bet using Kelly?
- Five colleagues forecast 72%, 78%, 81%, 70%, 76%. Extremize this for me.
- Here are my predictions from last month and actual outcomes. Calculate my Brier Score and tell me where I'm miscalibrated.
How to install market-mechanics-betting
1Skills CLI (Vercel)
npx skills add lyndonkl/claude --skill market-mechanics-betting -a claude-code2Manually: put the files in place
~/.claude/skills/market-mechanics-betting/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/market-mechanics-betting/
1Skills CLI (Vercel)
npx skills add lyndonkl/claude --skill market-mechanics-betting -a codex2Manually: put the files in place
.agents/skills/market-mechanics-betting/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add lyndonkl/claude --skill market-mechanics-betting -a cursor2Manually: put the files in place
.cursor/skills/market-mechanics-betting/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install lyndonkl/claude skills/market-mechanics-betting2Manually: put the files in place
.github/skills/market-mechanics-betting/SKILL.md1Skills CLI (Vercel)
npx skills add lyndonkl/claude --skill market-mechanics-betting -a gemini-cli2Platform CLI
gemini skills install https://github.com/lyndonkl/claude --path skills/market-mechanics-bettingManually: put the files in place
.devin/skills/market-mechanics-betting/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add lyndonkl/claude --skill market-mechanics-betting -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about market-mechanics-betting
How do I install market-mechanics-betting in Claude Code?
Run npx skills add lyndonkl/claude --skill market-mechanics-betting -a claude-code, then locate ~/.claude/skills/market-mechanics-betting/SKILL.md and activate it in Claude Code.
What does market-mechanics-betting do?
It turns probability beliefs into action: computes edge versus market, sizes bets via Kelly Criterion, extremizes group forecasts, and measures forecast calibration through Brier Score.
What minimum edge should I require before betting?
For prediction markets like Polymarket, 5–10% to cover fees; for sports betting, 3–5%; for private bets, 2–3%. The skill helps you determine this threshold and check whether your edge clears it.