← Back to Skills Marketplace
The Flip
by
bedesta5050
· GitHub ↗
· v0.1.0
· MIT-0
119
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install the-flip-publish-2
Description
$1 USDC entry. Pick 20 predictions. All 20 coins flip at once each round. Match the first 14 to win the entire jackpot. Live on Solana devnet.
Usage Guidance
This repository mostly implements the advertised Solana devnet coin‑flip game, but several red flags mean you should proceed carefully: 1) Do not run remote curl | sh installers from unknown domains — use the official Solana installer or install through trusted channels. 2) Create and use an isolated devnet-only keypair (do not use a mainnet wallet or your primary keys). The demo script will read ~/.config/solana/id.json or ANCHOR_WALLET by default — be explicit about which key you pass. 3) Avoid posting your wallet publicly; use an official faucet or a wallet you control for devnet funds. 4) Expect the demo to require Anchor/IDL files; the code references a different IDL path than provided — you may need to run anchor build or copy the IDL before running commands. 5) Review the on‑chain program address in a block explorer and, if you plan to send value (even devnet tokens), audit the Rust program logic (included) to verify payout/withdraw rules. If you are not comfortable with these steps, test in an isolated environment (VM or throwaway account) and don’t use real/mainnet assets.
Capability Analysis
Type: OpenClaw Skill
Name: the-flip-publish-2
Version: 0.1.0
The skill bundle is a complete and transparent implementation of a coin-flip gambling game on the Solana devnet. It includes a Rust-based smart contract (program/src/lib.rs), a Node.js CLI tool (app/demo.mjs) for game interaction, and a Next.js web dashboard. The code uses standard blockchain libraries (@solana/web3.js and Anchor) and follows expected patterns for Solana development. While the randomness generation in the smart contract relies on on-chain variables (slot and timestamp) which are technically predictable by validators, this is a common design limitation in simple blockchain games rather than an intentional exploit. The CLI tool accesses the standard Solana config path (~/.config/solana/id.json) to sign transactions, which is necessary for the stated functionality. No evidence of data exfiltration, obfuscation, or malicious prompt injection was found.
Capability Assessment
Purpose & Capability
The name/description (a Solana devnet coin-flip game) matches the included code and CLI helper (node app/demo.mjs). Requiring 'node' is appropriate for the JS helper. However the runtime actually requires the Solana toolchain / wallet files and Anchor artifacts (not declared in metadata), so the declared requirements are incomplete.
Instruction Scope
SKILL.md instructs commands that will read the user's Solana keypair (~/.config/solana/id.json) and sign transactions (expected for on‑chain interaction) — that is legitimate for this purpose but sensitive. SKILL.md also tells users to run a curl | sh installer from release.anza.xyz and to post their wallet publicly to receive devnet USDC — both are risky/unnecessary. Additionally, the demo script expects an IDL at ../target/idl/the_flip.json but the repository provides idl/the_flip.json (path mismatch), so the provided runtime instructions may fail or prompt users to run additional build steps not documented.
Install Mechanism
There is no formal install spec, but SKILL.md tells users to run 'npm install' (normal) and to install the Solana CLI via an external curl script hosted at release.anza.xyz (not the official solana release domain). Directing users to execute an opaque remote installer script is a high-risk practice and disproportionate to the stated purpose. The NPM dependencies themselves are standard for an Anchor/Solana JS client.
Credentials
The skill declares no required environment variables, which is consistent with the registry metadata, but the runtime code will read a local keypair file (default ~/.config/solana/id.json or ANCHOR_WALLET) and will sign transactions using that key. Reading a local wallet file is necessary for on‑chain actions but is sensitive — the SKILL.md should explicitly warn and require an isolated/devnet keypair. The request to publicly post your wallet for faucets is poor security hygiene.
Persistence & Privilege
The skill does not request 'always: true', does not claim elevated platform privileges, and does not attempt to modify other skills or global agent config. Autonomous invocation is allowed (default) but not combined with other high‑risk behaviors here.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install the-flip-publish-2 - After installation, invoke the skill by name or use
/the-flip-publish-2 - Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.0
- Initial release of THE FLIP skill on Solana devnet.
- $1 USDC entry: Pick 20 coin flip predictions; match the first 14 to win the jackpot.
- Command-line and API support to check game status, enter, claim, and monitor tickets.
- Permissionless flip mechanism with a 12-hour on-chain enforced cooldown.
- Jackpot pools all entry fees (99%) and resets upon a win; vault is a PDA (no private key).
- Full documentation for wallet setup, API endpoints, and skill usage provided.
Metadata
Frequently Asked Questions
What is The Flip?
$1 USDC entry. Pick 20 predictions. All 20 coins flip at once each round. Match the first 14 to win the entire jackpot. Live on Solana devnet. It is an AI Agent Skill for Claude Code / OpenClaw, with 119 downloads so far.
How do I install The Flip?
Run "/install the-flip-publish-2" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is The Flip free?
Yes, The Flip is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does The Flip support?
The Flip is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created The Flip?
It is built and maintained by bedesta5050 (@bedesta5050); the current version is v0.1.0.
More Skills