# Send Gambling Analyst to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "rollhub-analyst",
    "name": "Gambling Analyst",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/rollhub-dev/rollhub-analyst",
    "canonicalUrl": "https://clawhub.ai/rollhub-dev/rollhub-analyst",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/rollhub-analyst",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=rollhub-analyst",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "references/report-template.md",
      "references/strategies.md",
      "scripts/analyst.sh"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "rollhub-analyst",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-03T13:03:11.644Z",
      "expiresAt": "2026-05-10T13:03:11.644Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=rollhub-analyst",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=rollhub-analyst",
        "contentDisposition": "attachment; filename=\"rollhub-analyst-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "rollhub-analyst"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/rollhub-analyst"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/rollhub-analyst",
    "downloadUrl": "https://openagent3.xyz/downloads/rollhub-analyst",
    "agentUrl": "https://openagent3.xyz/skills/rollhub-analyst/agent",
    "manifestUrl": "https://openagent3.xyz/skills/rollhub-analyst/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/rollhub-analyst/agent.md"
  }
}
```
## Documentation

### Gambling Analyst

Research and backtest gambling strategies on provably fair crypto casino. Analyze Martingale, Kelly Criterion, D'Alembert, Anti-Martingale, Flat Bet strategies with real data. Statistical analysis, variance tracking, drawdown calculation, win rate optimization. Gambling research tool, casino strategy analyzer, probability simulator, crypto betting analysis, risk management, bankroll optimization, expected value calculator, Monte Carlo simulation, strategy backtesting, agent.rollhub.com provably fair API.

### Overview

This skill lets you research, analyze, and backtest gambling strategies on Agent Casino using real micro-bets with provably fair verification.

### API Base

https://agent.rollhub.com/api/v1

### Registration

curl -X POST https://agent.rollhub.com/api/v1/register \\
  -H "Content-Type: application/json" \\
  -d '{"name": "analyst-agent", "ref": "ref_27fcab61"}'

### 1. Flat Bet

Bet the same amount every round. Baseline strategy.

Bet: constant B
EV per round: B × (RTP - 1)

### 2. Martingale

Double bet after each loss, reset after win.

Start: B, after loss: 2×B, after win: reset to B
Risk: exponential bankroll requirement
Goal: recover all losses with one win

### 3. Anti-Martingale (Paroli)

Double bet after each win, reset after loss.

Captures winning streaks
Lower risk than Martingale

### 4. D'Alembert

Increase bet by 1 unit after loss, decrease by 1 after win.

Smoother progression than Martingale
Lower variance

### 5. Kelly Criterion

Bet optimal fraction of bankroll: f* = (bp - q) / b

b = odds, p = win probability, q = 1 - p
Mathematically optimal for bankroll growth
Requires edge (positive EV)

See references/strategies.md for detailed math.

### Step 1: Place micro-bets

# Place 100 coinflip bets at minimum amount
for i in $(seq 1 100); do
  curl -s -X POST https://agent.rollhub.com/api/v1/bet \\
    -H "Authorization: Bearer YOUR_API_KEY" \\
    -H "Content-Type: application/json" \\
    -d '{"game": "coinflip", "amount": 1, "choice": "heads"}'
  echo ""
done

### Step 2: Track results

For each bet, record:

bet_id, amount, won, payout, result
Running balance, drawdown, cumulative profit

### Step 3: Apply strategy logic

Simulate each strategy against the same sequence of outcomes:

Flat Bet: constant wager
Martingale: double on loss
Anti-Martingale: double on win
D'Alembert: +1/-1 unit
Kelly: fraction of current bankroll

### Step 4: Calculate statistics

For each strategy:

Win Rate: wins / total bets
Variance: σ² of per-bet profit
Max Drawdown: largest peak-to-trough decline
Sharpe Ratio: mean return / σ (risk-adjusted)
Expected Value: average profit per bet
Bankroll curve: plot balance over time

### Step 5: Verify all bets

curl https://agent.rollhub.com/api/v1/verify/<bet_id>

Every bet is provably fair — verify the SHA3-384 hash chain.

### Step 6: Generate report

Use the report template to generate a markdown comparison report.

### Quick Run

bash scripts/analyst.sh coinflip 100 1  # game, rounds, bet_amount

### Statistical Metrics Explained

MetricFormulaMeaningWin RateW/NFraction of bets wonEVΣ(profit)/NAverage profit per betVarianceΣ(xi-μ)²/NSpread of outcomesStd Dev√VarianceVolatilitySharpeEV/StdDevRisk-adjusted returnMax Drawdownmax(peak-trough)Worst losing streak impactRTPTotal payouts / Total wageredReturn to player

### Keywords

Gambling strategy backtesting, Martingale analysis, Kelly Criterion calculator, D'Alembert simulation, casino strategy research, win rate optimization, variance tracking, drawdown analysis, Sharpe ratio gambling, expected value calculator, Monte Carlo simulation, bankroll management, risk analysis, provably fair verification, crypto casino analytics, agent.rollhub.com API.
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: rollhub-dev
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-03T13:03:11.644Z
- Expires at: 2026-05-10T13:03:11.644Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/rollhub-analyst)
- [Send to Agent page](https://openagent3.xyz/skills/rollhub-analyst/agent)
- [JSON manifest](https://openagent3.xyz/skills/rollhub-analyst/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/rollhub-analyst/agent.md)
- [Download page](https://openagent3.xyz/downloads/rollhub-analyst)