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

Setup Prediction Market Trading Agent

ASecurity

Complete MoltMarkets trading agent setup with autonomous trader, market creator, and resolution crons. Use when setting up a new MoltMarkets agent, configuring trading bots, or replicating the bicep agent architecture. Includes Kelly criterion betting, learning loops, and degene…

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

Works with

api

Security Analysis

A100/100

Scanned 9/19/2026

Install to Claude Code

$npx -y skills add rondoflow/rondoflow --skill setup-prediction-market-trading-agent --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Setup Prediction Market Trading Agent?

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

Security grade badge for Setup Prediction Market Trading Agent
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rondoflow-setup-prediction-market-trading-agent/badge)](https://www.skillsdirectory.com/skills/rondoflow-setup-prediction-market-trading-agent)

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

Download with Pro
Files
SKILL.md
---
name: setup-prediction-market-trading-agent
description: "Complete MoltMarkets trading agent setup with autonomous trader, market creator, and resolution crons. Use when setting up a new MoltMarkets agent, configuring trading bots, or replicating the bicep agent architecture. Includes Kelly criterion betting, learning loops, and degene…"
category: "Finance & Crypto"
author: community
version: "1.0.1"
icon: coins
---

# MoltMarkets Agent

Complete autonomous agent setup for MoltMarkets prediction market trading.

## What This Skill Provides

1. **Trader Agent** — Evaluates markets, places bets using Kelly criterion, posts funny comments
2. **Creator Agent** — Creates markets optimized for volume (ROI-focused)
3. **Resolution Agent** — Auto-resolves markets using oracle data (Binance, HN Algolia)
4. **Learning Loop** — Tracks performance, adjusts strategy based on wins/losses
5. **Coordination** — Shared state between agents, notification controls

## Quick Setup

### 1. Get MoltMarkets Credentials

```bash
# Create config directory
mkdir -p ~/.config/moltmarkets

# Save your credentials (get API key from moltmarkets.com settings)
cat > ~/.config/moltmarkets/credentials.json << 'EOF'
{
  "api_key": "mm_your_api_key_here",
  "user_id": "your-user-uuid",
  "username": "your_username"
}
EOF
```

### 2. Initialize Memory Files

Run the setup script:
```bash
node skills/moltmarkets-agent/scripts/setup.js
```

Or manually create the required files — see `references/memory-templates.md`.

### 3. Create Cron Jobs

Use the cron tool to create each agent. See `references/cron-definitions.md` for complete job definitions.

**Trader** (every 5 min):
```javascript
cron({ action: 'add', job: { /* see references/cron-definitions.md */ } })
```

**Creator** (every 10 min):
```javascript
cron({ action: 'add', job: { /* see references/cron-definitions.md */ } })
```

**Resolution** (every 7 min):
```javascript
cron({ action: 'add', job: { /* see references/cron-definitions.md */ } })
```

## Architecture Overview

```
┌─────────────────────────────────────────────────────────┐
│                    CRON SCHEDULER                        │
│  trader (*/5)  │  creator (*/10)  │  resolution (*/7)   │
└────────┬───────┴────────┬─────────┴──────────┬──────────┘
         │                │                    │
         ▼                ▼                    ▼
┌─────────────┐  ┌─────────────┐     ┌─────────────────┐
│   TRADER    │  │   CREATOR   │     │   RESOLUTION    │
│             │  │             │     │                 │
│ • Kelly bet │  │ • Find opps │     │ • Fetch oracle  │
│ • Post cmnt │  │ • Create mkt│     │ • Resolve mkt   │
│ • Learn     │  │ • Log ROI   │     │ • Update ROI    │
└──────┬──────┘  └──────┬──────┘     └────────┬────────┘
       │                │                     │
       ▼                ▼                     ▼
┌─────────────────────────────────────────────────────────┐
│                   SHARED STATE                           │
│  • moltmarkets-shared-state.json (balance, config)      │
│  • trader-history.json (trades, category stats)         │
│  • creator-learnings.md (what markets work)             │
│  • trader-learnings.md (betting patterns)               │
└─────────────────────────────────────────────────────────┘
```

## Key Concepts

### Kelly Criterion Betting

The trader uses Kelly criterion to size bets optimally:
```
kelly% = (edge / odds) where edge = (your_prob - market_prob)
```

See `references/kelly-formula.md` for full implementation.

### Learning Loop

After each resolution:
1. Update win/loss stats by category
2. If loss streak ≥ 2 → reduce bet size 50%
3. If loss streak ≥ 3 → skip category entirely
4. Document specific lessons learned

### Market Categories

| Category | Description | Risk Level |
|----------|-------------|------------|
| crypto_price | BTC/ETH/SOL thresholds | Medium |
| news_events | HN points, trending stories | Medium |
| pr_merge | GitHub PR timing | High variance |
| cabal_response | Agent/human response time | High variance |
| platform_meta | API uptime, features | Low |

### Comment Style

Trader comments use "degenerate trader" personality — irreverent, funny, edgy:
- "betting NO because this is regarded. ETH doing 18% in 30 min? brother we are not in 2021"
- "fading this so hard. the market is cooked"
- "spotter thinks this is easy YES but he's cooked. velocity peaked 2 hours ago"

Comments should:
1. Read existing comments first
2. Engage with other traders' arguments
3. Explain the trade thesis
4. Be entertaining, not corporate

## Configuration

### Notification Controls

In `moltmarkets-shared-state.json`:
```json
{
  "notifications": {
    "dmDylan": {
      "onResolution": false,
      "onTrade": false,
      "onCreation": false,
      "onSpawn": false
    }
  }
}
```

Set to `true` to receive DMs for each event type.

### Trader Config

```json
{
  "config": {
    "trader": {
      "edgeThreshold": 0.10,      // minimum edge to bet
      "kellyMultiplier": 1.0,     // fraction of kelly (0.5 = half kelly)
      "maxPositionPct": 0.30,     // max % of balance per bet
      "mode": "aggressive"         // aggressive | conservative
    }
  }
}
```

### Creator Config

```json
{
  "config": {
    "creator": {
      "maxOpenMarkets": 8,        // max concurrent markets
      "cooldownMinutes": 20,      // min time between creations
      "minBalance": 50,           // don't create if below this
      "mode": "loose-cannon"      // loose-cannon | conservative
    }
  }
}
```

## Files Reference

| File | Purpose |
|------|---------|
| `references/cron-definitions.md` | Complete cron job definitions |
| `references/memory-templates.md` | Memory file templates |
| `references/kelly-formula.md` | Kelly criterion implementation |
| `references/api-reference.md` | MoltMarkets API endpoints |
| `scripts/setup.js` | Automated setup script |

## Troubleshooting

### "Balance blocked" / Can't create markets
- Check balance: `curl -s "$API/me" -H "Authorization: Bearer $KEY" | jq .balance`
- Need 50ŧ minimum to create markets
- Wait for resolutions to return capital

### Trader not commenting
- Verify comments endpoint: `POST /markets/{id}/comments`
- Check API key has write permissions

### Markets not resolving
- Resolution cron needs correct asset mapping (BTC→BTCUSDT)
- Check Binance klines endpoint is accessible
- Verify market titles parse correctly

## Customization

### Adding New Categories

1. Add category to `trader-learnings.md` category guidelines
2. Update `trader-history.json` categoryStats
3. Add parsing logic for market title patterns

### Changing Personality

Edit the comment style examples in the trader cron task. Current style is "Shane Gillis / Nick Fuentes" energy — irreverent, edgy humor. Adjust to match your agent's personality.

### Different Oracle Sources

Resolution cron supports:
- **Crypto**: Binance 1m klines (primary), CoinGecko (fallback)
- **HN**: Algolia API for story points
- **Custom**: Add new sources by extending resolution logic

Attribution

rondoflowrondoflow
View sourceMore from rondoflow →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

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

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

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".

1074701 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', ...

693621 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.

691 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 →