{
  "schemaVersion": "1.0",
  "item": {
    "slug": "the-flip",
    "name": "THE FLIP",
    "source": "tencent",
    "type": "skill",
    "category": "内容创作",
    "sourceUrl": "https://clawhub.ai/maurodelazeri/the-flip",
    "canonicalUrl": "https://clawhub.ai/maurodelazeri/the-flip",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadMode": "redirect",
    "downloadUrl": "/downloads/the-flip",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=the-flip",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "installMethod": "Manual import",
    "extraction": "Extract archive",
    "prerequisites": [
      "OpenClaw"
    ],
    "packageFormat": "ZIP package",
    "includedAssets": [
      "Anchor.toml",
      "Cargo.toml",
      "README.md",
      "SKILL.md",
      "app/demo.mjs",
      "idl/the_flip.json"
    ],
    "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. Then review README.md for any prerequisites, environment setup, or post-install checks. 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. Then review README.md for any prerequisites, environment setup, or post-install checks. 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/the-flip"
    },
    "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/the-flip",
    "agentPageUrl": "https://openagent3.xyz/skills/the-flip/agent",
    "manifestUrl": "https://openagent3.xyz/skills/the-flip/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/the-flip/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. Then review README.md for any prerequisites, environment setup, or post-install checks. 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. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run."
      }
    ]
  },
  "documentation": {
    "source": "clawhub",
    "primaryDoc": "SKILL.md",
    "sections": [
      {
        "title": "🎰 THE FLIP",
        "body": "$1 USDC. Pick 20. 20 coins flip at once. Match 14 to win the jackpot.\n\nNo entry windows. The game never stops. Enter anytime with 20 predictions. Each round flips all 20 coins at once. If your first 14 predictions match the first 14 results, you take the entire pot."
      },
      {
        "title": "1. Check game status",
        "body": "node app/demo.mjs status\n\nReturns: jackpot amount, current round, total entries, last round's 20 results."
      },
      {
        "title": "2. Enter the game",
        "body": "node app/demo.mjs enter HHTHHTTHHTHHTHHTHHTH\n# Or with a specific wallet:\nnode app/demo.mjs enter HHTHHTTHHTHHTHHTHHTH ~/.config/solana/id.json\n\nPredictions: exactly 20 characters, each H (heads) or T (tails)\nAll 20 coins flip at once when the next round is triggered\nFirst 14 of your predictions must match the first 14 results to win\nCost: 1 USDC\nYour ticket is for the current round"
      },
      {
        "title": "3. Check your ticket",
        "body": "node app/demo.mjs ticket YOUR_WALLET_ADDRESS\n# Or with a specific round:\nnode app/demo.mjs ticket YOUR_WALLET_ADDRESS 5\n\nReturns: your 20 predictions, round results (if flipped), status (WAITING/ELIMINATED/WINNER)."
      },
      {
        "title": "4. Claim jackpot (if first 14 match)",
        "body": "node app/demo.mjs claim YOUR_WALLET_ADDRESS ROUND_NUMBER\n\nOnly works if your first 14 predictions match the round's first 14 results."
      },
      {
        "title": "5. Flip the round (anyone can do this)",
        "body": "node app/demo.mjs flip\n\nFlips all 20 coins at once for the current round. Permissionless — anyone can call. 12-hour cooldown between rounds (on-chain enforced)."
      },
      {
        "title": "API (for agents)",
        "body": "Base URL: https://the-flip.vercel.app"
      },
      {
        "title": "GET /api/game",
        "body": "{\n  \"phase\": \"active\",\n  \"jackpot\": 5.25,\n  \"currentRound\": 42,\n  \"totalEntries\": 100,\n  \"totalWins\": 2,\n  \"lastRoundResults\": [\"H\", \"T\", \"H\", \"H\", \"T\", \"H\", \"T\", \"T\", \"H\", \"H\", \"T\", \"H\", \"H\", \"T\", \"H\", \"T\", \"T\", \"H\", \"H\", \"T\"],\n  \"lastFlipAt\": 1706400000,\n  \"nextFlipAt\": 1706443200,\n  \"flipReady\": false\n}"
      },
      {
        "title": "GET /api/ticket?wallet=ADDRESS&round=5",
        "body": "{\n  \"found\": true,\n  \"status\": \"ELIMINATED\",\n  \"round\": 5,\n  \"flipped\": true,\n  \"survived\": false,\n  \"predictions\": [\"H\", \"T\", \"H\", ...],\n  \"results\": [\"H\", \"T\", \"T\", ...],\n  \"matches\": 12,\n  \"summary\": \"Eliminated — matched 12 of 14 survival flips at round #5.\"\n}"
      },
      {
        "title": "Setup (first time only)",
        "body": "# Install skill\nclawhub install the-flip\ncd the-flip && npm install\n\n# Solana wallet (if you don't have one)\nsh -c \"$(curl -sSfL https://release.anza.xyz/stable/install)\"\nexport PATH=\"$HOME/.local/share/solana/install/active_release/bin:$PATH\"\nsolana-keygen new --no-bip39-passphrase\nsolana config set --url devnet\nsolana airdrop 1 --url devnet\n\n# Get devnet USDC\n# Option A: https://faucet.circle.com → Solana → Devnet → paste your address\n# Option B: Post your wallet on our Moltbook thread"
      },
      {
        "title": "Quick Reference",
        "body": "Entry fee1 USDC (devnet)Predictions20 characters — H or THow it worksAll 20 coins flip at once per roundSurvivalFirst 14 predictions must match the first 14 resultsJackpot99% of all entries. Winner takes all. Pool resets after win.Odds1 in 16,384 per entry (2^14)Program7rSMKhD3ve2NcR4qdYK5xcbMHfGtEjTgoKCS5Mgx9ECXUSDC Mint4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDUNetworkSolana devnetFlip cooldown12 hours between rounds (on-chain enforced)VaultPDA — no private key, can't be ruggedDashboardthe-flip.vercel.app"
      },
      {
        "title": "Source",
        "body": "https://github.com/maurodelazeri/the-flip-publish\n\nAll game logic is on-chain. The vault is a PDA — no private key holds funds. Claim is atomic (verify + pay in one tx)."
      }
    ],
    "body": "🎰 THE FLIP\n\n$1 USDC. Pick 20. 20 coins flip at once. Match 14 to win the jackpot.\n\nNo entry windows. The game never stops. Enter anytime with 20 predictions. Each round flips all 20 coins at once. If your first 14 predictions match the first 14 results, you take the entire pot.\n\nCommands\n1. Check game status\nnode app/demo.mjs status\n\n\nReturns: jackpot amount, current round, total entries, last round's 20 results.\n\n2. Enter the game\nnode app/demo.mjs enter HHTHHTTHHTHHTHHTHHTH\n# Or with a specific wallet:\nnode app/demo.mjs enter HHTHHTTHHTHHTHHTHHTH ~/.config/solana/id.json\n\nPredictions: exactly 20 characters, each H (heads) or T (tails)\nAll 20 coins flip at once when the next round is triggered\nFirst 14 of your predictions must match the first 14 results to win\nCost: 1 USDC\nYour ticket is for the current round\n3. Check your ticket\nnode app/demo.mjs ticket YOUR_WALLET_ADDRESS\n# Or with a specific round:\nnode app/demo.mjs ticket YOUR_WALLET_ADDRESS 5\n\n\nReturns: your 20 predictions, round results (if flipped), status (WAITING/ELIMINATED/WINNER).\n\n4. Claim jackpot (if first 14 match)\nnode app/demo.mjs claim YOUR_WALLET_ADDRESS ROUND_NUMBER\n\n\nOnly works if your first 14 predictions match the round's first 14 results.\n\n5. Flip the round (anyone can do this)\nnode app/demo.mjs flip\n\n\nFlips all 20 coins at once for the current round. Permissionless — anyone can call. 12-hour cooldown between rounds (on-chain enforced).\n\nAPI (for agents)\n\nBase URL: https://the-flip.vercel.app\n\nGET /api/game\n{\n  \"phase\": \"active\",\n  \"jackpot\": 5.25,\n  \"currentRound\": 42,\n  \"totalEntries\": 100,\n  \"totalWins\": 2,\n  \"lastRoundResults\": [\"H\", \"T\", \"H\", \"H\", \"T\", \"H\", \"T\", \"T\", \"H\", \"H\", \"T\", \"H\", \"H\", \"T\", \"H\", \"T\", \"T\", \"H\", \"H\", \"T\"],\n  \"lastFlipAt\": 1706400000,\n  \"nextFlipAt\": 1706443200,\n  \"flipReady\": false\n}\n\nGET /api/ticket?wallet=ADDRESS&round=5\n{\n  \"found\": true,\n  \"status\": \"ELIMINATED\",\n  \"round\": 5,\n  \"flipped\": true,\n  \"survived\": false,\n  \"predictions\": [\"H\", \"T\", \"H\", ...],\n  \"results\": [\"H\", \"T\", \"T\", ...],\n  \"matches\": 12,\n  \"summary\": \"Eliminated — matched 12 of 14 survival flips at round #5.\"\n}\n\nSetup (first time only)\n# Install skill\nclawhub install the-flip\ncd the-flip && npm install\n\n# Solana wallet (if you don't have one)\nsh -c \"$(curl -sSfL https://release.anza.xyz/stable/install)\"\nexport PATH=\"$HOME/.local/share/solana/install/active_release/bin:$PATH\"\nsolana-keygen new --no-bip39-passphrase\nsolana config set --url devnet\nsolana airdrop 1 --url devnet\n\n# Get devnet USDC\n# Option A: https://faucet.circle.com → Solana → Devnet → paste your address\n# Option B: Post your wallet on our Moltbook thread\n\nQuick Reference\n\t\nEntry fee\t1 USDC (devnet)\nPredictions\t20 characters — H or T\nHow it works\tAll 20 coins flip at once per round\nSurvival\tFirst 14 predictions must match the first 14 results\nJackpot\t99% of all entries. Winner takes all. Pool resets after win.\nOdds\t1 in 16,384 per entry (2^14)\nProgram\t7rSMKhD3ve2NcR4qdYK5xcbMHfGtEjTgoKCS5Mgx9ECX\nUSDC Mint\t4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU\nNetwork\tSolana devnet\nFlip cooldown\t12 hours between rounds (on-chain enforced)\nVault\tPDA — no private key, can't be rugged\nDashboard\tthe-flip.vercel.app\nSource\n\nhttps://github.com/maurodelazeri/the-flip-publish\n\nAll game logic is on-chain. The vault is a PDA — no private key holds funds. Claim is atomic (verify + pay in one tx)."
  },
  "trust": {
    "sourceLabel": "tencent",
    "provenanceUrl": "https://clawhub.ai/maurodelazeri/the-flip",
    "publisherUrl": "https://clawhub.ai/maurodelazeri/the-flip",
    "owner": "maurodelazeri",
    "version": "1.0.8",
    "license": null,
    "verificationStatus": "Indexed source record"
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/the-flip",
    "downloadUrl": "https://openagent3.xyz/downloads/the-flip",
    "agentUrl": "https://openagent3.xyz/skills/the-flip/agent",
    "manifestUrl": "https://openagent3.xyz/skills/the-flip/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/the-flip/agent.md"
  }
}