{
  "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": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/rollhub-analyst",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=rollhub-analyst",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "SKILL.md",
      "references/report-template.md",
      "references/strategies.md",
      "scripts/analyst.sh"
    ],
    "primaryDoc": "SKILL.md",
    "quickSetup": [
      "Download the package from Yavira.",
      "Extract the archive and review SKILL.md first.",
      "Import or place the package into your OpenClaw setup."
    ],
    "agentAssist": {
      "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
      "steps": [
        "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."
      ],
      "prompts": [
        {
          "label": "New install",
          "body": "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."
        },
        {
          "label": "Upgrade existing",
          "body": "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."
        }
      ]
    },
    "sourceHealth": {
      "source": "tencent",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-30T16:55:25.780Z",
      "expiresAt": "2026-05-07T16:55:25.780Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=network",
        "contentDisposition": "attachment; filename=\"network-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null
      },
      "scope": "source",
      "summary": "Source download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this source.",
      "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."
      ]
    },
    "downloadPageUrl": "https://openagent3.xyz/downloads/rollhub-analyst",
    "agentPageUrl": "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"
  },
  "agentAssist": {
    "summary": "Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.",
    "steps": [
      "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."
    ],
    "prompts": [
      {
        "label": "New install",
        "body": "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."
      },
      {
        "label": "Upgrade existing",
        "body": "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."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "Gambling Analyst",
        "body": "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."
      },
      {
        "title": "Overview",
        "body": "This skill lets you research, analyze, and backtest gambling strategies on Agent Casino using real micro-bets with provably fair verification."
      },
      {
        "title": "API Base",
        "body": "https://agent.rollhub.com/api/v1"
      },
      {
        "title": "Registration",
        "body": "curl -X POST https://agent.rollhub.com/api/v1/register \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"name\": \"analyst-agent\", \"ref\": \"ref_27fcab61\"}'"
      },
      {
        "title": "1. Flat Bet",
        "body": "Bet the same amount every round. Baseline strategy.\n\nBet: constant B\nEV per round: B × (RTP - 1)"
      },
      {
        "title": "2. Martingale",
        "body": "Double bet after each loss, reset after win.\n\nStart: B, after loss: 2×B, after win: reset to B\nRisk: exponential bankroll requirement\nGoal: recover all losses with one win"
      },
      {
        "title": "3. Anti-Martingale (Paroli)",
        "body": "Double bet after each win, reset after loss.\n\nCaptures winning streaks\nLower risk than Martingale"
      },
      {
        "title": "4. D'Alembert",
        "body": "Increase bet by 1 unit after loss, decrease by 1 after win.\n\nSmoother progression than Martingale\nLower variance"
      },
      {
        "title": "5. Kelly Criterion",
        "body": "Bet optimal fraction of bankroll: f* = (bp - q) / b\n\nb = odds, p = win probability, q = 1 - p\nMathematically optimal for bankroll growth\nRequires edge (positive EV)\n\nSee references/strategies.md for detailed math."
      },
      {
        "title": "Step 1: Place micro-bets",
        "body": "# Place 100 coinflip bets at minimum amount\nfor i in $(seq 1 100); do\n  curl -s -X POST https://agent.rollhub.com/api/v1/bet \\\n    -H \"Authorization: Bearer YOUR_API_KEY\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\"game\": \"coinflip\", \"amount\": 1, \"choice\": \"heads\"}'\n  echo \"\"\ndone"
      },
      {
        "title": "Step 2: Track results",
        "body": "For each bet, record:\n\nbet_id, amount, won, payout, result\nRunning balance, drawdown, cumulative profit"
      },
      {
        "title": "Step 3: Apply strategy logic",
        "body": "Simulate each strategy against the same sequence of outcomes:\n\nFlat Bet: constant wager\nMartingale: double on loss\nAnti-Martingale: double on win\nD'Alembert: +1/-1 unit\nKelly: fraction of current bankroll"
      },
      {
        "title": "Step 4: Calculate statistics",
        "body": "For each strategy:\n\nWin Rate: wins / total bets\nVariance: σ² of per-bet profit\nMax Drawdown: largest peak-to-trough decline\nSharpe Ratio: mean return / σ (risk-adjusted)\nExpected Value: average profit per bet\nBankroll curve: plot balance over time"
      },
      {
        "title": "Step 5: Verify all bets",
        "body": "curl https://agent.rollhub.com/api/v1/verify/<bet_id>\n\nEvery bet is provably fair — verify the SHA3-384 hash chain."
      },
      {
        "title": "Step 6: Generate report",
        "body": "Use the report template to generate a markdown comparison report."
      },
      {
        "title": "Quick Run",
        "body": "bash scripts/analyst.sh coinflip 100 1  # game, rounds, bet_amount"
      },
      {
        "title": "Statistical Metrics Explained",
        "body": "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"
      },
      {
        "title": "Keywords",
        "body": "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."
      }
    ],
    "body": "Gambling Analyst\n\nResearch 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.\n\nOverview\n\nThis skill lets you research, analyze, and backtest gambling strategies on Agent Casino using real micro-bets with provably fair verification.\n\nAPI Base\nhttps://agent.rollhub.com/api/v1\n\nRegistration\ncurl -X POST https://agent.rollhub.com/api/v1/register \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"name\": \"analyst-agent\", \"ref\": \"ref_27fcab61\"}'\n\n5 Built-in Strategies\n1. Flat Bet\n\nBet the same amount every round. Baseline strategy.\n\nBet: constant B\nEV per round: B × (RTP - 1)\n2. Martingale\n\nDouble bet after each loss, reset after win.\n\nStart: B, after loss: 2×B, after win: reset to B\nRisk: exponential bankroll requirement\nGoal: recover all losses with one win\n3. Anti-Martingale (Paroli)\n\nDouble bet after each win, reset after loss.\n\nCaptures winning streaks\nLower risk than Martingale\n4. D'Alembert\n\nIncrease bet by 1 unit after loss, decrease by 1 after win.\n\nSmoother progression than Martingale\nLower variance\n5. Kelly Criterion\n\nBet optimal fraction of bankroll: f* = (bp - q) / b\n\nb = odds, p = win probability, q = 1 - p\nMathematically optimal for bankroll growth\nRequires edge (positive EV)\n\nSee references/strategies.md for detailed math.\n\nRunning a Backtest\nStep 1: Place micro-bets\n# Place 100 coinflip bets at minimum amount\nfor i in $(seq 1 100); do\n  curl -s -X POST https://agent.rollhub.com/api/v1/bet \\\n    -H \"Authorization: Bearer YOUR_API_KEY\" \\\n    -H \"Content-Type: application/json\" \\\n    -d '{\"game\": \"coinflip\", \"amount\": 1, \"choice\": \"heads\"}'\n  echo \"\"\ndone\n\nStep 2: Track results\n\nFor each bet, record:\n\nbet_id, amount, won, payout, result\nRunning balance, drawdown, cumulative profit\nStep 3: Apply strategy logic\n\nSimulate each strategy against the same sequence of outcomes:\n\nFlat Bet: constant wager\nMartingale: double on loss\nAnti-Martingale: double on win\nD'Alembert: +1/-1 unit\nKelly: fraction of current bankroll\nStep 4: Calculate statistics\n\nFor each strategy:\n\nWin Rate: wins / total bets\nVariance: σ² of per-bet profit\nMax Drawdown: largest peak-to-trough decline\nSharpe Ratio: mean return / σ (risk-adjusted)\nExpected Value: average profit per bet\nBankroll curve: plot balance over time\nStep 5: Verify all bets\ncurl https://agent.rollhub.com/api/v1/verify/<bet_id>\n\n\nEvery bet is provably fair — verify the SHA3-384 hash chain.\n\nStep 6: Generate report\n\nUse the report template to generate a markdown comparison report.\n\nQuick Run\nbash scripts/analyst.sh coinflip 100 1  # game, rounds, bet_amount\n\nStatistical Metrics Explained\nMetric\tFormula\tMeaning\nWin Rate\tW/N\tFraction of bets won\nEV\tΣ(profit)/N\tAverage profit per bet\nVariance\tΣ(xi-μ)²/N\tSpread of outcomes\nStd Dev\t√Variance\tVolatility\nSharpe\tEV/StdDev\tRisk-adjusted return\nMax Drawdown\tmax(peak-trough)\tWorst losing streak impact\nRTP\tTotal payouts / Total wagered\tReturn to player\nKeywords\n\nGambling 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": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/rollhub-dev/rollhub-analyst",
    "publisherUrl": "https://clawhub.ai/rollhub-dev/rollhub-analyst",
    "owner": "rollhub-dev",
    "version": "1.0.0",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "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"
  }
}