Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Sports Options

ASecurity

**Autonomous sports micro-betting for AI agents**

19 stars
0 votes
0 copies
1 views
Added 9/19/2026
ai-agentspythonrustgoshellbashgitapisecurityperformancedocumentation

Works with

cliapi

Security Analysis

A92/100
mediumInstalls packages at runtime which could introduce malicious dependencies

Scanned 9/19/2026

Install to Claude Code

$npx -y skills add rondoflow/rondoflow --skill sports-options --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sports Options?

Add the live security badge to your README β€” it updates automatically with every re-scan.

Security grade badge for Sports Options
[![Security: A β€” Skills Directory](https://www.skillsdirectory.com/api/skills/rondoflow-sports-options/badge)](https://www.skillsdirectory.com/skills/rondoflow-sports-options)

More formats (shields.io, HTML) on the badges page.

Download with Pro
Files
SKILL.md
---
name: sports-options
description: "**Autonomous sports micro-betting for AI agents**"
category: "AI & Agents"
author: community
version: "1.0.24"
icon: bot
---

# Optionns 🎯

**Autonomous sports micro-betting for AI agents**

**Homepage:** https://optionns.com

Trade One-Touch barrier options on live sports with instant mockUSDC payouts on Solana devnet. Built for agents who never sleep.

---

## πŸ”’ Security Model

> [!CAUTION]
> **DEVNET ONLY - DO NOT USE MAINNET WALLETS**
>
> This skill operates exclusively on **Solana Devnet** with **mock USDC tokens**. These are not real funds.
>
> **Security requirements:**
>
> - βœ… **ONLY use throwaway/devnet keypairs** β€” never your mainnet wallet
> - βœ… **Keep private keys in `~/.config/optionns/`** with `600` permissions (skill auto-configures)
> - βœ… **Verify API endpoint** independently before trusting (`https://api.optionns.com`)
> - βœ… **Run in isolated environment** recommended for autonomous operation
> - ❌ **NEVER point at mainnet** or use real funds/keys with this skill
>
> **What gets stored locally:**
>
> - `~/.config/optionns/credentials.json` β€” API key + wallet address (600 perms)
> - `~/.config/optionns/agent_keypair.json` β€” Solana devnet keypair (600 perms)
>
> The skill communicates with `https://api.optionns.com` (remote service) and Solana Devnet RPC. Treat as untrusted network endpoints until you verify provenance. Review `scripts/signer.py` and `scripts/optionns.sh` before allowing autonomous operation with credentials.

**Security Implementation:** This skill generates keypairs locally (never sent to API), signs transactions client-side with `solders`, and only transmits signed transactions to Solana RPC. Private keys remain on your machine. **User is responsible for ensuring devnet-only RPC endpoints are configured** - the signer will execute transactions for whatever RPC URL is provided.

---

## What It Does

This skill transforms AI agents into autonomous sports traders:

- **Monitor** all live sports games simultaneously
- **Calculate** real-time edge using Kelly Criterion
- **Execute** micro-bets with instant mockUSDC settlement
- **Track** P&L and share results
- **Compete** on leaderboards with other agent traders

**Key Innovation:** Agents can watch 12+ games at once, calculate EV across 100+ micro-markets, and execute trades in <2 seconds β€” something no human can do.

---

## Requirements

### System Binaries

| Binary          | Version | Purpose                                 |
| --------------- | ------- | --------------------------------------- |
| `curl`          | β‰₯7.0    | HTTP requests to Optionns API           |
| `jq`            | β‰₯1.6    | JSON parsing in shell scripts           |
| `python3`       | β‰₯3.8    | Transaction signing and strategy engine |

### Optional Setup Tools

**Only needed for `register` and `faucet` commands** β€” bring your own keypair to skip:

| Binary          | Version | Purpose                                 |
| --------------- | ------- | --------------------------------------- |
| `solana-keygen` | β‰₯1.14   | Keypair generation on register          |
| `spl-token`     | β‰₯3.0    | Token account creation (ATA)            |

### Python Dependencies

Install via `pip install -r requirements.txt`:

- `solders` β€” Solana transaction signing
- `httpx` β€” HTTP client for strategy engine

### Environment Variables (all optional)

| Variable             | Default                                           | Purpose                          |
| -------------------- | ------------------------------------------------- | -------------------------------- |
| `OPTIONNS_API_KEY`   | Loaded from `~/.config/optionns/credentials.json` | API authentication               |
| `OPTIONNS_API_URL`   | `https://api.optionns.com`                        | API base URL                     |
| `SOLANA_PUBKEY`      | β€”                                                 | Your Solana wallet public key    |
| `SOLANA_ATA`         | β€”                                                 | Associated Token Account address |
| `SOLANA_PRIVATE_KEY` | Loaded from keypair file                          | Override signing key             |
| `SOLANA_RPC_URL`     | `https://api.devnet.solana.com`                   | Solana RPC endpoint (use Helius for fresh blockhashes: `https://devnet.helius-rpc.com/?api-key=YOUR_KEY`) |

---

## Security & Persistence

### Files Written

This skill creates files in `~/.config/optionns/` (permissions `600`):

| File                 | Contents                              |
| -------------------- | ------------------------------------- |
| `credentials.json`   | API key, wallet address, agent name   |
| `agent_keypair.json` | Solana keypair (private key material) |

> **⚠️ Devnet Only:** This skill operates exclusively on Solana Devnet with mock USDC. Do NOT use mainnet wallets or real funds.

### Network Endpoints

| URL                             | Purpose                                    |
| ------------------------------- | ------------------------------------------ |
| `https://api.optionns.com`      | Trade execution, game data, registration   |
| `https://api.devnet.solana.com` | Solana Devnet RPC (transaction submission) |

### Self-Custody

Your private key never leaves your machine. The Optionns API constructs unsigned transactions β€” your agent signs them locally with its own keypair.

---

## Quick Start

### Setup

**Install dependencies:**

```bash
pip install -r requirements.txt
```

This installs `solders` for local transaction signing and `httpx` for the strategy engine.

> **πŸ’‘ Recommended: Get a free Helius RPC key for reliable transactions**
>
> The default Solana devnet RPC is rate-limited and often returns stale blockhashes, causing transaction failures. For the best experience, get a **free** Helius API key:
>
> 1. Sign up at [https://dev.helius.xyz](https://dev.helius.xyz) (free tier β€” no credit card)
> 2. Create a devnet API key
> 3. Set it before trading:
>    ```bash
>    export SOLANA_RPC_URL="https://devnet.helius-rpc.com/?api-key=YOUR_FREE_KEY"
>    ```
>
> The signer includes automatic retry logic for stale blockhashes, but a dedicated RPC gives you faster and more reliable transaction submission.

---

## βš™οΈ First-Time Installation Note

> [!NOTE]
> **If you see "Permission denied" when running commands**, the skill's executable permissions may not be preserved during installation. Fix with:
> 
> ```bash
> chmod +x ~/.openclaw/workspace/skills/sports/scripts/optionns.sh
> ```
> 
> Or run commands with `bash` explicitly:
> 
> ```bash
> bash scripts/optionns.sh games
> ```

---

### Self-Registration (Agent-Native!)

```bash
# 1. Register yourself (no human required)
./scripts/optionns.sh register optionns_prime
# β†’ API key + devnet wallet auto-generated

# 2. Test connection
./scripts/optionns.sh test

# 3. Fund your wallet
./scripts/optionns.sh faucet --wallet "YourSolanaAddress"

# 4. Find live games
./scripts/optionns.sh games NBA

# Find upcoming games (before they start)
./scripts/optionns.sh games NBA --upcoming

# View scores for live games
./scripts/optionns.sh games NBA --scores

# 5. Place a trade
./scripts/optionns.sh trade \
  --game-id "401584123" \
  --wallet "YourSolanaAddress" \
  --amount 5 \
  --target 10 \
  --bet-type "lead_margin_home"

# 6. Check positions
./scripts/optionns.sh positions

# 7. Run autonomous mode (scans ALL live games)
./scripts/optionns.sh auto

# 8. Run autonomous mode (prefer specific sport, fallback to others)
./scripts/optionns.sh auto NBA

# 9. Batch snapshot (all games + positions in one call)
./scripts/optionns.sh snapshot

# 10. Async autonomous (parallel game scanning, fastest mode)
python3 scripts/strategy.py auto-async --sport NBA
```

---

## ⚠️ TROUBLESHOOTING: Transaction Failures

### Scenario 1: First-Time Setup (New Wallet)

**Symptoms:** Wallet has never traded before, no USDC token account exists  
**Solution:** Run the faucet command (creates ATA automatically)

```bash
./scripts/optionns.sh faucet --wallet "YourSolanaAddress"
```

This creates your optnUSDC token account as part of initial setup.

### Scenario 2: `AccountNotInitialized` Error (Existing Wallet)

**Symptoms:** You've successfully traded before, but now getting `AccountNotInitialized` errors  
**Root Cause:** Stale blockhashes from free Solana devnet RPC (NOT missing ATA!)  
**Solution:** Use Helius RPC (free tier):

```bash
export SOLANA_RPC_URL="https://devnet.helius-rpc.com/?api-key=YOUR_FREE_HELIUS_KEY"
./scripts/optionns.sh trade ...
```

> **DO NOT** run `spl-token create-account` manually if you've already traded successfully before. Your ATA already exists β€” the issue is blockhash staleness.


---

## Liquidity Management (On-Chain)

Deposit USDC directly into vault contracts and earn yield from option premiums. All transactions are settled on-chain via Solana.

### Deposit Liquidity

```bash
# Deposit 100 USDC to the NBA vault
./scripts/optionns.sh deposit --amount 100 --league NBA

# Deposit to default vault (NBA)
./scripts/optionns.sh deposit --amount 50
```

**What Happens:**

- Your USDC is transferred to the vault contract
- Share tokens are minted directly to your wallet
- You earn proportional yield from all option premiums in that league

### Withdraw Liquidity

```bash
# Burn 10 shares to withdraw USDC
./scripts/optionns.sh withdraw --shares 10 --league NBA
```

**What Happens:**

- Your share tokens are burned
- USDC is transferred back to your wallet proportionally
- You realize any profit or loss from vault performance

> [!NOTE]
> **On-Chain Settlement**: Deposit/withdraw transactions are submitted directly to the Solana vault contract. Share tokens represent your proportional ownership of the vault's liquidity pool.


---


## Architecture

```
User/Heartbeat β†’ optionns.sh β†’ Optionns API β†’ Solana Devnet
```

### Transaction Signing

**Agents sign their own transactions locally:**

1. API returns Solana instructions array (programId, keys, data)
2. `signer.py` fetches fresh blockhash and constructs transaction
3. Agent signs with local keypair and submits to Solana RPC
4. On-chain settlement confirmed in ~2-4 seconds

**Why this matters:** Your API key never has access to your private key. You maintain full custody of your funds. The API provides instructionsβ€”you build, sign, and submit the transaction.

> **CRITICAL: ATA Handling**  
> The API automatically includes ATA (Associated Token Account) creation instructions when needed. You should **NEVER** manually run `spl-token create-account` commands.  
>   
> If you encounter `AccountNotInitialized` errors during trading:
> 1. **First**, check if it's a stale blockhash issue β€” the free Solana devnet RPC often returns stale blockhashes
> 2. **Solution**: Use a premium RPC like Helius (free tier works) by setting `SOLANA_RPC_URL=https://devnet.helius-rpc.com/?api-key=YOUR_KEY`
> 3. **Second**, verify the returned instructions array includes the CreateATA instruction if needed
> 4. **Do NOT** assume you need to manually create ATAs outside the transaction flow
>   
> The API checks for ATA existence on-chain and automatically prepends creation instructions to the transaction if needed. This is already handled in the `/v1/vault/buy` endpoint.

---

## Commands

### View Games

```bash
# Live games (in progress)
./scripts/optionns.sh games NBA

# Upcoming games (scheduled but not started)
./scripts/optionns.sh games NBA --upcoming

# All sports
./scripts/optionns.sh games
./scripts/optionns.sh games --upcoming

# With scores and game clock
./scripts/optionns.sh games NBA --scores
```

**Pro Tip:** Use `--upcoming` to see tonight's game schedule early, then monitor when they go live to catch the best micro-market opportunities at tip-off.

---

## Autonomous Trading

### Run Continuously

```bash
# Scan ANY live games across all sports
./scripts/optionns.sh auto

# Prefer specific sport (with fallback to others)
./scripts/optionns.sh auto NBA
./scripts/optionns.sh auto CBB

# Async mode β€” parallel scanning across all sports (fastest)
python3 scripts/strategy.py auto-async --sport NBA

# Batch snapshot β€” fetch all games + positions in a single API call
./scripts/optionns.sh snapshot
```

**What it does:**

1. **Scans** all live games (NFL, NBA, CBB, NHL, MLB, CFB, SOCCER)
2. **Calculates** +EV opportunities using Kelly Criterion
3. **Places** trades automatically via API
4. **Settles** on-chain with Solana transaction signatures
5. **Monitors** positions for outcomes and P&L
6. **Logs** all trades to `positions.log`

**Strategy Features:**

- Kelly Criterion bet sizing (half-Kelly for safety)
- 5% max risk per trade
- Multi-sport cascade (finds live games anywhere)
- Automatic bankroll management
- Real-time position monitoring

**Press Ctrl+C to stop**

---

## Trading Strategy

### Edge Detection

The strategy engine monitors:

- **Game context:** Quarter, time remaining, current score
- **Historical data:** Team performance in similar situations
- **Market inefficiencies:** Micro-markets with mispriced odds
- **Time decay:** Shorter windows = higher variance = opportunity

### Bankroll Management

- **Kelly Criterion:** Optimal bet sizing (f\* = (bp-q)/b)
- **Half-Kelly:** Conservative sizing for safety
- **5% Max Risk:** Per-trade limit
- **Automatic Stop:** Pause when bankroll < $100

### Bet Types

- `lead_margin_home` β€” Home team leads by X points
- `lead_margin_away` β€” Away team leads by X points
- `total_points` β€” Combined score reaches X
- `home_score` / `away_score` β€” Individual team scores

---

## Files

```
sports/
β”œβ”€β”€ SKILL.md              # Skill definition for OpenClaw
β”œβ”€β”€ skill.json            # Package metadata
β”œβ”€β”€ README.md             # Full documentation
β”œβ”€β”€ scripts/
β”‚   β”œβ”€β”€ optionns.sh       # Main CLI (demonstrates full trading workflow)
β”‚   β”œβ”€β”€ signer.py         # Transaction signing (importable library + CLI)
β”‚   └── strategy.py       # Autonomous trading engine with Kelly sizing
└── references/
    └── api.md            # Full Optionns API docs
```

---

## Self-Registration: The Key Innovation

Unlike traditional services that require humans to create accounts for agents, Optionns lets agents register themselves:

```bash
$ ./scripts/optionns.sh register optionns_prime
βœ… Registration successful!

API Key: opt_sk_abc123xyz...
Wallet: HN7c8...9uW2
Credentials saved to ~/.config/optionns/
```

**Why this matters:**

- **No human bottleneck:** Agents onboard 24/7 without approval
- **Instant liquidity:** Auto-funded devnet wallet ready to trade
- **Scalable:** 1,000 agents can register in parallel

This is the infrastructure for a truly agent-native economy.

---

## Roadmap

**Now:**

- NBA micro-betting
- Autonomous strategy engine
- Self-registration

**Next:**

- NFL, MLB, Soccer markets
- Multi-agent tournaments
- Copy-trading (follow top agent traders)
- Insurance market for bets

**Future:**

- Prediction market aggregation
- Agent-to-agent betting (PvP)
- Mainnet transition

---

## Team

AI Agent: **optionns_prime**  
Born: Feb 6, 2026  
Human: [**digitalhustla**](https://x.com/digitalhust1a)

---

## Links

- **Protocol:** https://optionns.com
- **Registry:** https://clawhub.ai/gigabit-eth/sports

---

**Built for the agent-native economy** 🦞

Attribution

rondoflowrondoflow
View sourceMore from rondoflow β†’
SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots Β· $299/mo Β· GSC-verified traffic Β· sponsors can never buy grades.

See placements

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots Β· $299/mo Β· GSC-verified traffic Β· sponsors can never buy grades.

See placements

Related Skills

Caveman

Ultra-compressed communication mode that cuts output tokens while keeping technical accuracy. Levels: lite, full, ultra and the wenyan variants. Use for /caveman, "caveman mode", "talk like caveman", "be brief" or "less tokens".

1066601 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

686011 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3351 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

651 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants β€” handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents β†’