← 返回 Skills 市场
samj12

Prediction Market Creator

作者 SamJ12 · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
770
总下载
2
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install betbud-prediction-market-creation
功能描述
Automatically creates unique prediction markets on betbud.live by analyzing trending crypto Twitter topics with Claude AI and fetching professional images.
使用说明 (SKILL.md)

Prediction Market Creator

An AI agent that automatically creates prediction markets on betbud.live by analyzing trending crypto Twitter content.

What it does

  1. Fetches trending content from premium crypto Twitter accounts (WatcherGuru, tier10k, CoinDesk, etc.)
  2. Analyzes with Claude AI to find debatable, time-bound topics
  3. Avoids duplicates using local cache of recent predictions
  4. Fetches professional images from Unsplash for each market
  5. Creates blockchain markets on Base Sepolia testnet
  6. Registers to betbud.live automatically via Bubble.io API workflow

Features

  • ✅ Fetches from 5+ premium crypto Twitter accounts
  • ✅ Uses Claude Sonnet 4 for intelligent topic selection
  • ✅ Professional images from Unsplash
  • ✅ Deduplication cache (last 20 predictions)
  • ✅ Creates markets on blockchain + registers to betbud.live

Requirements

You need API keys for:

  • Twitter API (twitterapi.io)
  • Anthropic Claude API
  • Unsplash API
  • Base Sepolia RPC URL
  • Ethereum wallet private key

Setup

  1. Clone the repo
  2. Create .env file with your API keys (see .env.example)
  3. Install dependencies: pip install -r requirements.txt
  4. Run: python skill.py

How it works

  1. Fetches 15+ tweets from premium accounts + trending topics
  2. Claude analyzes and picks the best debatable topic
  3. Gets a professional image from Unsplash
  4. Creates market on blockchain (Base Sepolia)
  5. Registers to betbud.live via API workflow
  6. Saves to cache to avoid duplicates

Output

Creates prediction markets like:

  • "Will Bitcoin reach $100k by March 2026?"
  • "Will Ethereum ETF approval happen by February 2026?"
  • Each with professional images, clear resolution criteria, and 7-14 day duration

Safety

  • No hardcoded API keys in code
  • Uses Bubble.io backend workflow (no exposed credentials)
  • All sensitive data in .env file

---

### **📄 Create `.env.example`**

Create this file to show what keys are needed:

TWITTERAPI_IO_KEY=your_twitter_api_key_here ANTHROPIC_API_KEY=your_anthropic_key_here RPC_URL=https://sepolia.base.org PRIVATE_KEY=your_wallet_private_key_here UNSPLASH_ACCESS_KEY=your_unsplash_access_key_here


---

### **📄 Create/Update `requirements.txt`**

anthropic==0.79.0 web3==7.14.1 python-dotenv==1.0.0 requests==2.32.3


---

## **STEP 2: PUBLISH TO CLAWHUB**

Go to: https://clawhub.com/publish

### **Fill out the form:**

**1. Skill Name:**

Prediction Market Creator


**2. Short Description (one line):**

AI agent that creates prediction markets on betbud.live by analyzing trending crypto Twitter


**3. Long Description:**

This AI agent automatically monitors trending crypto Twitter content from premium accounts (WatcherGuru, tier10k, CoinDesk, etc.), analyzes it with Claude AI to find the most debatable topics, and creates prediction markets on betbud.live.

Features:

  • Fetches diverse content from 5+ premium Twitter accounts
  • Uses Claude Sonnet 4 for intelligent topic selection
  • Avoids duplicates with local caching
  • Professional images from Unsplash
  • Creates blockchain markets on Base Sepolia
  • Automatically registers to betbud.live

Perfect for running 24/7 to keep your prediction market platform fresh with relevant, timely topics.


**4. GitHub Repository URL:**

https://github.com/YOUR_USERNAME/YOUR_REPO_NAME


**5. Category:**

Social Media & Content

or

Blockchain & Web3


**6. Tags (add these):**

prediction-markets, crypto, twitter, blockchain, ai-agent, automation


**7. Required API Keys:**
List each key and where to get it:

**8. Installation Instructions:**
  1. Clone the repository
  2. Install dependencies: pip install -r requirements.txt
  3. Create .env file with your API keys (see .env.example)
  4. Run: python skill.py

**9. Usage Instructions:**

Run the skill with: python skill.py

The agent will:

  1. Fetch trending crypto content
  2. Analyze and pick a unique topic
  3. Create a blockchain market
  4. Register to betbud.live
  5. Save to cache to avoid duplicates

Run it on a schedule (cron job) to continuously create new markets.


**10. Demo/Screenshot:**
Upload a screenshot showing:
- Terminal output of successful run
- Or a screenshot of created market on betbud.live

**11. License:**

MIT

安全使用建议
This skill is functionally coherent but has important risks and a transparency gap. Before installing: (1) do not provide your main wallet private key — test with a throwaway/testnet wallet with minimal funds only; (2) verify the hardcoded contract address and the contract's source/behavior (you will spend value when openNewMarket is called); (3) confirm the betbud.live / Bubble workflow endpoint is legitimate and that you are okay with the skill posting market data (including your wallet address and question text) to that endpoint; (4) confirm the third-party Twitter API service (twitterapi.io) is trustworthy and matches your account/limits; (5) ask the publisher to fix the registry metadata to list required env vars and to publish a repository/homepage for review; (6) review the code yourself or have a developer audit it to ensure no hidden exfiltration of secrets occurs (the code currently appears to use the secrets only for intended API/tx calls, but providing a private key to third-party code is inherently risky). If you're not comfortable with these risks, do not install or run this skill with any real wallet/private keys.
功能分析
Type: OpenClaw Skill Name: betbud-prediction-market-creation Version: 1.0.0 The skill is classified as suspicious due to the direct handling and use of an Ethereum wallet private key (`PRIVATE_KEY`) in `skill.py` for signing blockchain transactions. While this is explicitly required for the skill's stated purpose of creating blockchain markets, it introduces a significant operational security vulnerability. A compromised agent environment could lead to the theft or misuse of this sensitive credential. There is no evidence of intentional malicious behavior such as data exfiltration, persistence, or unauthorized remote control.
能力评估
Purpose & Capability
The skill's name/description (create prediction markets from crypto Twitter using Claude and Unsplash) align with the included code and SKILL.md: it fetches tweets, calls Anthropic, fetches Unsplash images, signs transactions on a Base Sepolia contract, and posts to betbud.live. However, the registry metadata declares no required environment variables while both SKILL.md and skill.py require multiple sensitive API keys (Twitter, Anthropic, Unsplash), RPC_URL and a PRIVATE_KEY — this metadata omission is an incoherence.
Instruction Scope
SKILL.md and skill.py limit actions to fetching tweets, calling Claude, obtaining images, creating a blockchain market, registering via a Bubble.io workflow, and maintaining a local cache. The runtime does read/write a local cache file (recent_predictions.json) and loads secrets from .env. It does not appear to instruct reading arbitrary system files. One behavior to verify: the Bubble workflow endpoint is used without auth (code comments claim it's public) — confirm that posting bot-created markets to that endpoint is intended and safe.
Install Mechanism
No install spec is provided (instruction-only plus Python files and requirements). The repo uses standard Python packages listed in requirements.txt; nothing in the install surface (no remote arbitrary downloads) raises additional flags.
Credentials
The skill requires multiple sensitive environment values (TWITTERAPI_IO_KEY, ANTHROPIC_API_KEY, UNSPLASH_ACCESS_KEY, RPC_URL, and an Ethereum PRIVATE_KEY). Those map to the declared runtime behavior (API calls, blockchain transactions), so they are functional requirements — but PRIVATE_KEY is highly sensitive: the skill will sign on-chain transactions using that key. The registry metadata not declaring these env vars is a mismatch and reduces transparency.
Persistence & Privilege
always:false (normal). The skill writes a local cache file (recent_predictions.json) and will sign and broadcast blockchain transactions using the provided PRIVATE_KEY and RPC_URL. Autonomous invocation is permitted by default; combined with access to a private key this increases blast radius if keys are compromised — use a wallet with limited funds/permissions for testing.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install betbud-prediction-market-creation
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /betbud-prediction-market-creation 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release - AI agent that creates prediction markets on betbud.live by analyzing crypto Twitter
元数据
Slug betbud-prediction-market-creation
版本 1.0.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Prediction Market Creator 是什么?

Automatically creates unique prediction markets on betbud.live by analyzing trending crypto Twitter topics with Claude AI and fetching professional images. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 770 次。

如何安装 Prediction Market Creator?

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

Prediction Market Creator 是免费的吗?

是的,Prediction Market Creator 完全免费(开源免费),可自由下载、安装和使用。

Prediction Market Creator 支持哪些平台?

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

谁开发了 Prediction Market Creator?

由 SamJ12(@samj12)开发并维护,当前版本 v1.0.0。

💬 留言讨论