← 返回 Skills 市场
bedesta5050

The Flip

作者 bedesta5050 · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ⚠ suspicious
119
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install the-flip-publish-2
功能描述
$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.
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install the-flip-publish-2
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /the-flip-publish-2 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
Slug the-flip-publish-2
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

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. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 119 次。

如何安装 The Flip?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install the-flip-publish-2」即可一键安装,无需额外配置。

The Flip 是免费的吗?

是的,The Flip 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

The Flip 支持哪些平台?

The Flip 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 The Flip?

由 bedesta5050(@bedesta5050)开发并维护,当前版本 v0.1.0。

💬 留言讨论