← Back to Skills Marketplace
THE FLIP
by
maurodelazeri
· GitHub ↗
· v1.0.8
3312
Downloads
1
Stars
2
Active Installs
18
Versions
Install in OpenClaw
/install the-flip
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 genuinely implements a Solana devnet coin-flip game and is internally coherent, but it requires access to your Solana keypair to send transactions (enter/flip/claim). Before using: (1) Do NOT post or upload your private key — only share your public address. (2) Inspect ~/.config/solana/id.json (or the file you pass) — it contains your private key; only use a throwaway devnet wallet with minimal funds. (3) Avoid running curl installers from unknown domains (the SKILL.md points to release.anza.xyz); prefer official Solana install instructions (official docs). (4) If you only want to query state, use the provided HTTP API or node app status/ticket commands without supplying a keyfile. (5) Verify the on-chain program ID and contract behavior on Solana Explorer and consider reviewing the Rust program itself (included) before calling any entry/claim/withdraw functions. If you want a safer test, create a new devnet-only wallet and fund it with airdrops rather than reusing keys that hold real assets.
Capability Analysis
Type: OpenClaw Skill
Name: the-flip
Version: 1.0.8
The skill bundle is benign. It implements a Solana devnet game, 'THE FLIP', with clear instructions and code. High-risk capabilities like reading wallet files (`~/.config/solana/id.json` in `app/demo.mjs`) and using `curl | sh` for Solana CLI installation (in `SKILL.md`) are standard practices for Solana development and are used for their stated, legitimate purposes without any indication of malicious intent, data exfiltration, or prompt injection attempts against the agent.
Capability Assessment
Purpose & Capability
Name/description (a Solana devnet coin-flip) are consistent with the included Rust program, IDL, and Node demo script. Required binary (node) aligns with the JS demo. Dependencies in package.json match expected Solana/Anchor tooling.
Instruction Scope
SKILL.md and app/demo.mjs instruct the agent/user to read a local keyfile (~/.config/solana/id.json) or use ANCHOR_WALLET for signing transactions; the demo will load and use private key material to send on-chain transactions (enter/flip/claim). The README suggests posting your wallet on a public forum to receive devnet USDC (ambiguous and risky). The SKILL.md also instructs running a remote installer via curl from release.anza.xyz — an unverified host. These instructions expand scope beyond just 'querying game state' to reading local secrets and running external installers.
Install Mechanism
There is no automated install spec (instruction-only), lowering automatic risk. However SKILL.md recommends installing Solana CLI via a curl command pointed at release.anza.xyz (not an official Solana domain). That is a risky manual install recommendation and could supply arbitrary code if followed.
Credentials
The skill declares no required env vars, but the demo code reads process.env.ANCHOR_WALLET and defaults to ~/.config/solana/id.json to load a Keypair (private key). Accessing a local keyfile is necessary to sign transactions, but this is sensitive and not explicitly declared in requires.env. The README suggestion to post your wallet publicly is ambiguous (could lead users to expose private keys if they misunderstand).
Persistence & Privilege
Skill is not always-on and does not request special platform privileges. It does not modify other skills or system-wide agent settings. Autonomous invocation is allowed (default) but combined with the above concerns increases risk if an agent were to run enter/claim using local keys without user oversight.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install the-flip - After installation, invoke the skill by name or use
/the-flip - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.8
Round-based model: 12h cooldown, permissionless flip, self-service claim
v2.1.2
Improve SKILL.md for AI agents: clear commands, API docs
v2.1.1
Fix interface components for continuous game model
v2.1.0
- Major gameplay change: Game is now continuous, allowing entries at any time instead of in rounds.
- Jackpot structure updated: Winner takes the entire pot; jackpot resets after a win.
- Entry command simplified to always use enter (not play).
- Removed claim and collect commands; claiming is now atomic and permissionless.
- Documentation and examples updated for new rules and mechanics.
v3.0.2
Clarify round flow and winner mechanics in docs
v3.0.1
Clean up docs
v3.0.0
Eliminate O(N) cranking: claim-based settlement. Winners self-serve via claim+collect. Losers check off-chain. 1M players = ~136 txs instead of 2M.
v2.0.1
Document enriched ticket API response for agents
v2.0.0
Major update: 14 flips over 7 days (was 20 flips). One flip every 12h. New API endpoints for agent queries. Odds: 1/16,384. Deployed and migrated on devnet.
v1.0.7
Add on-chain data querying guide — PDA derivation, account structures, Anchor + raw RPC examples
v1.0.6
Fix build command (--tools-version v1.52), add Strategy section
v1.1.0
On-chain round history: RoundResult PDA stores flip results, entries, jackpot, winners per round. New history command.
v1.0.5
Rewrite README and SKILL.md — play-first narrative, cleaner structure, game flow diagram
v1.0.4
README rewrite: play-first hook, growing jackpot narrative
v1.0.3
Add operate, crank-all, settle-all commands for autonomous round operation
v1.0.2
Fix README: add play command docs, add close-entries, complete command listing
v1.0.1
Add clawhub install instructions, USDC funding option for agents
v1.0.0
Initial release — on-chain pari-mutuel coin flip game on Solana devnet using USDC
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 3312 downloads so far.
How do I install THE FLIP?
Run "/install the-flip" 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 (open-source). 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 maurodelazeri (@maurodelazeri); the current version is v1.0.8.
More Skills