# market-mechanics-betting

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.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 179 installs · ★ 203 repo stars
- Author: lyndonkl
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/lyndonkl/claude/tree/HEAD/skills/market-mechanics-betting/SKILL.md
- Updated: 2026-09-01
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/market-mechanics-betting

## What it 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.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add lyndonkl/claude --skill market-mechanics-betting -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/market-mechanics-betting/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/market-mechanics-betting/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add lyndonkl/claude --skill market-mechanics-betting -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/market-mechanics-betting/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add lyndonkl/claude --skill market-mechanics-betting -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/market-mechanics-betting/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install lyndonkl/claude skills/market-mechanics-betting
```

2. **Manually: put the files in place**
- File: `.github/skills/market-mechanics-betting/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add lyndonkl/claude --skill market-mechanics-betting -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/lyndonkl/claude --path skills/market-mechanics-betting
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/market-mechanics-betting/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add lyndonkl/claude --skill market-mechanics-betting -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/lyndonkl/claude/tree/HEAD/skills/market-mechanics-betting/SKILL.md

## When to use it
- 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
- 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.

## Similar
- [prediction-market-strategy](https://affpapa.org/en/nevibecode/skills/prediction-market-strategy.md) — skill · 366 installs
- [betting](https://affpapa.org/en/nevibecode/skills/betting.md) — skill · 1700 installs
- [bettoredge-value-finder](https://affpapa.org/en/nevibecode/agents/bettoredge-value-finder.md) — subagent · 256 installs
- [Prediction Markets — Polymarket & Kalshi Live Odds](https://affpapa.org/en/nevibecode/mcp/prediction-markets-polymarket-kalshi-live-odds.md) — MCP server · 4215 installs
- [foresea](https://affpapa.org/en/nevibecode/mcp/foresea.md) — MCP server · 227 installs
- [prediction-market-live-ops](https://affpapa.org/en/nevibecode/skills/prediction-market-live-ops.md) — skill · 194 installs

From the same set: [lyndonkl/claude](https://affpapa.org/en/nevibecode/by/lyndonkl/claude.md) — 49 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
