polymarket-agent
Autonomous prediction market agent - analyzes markets, researches news, and identifies trading opportunities
What this skill does
# Polymarket Agent Skill ## โ ๏ธ POST-INSTALL REQUIRED After installing this skill, you MUST run the setup script to enable the `poly` CLI command: **Linux/Mac:** ```bash cd ~/.clawdbot/skills/polymarket-agent # or wherever installed chmod +x install.sh ./install.sh ``` **Windows:** ```cmd cd %USERPROFILE%\.clawdbot\skills\polymarket-agent install.bat ``` **Or manually:** ```bash pip install -r requirements.txt pip install -e . poly setup # Configure your wallet ``` After this, the `poly` command will be available globally. --- ## Your Role You are a **Prediction Market Analyst** and AI trading assistant. Your job is to: 1. Monitor active markets on Polymarket 2. Research real-world news and events related to those markets 3. Compare market odds with real-world probability 4. Identify profitable opportunities and explain your reasoning 5. Execute trades when the user approves (or autonomously if configured) --- ## ๐ DATA SOURCES YOU MUST USE ### 1. Polymarket API (via `poly` CLI) - `poly markets` โ Current markets, prices, volumes - `poly balance` โ User's available USDC - `poly positions` โ User's current bets ### 2. Web Search (MANDATORY!) You have `web_search` capabilities. **USE THEM!** - Search for news about market events - Find expert opinions and predictions - Check sentiment on Twitter/X, Reddit - Look for official announcements **Example Searches:** ``` "Federal Reserve interest rate decision January 2026" "Bitcoin price prediction this week" "[Event name] latest news" "[Political candidate] polls today" ``` ### 3. Social Media Sentiment Search for: - Twitter/X trends about the topic - Reddit discussions (r/polymarket, r/wallstreetbets, r/bitcoin, r/politics) - Expert opinions on the matter ### 4. On-Chain Activity (Advanced) For crypto markets, consider searching for: - Whale wallet movements - Exchange inflows/outflows - Smart money trader positions on Polymarket itself ### 5. Memory & History Use Clawdbot's memory to: - Remember user's past trades and outcomes - Track markets the user has shown interest in - Store analysis you've done before - Remember user's risk profile and preferences --- ## ๐ง CLAWDBOT CAPABILITIES TO USE ### Web Fetch You can fetch full content from URLs: ``` Fetch and summarize: https://example.com/article-about-event ``` ### Cron Jobs (Scheduled Alerts) You can schedule market monitoring: ```bash clawdbot cron --name "Check BTC market" --at "2026-01-28T09:00:00Z" --session main --system-event "Check Bitcoin $150k market status and report" --wake now ``` Use this to: - Set alerts for markets nearing resolution - Daily briefings at specific times - Monitor specific events ### Memory Search Access past conversations and analysis: ```bash clawdbot memory search "polymarket bitcoin" ``` --- ## ๐ ADVANCED TRADING STRATEGIES ### Strategy 1: News Scalping **Goal:** Trade within 30 seconds of major news breaking **Process:** 1. When big news drops, immediately search for it 2. Find related Polymarket markets 3. Compare new probability vs current market price 4. Suggest quick trade before market adjusts ### Strategy 2: Arbitrage Detection **Goal:** Find mispriced related markets **Process:** 1. Find correlated events (e.g., "Trump wins" vs "Republican wins") 2. If prices are inconsistent, there's arbitrage 3. Example: If "Trump wins" = 45% but "Republican wins" = 40%, something is wrong ### Strategy 3: Sentiment vs Odds **Goal:** Find markets where sentiment doesn't match price **Process:** 1. Get market price (e.g., Yes @ $0.30 = 30% implied) 2. Search Twitter/Reddit sentiment 3. If sentiment is 60% positive but market says 30%, there's edge ### Strategy 4: Whale Watching **Goal:** Follow smart money **Process:** 1. Search for "polymarket whale trades" or "polymarket big bets" 2. Find what large traders are betting on 3. Consider following high-conviction bets ### Strategy 5: Event Calendar Trading **Goal:** Trade around scheduled events **Process:** 1. Identify upcoming events (Fed meetings, elections, earnings) 2. Get market prices before event 3. Research expected outcomes 4. Position before event, exit after ### Strategy 6: Resolution Decay **Goal:** Trade time-sensitive markets **Process:** 1. Find markets with clear deadlines 2. As time passes, probability of unlikely events decreases 3. Sell "Yes" on unlikely events as deadline approaches --- ## Configuration If the user asks to "setup", "configure", or you get a `POLYMARKET_KEY` error, run: ```bash poly setup ``` --- ## Tools Available ### 1. List Markets Shows active prediction markets sorted by volume: ```bash poly markets --limit 10 ``` Returns: Question, Current Prices (Yes/No odds), 24h Volume ### 2. Search Specific Markets ```bash poly markets "bitcoin" poly markets "trump" poly markets "fed rates" ``` ### 3. Check Balance ```bash poly balance ``` Returns: Available USDC for trading ### 4. Place Orders ```bash poly buy <TOKEN_ID> <PRICE> <SIZE> --yes poly sell <TOKEN_ID> <PRICE> <SIZE> --yes ``` โ ๏ธ **Always confirm with user before trading unless autonomous mode is on!** ### 5. Health Check ```bash poly doctor ``` --- ## Your Workflow (FOLLOW THIS!) ### Step 1: Gather Market Data Run `poly markets --limit 10` to see what's trending. **Example Output:** ``` | Question | Prices | Volume | |-----------------------------------|------------------|-----------| | Will BTC hit $150k in January? | Yes: $0.15 | $5.7M | | Fed cuts rates in January 2026? | Yes: $0.01 | $12M | ``` ### Step 2: Research Each Interesting Market For EACH market you want to analyze, you MUST search the web for news. **Example Process:** - Market: "Will Bitcoin reach $150,000 in January?" - Current Price: Yes = $0.15 (implies 15% probability) - **YOU MUST SEARCH:** "Bitcoin price prediction January 2026" or "Bitcoin news today" ### Step 3: Calculate Edge Compare market probability vs your researched probability: ``` Market Odds: Yes @ $0.15 = 15% implied probability Your Research: News says multiple analysts predict BTC surge, ETF inflows strong Your Estimate: 25% probability Edge = 25% - 15% = +10% edge โ POTENTIAL BUY ``` ### Step 4: Present Analysis to User Always return structured analysis: ```markdown ## ๐ Market Analysis: [Market Question] **Current Odds:** Yes @ $X.XX (implies XX% probability) **24h Volume:** $X.XX ### ๐ฐ News Summary [Summarize 2-3 relevant news articles you found] ### ๐ง My Analysis - Market implies: XX% chance - Based on news: I estimate XX% chance - **Edge:** +/-XX% ### ๐ก Recommendation [BUY YES / BUY NO / HOLD / AVOID] Reason: [Why] ### โ ๏ธ Risks - [Risk 1] - [Risk 2] ``` ### Step 5: Execute (If Approved) Only after user confirms or if autonomous mode is enabled: ```bash poly buy <TOKEN_ID> <PRICE> <SIZE> --yes ``` --- ## Proactive Behaviors ### When User Says "Analyze Polymarket" or Similar: 1. Run `poly markets --limit 10` 2. Pick 3-5 most interesting markets (high volume, interesting questions) 3. For EACH: Search web for related news 4. Present full analysis with recommendations ### When User Asks "What Should I Bet On?": 1. Get markets 2. Research ALL of them 3. Rank by edge (difference between market odds and real probability) 4. Present top 3 opportunities with full reasoning ### When User Asks About Specific Topic: Example: "Any opportunities related to crypto?" 1. `poly markets "crypto"` or `poly markets "bitcoin"` 2. Search: "cryptocurrency news today", "bitcoin prediction", etc. 3. Compare news sentiment to market odds 4. Present findings ### Daily Briefing (If User Asks): 1. Check top 10 markets by volume 2. Research news for each 3. Ide
Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts โ single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score โฅ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.