/predictfun
Predict.fun prediction market trading (BNB Chain)
$ npx -y skills add alsk1992/CloddsBot --skill predictfun --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition โ
- You can call itInvoke it directly when you want it.
- Slash command
/predictfun
Context preview
The summary Claude sees to decide when to auto-load this skill.
Predict.fun prediction market trading (BNB Chain)
SKILL.md
predictfun.SKILL.mdname: predictfun
description: "Predict.fun prediction market trading (BNB Chain)"
emoji: "๐ฏ"
commands:
- /pf
gates:
envs:
- PREDICTFUN_API_KEYPredict.fun
Full integration with Predict.fun, a BNB Chain prediction market with binary and categorical outcomes.
Quick Start
# Set credentials
export PREDICTFUN_API_KEY="your-api-key"
export PREDICTFUN_PRIVATE_KEY="0x..."
# Search markets
/pf markets crypto
# Check balance
/pf balance
# Place order
/pf buy <marketId> YES 0.55 100
Commands
Market Data
| Command | Description | |---------|-------------| | `/pf markets [query]` | Search markets | | `/pf market <id>` | Get market details | | `/pf book <marketId>` | Show orderbook |
Trading
| Command | Description | |---------|-------------| | `/pf buy <marketId> <outcome> <price> <size>` | Place buy order | | `/pf sell <marketId> <outcome> <price> <size>` | Place sell order | | `/pf cancel <orderId>` | Cancel order | | `/pf cancelall` | Cancel all orders | | `/pf orders` | List open orders |
**Examples:**
/pf buy market-123 YES 0.55 100 # Buy YES at 55c, 100 shares
/pf sell market-123 NO 0.40 50 # Sell NO at 40c, 50 shares
/pf cancel order-abc # Cancel specific order
Account
| Command | Description | |---------|-------------| | `/pf balance` | Check USDT balance | | `/pf positions` | View open positions | | `/pf redeem <conditionId>` | Redeem settled positions | | `/pf merge <conditionId> <amount>` | Merge outcome tokens |
Configuration
# Required for market data
export PREDICTFUN_API_KEY="your-api-key"
# Required for trading
export PREDICTFUN_PRIVATE_KEY="0x..."
Or in `~/.clodds/clodds.json`:
{
"trading": {
"predictfun": {
"apiKey": "${PREDICTFUN_API_KEY}",
"privateKey": "${PREDICTFUN_PRIVATE_KEY}"
}
}
}Features
- **BNB Chain** - Fast, low-cost transactions (chainId 56)
- **Binary & Categorical** - Multiple market types
- **Order Signing** - Secure wallet signatures via SDK
- **Position Management** - Track & redeem positions
- **Merge/Split** - Convert between collateral and outcome tokens
Trading Notes
1. **Index Sets**: Binary markets use `indexSet = 1` for YES, `indexSet = 2` for NO 2. **Merging**: Requires equal amounts of all outcome tokens 3. **Fees**: Check platform for current fee structure
Resources
- [Predict.fun App](https://predict.fun)
- [BscScan](https://bscscan.com)
Read more
name: predictfun
description: "Predict.fun prediction market trading (BNB Chain)"
emoji: "๐ฏ"
commands:
- /pf
gates:
envs:
- PREDICTFUN_API_KEYPredict.fun
Full integration with Predict.fun, a BNB Chain prediction market with binary and categorical outcomes.
Quick Start
# Set credentials export PREDICTFUN_API_KEY="your-api-key" export PREDICTFUN_PRIVATE_KEY="0x..." # Search markets /pf markets crypto # Check balance /pf balance # Place order /pf buy <marketId> YES 0.55 100
Commands
Market Data
| Command | Description | |---------|-------------| | `/pf markets [query]` | Search markets | | `/pf market <id>` | Get market details | | `/pf book <marketId>` | Show orderbook |
Trading
| Command | Description | |---------|-------------| | `/pf buy <marketId> <outcome> <price> <size>` | Place buy order | | `/pf sell <marketId> <outcome> <price> <size>` | Place sell order | | `/pf cancel <orderId>` | Cancel order | | `/pf cancelall` | Cancel all orders | | `/pf orders` | List open orders |
**Examples:**
/pf buy market-123 YES 0.55 100 # Buy YES at 55c, 100 shares /pf sell market-123 NO 0.40 50 # Sell NO at 40c, 50 shares /pf cancel order-abc # Cancel specific order
Account
| Command | Description | |---------|-------------| | `/pf balance` | Check USDT balance | | `/pf positions` | View open positions | | `/pf redeem <conditionId>` | Redeem settled positions | | `/pf merge <conditionId> <amount>` | Merge outcome tokens |
Configuration
# Required for market data export PREDICTFUN_API_KEY="your-api-key" # Required for trading export PREDICTFUN_PRIVATE_KEY="0x..."
Or in `~/.clodds/clodds.json`:
{
"trading": {
"predictfun": {
"apiKey": "${PREDICTFUN_API_KEY}",
"privateKey": "${PREDICTFUN_PRIVATE_KEY}"
}
}
}Features
- **BNB Chain** - Fast, low-cost transactions (chainId 56)
- **Binary & Categorical** - Multiple market types
- **Order Signing** - Secure wallet signatures via SDK
- **Position Management** - Track & redeem positions
- **Merge/Split** - Convert between collateral and outcome tokens
Trading Notes
1. **Index Sets**: Binary markets use `indexSet = 1` for YES, `indexSet = 2` for NO 2. **Merging**: Requires equal amounts of all outcome tokens 3. **Fees**: Check platform for current fee structure
Resources
- [Predict.fun App](https://predict.fun)
- [BscScan](https://bscscan.com)
Open Source AI trading agent that operates autonomously across 1000+ markets - Polymarket, Kalshi, Binance, Hyperliquid, Solana DEXs, 5 EVM chains. Scans for edge, executes instantly, manages risk while you sleep. Agent commerce protocol for machine-to-machine payments. Self-hosted. Built on Claude.
Repo: alsk1992/CloddsBot
Other skills on cloddsbot.
- /acp
Enable agent-to-agent commerce with on-chain escrow, cryptographic agreements, and service discovery.
Open skill - /agentbets
AgentBets - AI-native prediction markets on Solana
Open skill - /ai-strategy
AI Strategy - natural language to trades
Open skill - /alerts
Create and manage price alerts for prediction markets
Open skill - /analytics
Performance attribution, trade analytics, and strategy optimization
Open skill - /arbitrage
Automated cross-platform arbitrage detection and monitoring
Open skill

