polymarket▌
machina-sports/sports-skills · updated Apr 8, 2026
MDX-style export adds YAML metadata + attribution linking explainx.ai and this canonical listing URL.
Before writing queries, consult references/api-reference.md for sport codes, command parameters, and price format.
Polymarket — Sports Prediction Markets
Before writing queries, consult references/api-reference.md for sport codes, command parameters, and price format.
Quick Start
Prefer the CLI — it avoids Python import path issues:
sports-skills polymarket search_markets --sport=nba --sports_market_types=moneyline
sports-skills polymarket get_todays_events --sport=epl
sports-skills polymarket search_markets --sport=epl --query="Leeds" --sports_market_types=moneyline
sports-skills polymarket get_sports_config
Python SDK (alternative):
from sports_skills import polymarket
polymarket.search_markets(sport='nba', sports_market_types='moneyline')
polymarket.get_todays_events(sport='epl')
polymarket.search_markets(sport='epl', query='Leeds')
polymarket.get_sports_config()
CRITICAL: Before Any Query
CRITICAL: Before calling any market endpoint, verify:
- The
sportparameter is always passed tosearch_marketsandget_todays_eventsfor single-game markets. - Prices are probabilities on a 0-1 scale (0.65 = 65%) — no conversion needed.
- For price/orderbook endpoints, use
token_id(CLOB), notmarket_id(Gamma). Callget_market_detailsfirst to getclobTokenIds.
Without the sport parameter:
WRONG: search_markets(query="Leeds") → 0 results
RIGHT: search_markets(sport='epl', query='Leeds') → returns all Leeds markets
Prerequisites
Core commands (no dependencies, no API keys): All read commands work out of the box.
Trading commands require py_clob_client:
pip install sports-skills[polymarket]
Additionally requires a configured wallet:
export POLYMARKET_PRIVATE_KEY=0x...
Workflows
Find Single-Game Markets for a Sport
search_markets --sport=nba(or epl, nfl, bun, etc.)- Each market includes outcomes with prices (price = probability).
- For detailed prices, use
get_market_prices --token_id=<clob_token_id>.
Today's Events for a League
get_todays_events --sport=epl— returns events sorted by start date.- Each event includes nested markets (moneyline, spreads, totals, props).
- Pick a market, get
clob_token_idfrom outcomes, thenget_market_prices.
Live Odds Check
search_markets --sport=nba --query="Lakers" --sports_market_types=moneylineget_market_prices --token_id=<id>for live CLOB prices.- Present probabilities.
Price Trend Analysis
- Find market via
search_markets --sport=nba. - Get
clob_token_idfrom the outcomes. get_price_history --token_id=<id> --interval=1w- Present price movement.
Commands
| Command | Description |
|---|---|
get_sports_config |
Available sport codes |
get_todays_events |
Today's events for a league |
search_markets |
Find markets by sport, keyword, and type |
get_sports_markets |
Browse all sports markets |
get_sports_events |
Browse sports events |
get_series |
List series (leagues) |
get_market_details |
Single market details |
get_event_details |
Single event details |
get_market_prices |
Current CLOB prices |
get_order_book |
Full order book |
get_price_history |
Historical prices |
get_last_trade_price |
Most recent trade |
See references/api-reference.md for full parameter lists and return shapes.
Examples
Example 1: Tonight's NBA favorites User says: "Who's favored in tonight's NBA games?" Actions:
- Call
search_markets(sport='nba', sports_market_types='moneyline')Result: Each matchup with implied win probabilities (price = probability)
Example 2: Team-specific odds User says: "Show me Leeds vs Man City odds" Actions:
- Call
search_markets(sport='epl', query='Leeds', sports_market_types='moneyline')Result: Leeds moneyline market with outcome prices
Example 3: Today's EPL events User says: "What EPL matches are on today?" Actions:
- Call
get_todays_events(sport='epl')Result: Today's EPL events with nested markets (moneyline, spreads, totals, props)
Example 4: League winner futures User says: "Who will win the Premier League?" Actions:
- Call
search_markets(query='Premier League')— returns futures - Sort results by Yes outcome price descending Result: Top contenders ranked by win probability
Example 5: Bundesliga odds User says: "Show me Bundesliga odds for Dortmund vs Bayern" Actions:
- Call
search_markets(sport='bun', query='Dortmund', sports_market_types='moneyline')Result: Dortmund/Bayern moneyline market with outcome prices
Commands that DO NOT exist — never call these
— does not exist. Usecli_search_marketssearch_marketsinstead.— does not exist. Usecli_sports_listget_sports_configinstead./get_market_odds/get_odds— prices ARE probabilities. Useget_current_oddsget_market_prices(token_id=...).— the price IS the implied probability.get_implied_probability— useget_marketsget_sports_markets(browse) orsearch_markets(search).— this is a football-data command, not polymarket.get_team_schedule
If a command is not listed in references/api-reference.md, it does not exist.
Troubleshooting
Error: search_markets returns 0 results
Cause: The sport parameter is missing — without it, search only checks high-volume markets and misses single-game events
Solution: Always pass sport='<code>' to search_markets. Check references/api-reference.md for valid sport codes
Error: get_market_prices fails or returns wrong data
Cause: market_id (Gamma) was used instead of token_id (CLOB)
Solution: Call get_market_details(market_id=<id>) first to get the CLOB clobTokenIds, then use those with get_market_prices
Error: Prices seem stale or unchanged
Cause: Low-liquidity market — may have wide spreads and infrequent trades
Solution: Check get_last_trade_price(token_id=<id>) for the most recent actual trade price
Error: Trading commands fail
Cause: py_clob_client is not installed or wallet is not configured
Solution: Run pip install sports-skills[polymarket] and set POLYMARKET_PRIVATE_KEY environment variable
How to use polymarket on Cursor
AI-first code editor with Composer
Prerequisites
Before installing skills in Cursor, ensure your development environment meets these requirements:
- ›Cursor installed and configured on your development machine
- ›Node.js version 16.0+ with npm package manager (verify with
node --version) - ›Active project directory or workspace where you want to add polymarket
Execute installation command
Execute the skills CLI command in your project's root directory to begin installation:
The skills CLI fetches polymarket from GitHub repository machina-sports/sports-skills and configures it for Cursor.
Select Cursor when prompted
The CLI will show a list of available agents. Use arrow keys to navigate and space to select Cursor:
Verify installation
Confirm successful installation by checking the skill directory location:
Reload or restart Cursor to activate polymarket. Access the skill through slash commands (e.g., /polymarket) or your agent's skill management interface.
Security & Verification Notice
We perform automated surface-level scans (Gen AI Scanner, Socket, Snyk) during installation. These checks detect common vulnerabilities but do not guarantee complete security. Always review skill source code and verify the publisher's reputation before production use.
Skills execute code in your development environment. Always verify the publisher's identity, review recent commits, and test in isolated environments before production deployment.
List & Monetize Your Skill
Submit your Claude Code skill and start earning
Use Cases▌
User Story & Requirements Generation
Create detailed user stories, acceptance criteria, and feature specs
Example
Generate user stories for 'password reset feature' with acceptance criteria, edge cases, and test scenarios
Reduce spec writing time by 50%, ensure comprehensive coverage
Competitive Analysis
Research competitors, compare features, identify gaps
Example
Analyze 5 competitor products, create feature comparison matrix, suggest differentiation opportunities
Complete competitive research in 2 hours instead of 2 days
Roadmap Prioritization
Evaluate features using frameworks (RICE, ICE, Kano) and create prioritized backlogs
Example
Score 20 feature ideas using RICE framework, generate prioritized roadmap with rationale
Make data-driven prioritization decisions faster
Stakeholder Communication
Draft PRDs, status updates, and stakeholder presentations
Example
Create executive summary of Q3 roadmap, monthly progress report, feature launch announcement
Save 3-5 hours/week on communication overhead
Implementation Guide▌
Prerequisites
- ›Claude Desktop or compatible AI client
- ›Access to product documentation and roadmap tools (Jira, Notion, etc.)
- ›Understanding of product management frameworks (RICE, Jobs-to-be-Done, etc.)
- ›Stakeholder contact information and communication channels
Time Estimate
30-60 minutes to see productivity improvements
Installation Steps
- 1.Install product management skill
- 2.Start with user story generation for known feature
- 3.Progress to competitive analysis: research 2-3 competitors
- 4.Use for roadmap prioritization: apply RICE/ICE scoring
- 5.Draft stakeholder communications and refine based on feedback
- 6.Build template library for recurring PM tasks
- 7.Share effective prompts with product team
Common Pitfalls
- ⚠Not validating competitive research—verify facts before sharing
- ⚠Accepting user stories without involving engineering team
- ⚠Over-relying on frameworks without qualitative judgment
- ⚠Not customizing outputs to company culture and communication style
- ⚠Skipping stakeholder validation of generated requirements
Best Practices▌
✓ Do
- +Validate research and competitive analysis with real data
- +Collaborate with engineering when generating technical requirements
- +Customize frameworks and templates to your company context
- +Use skill for first drafts, refine with stakeholder input
- +Document successful prompt patterns for PM tasks
- +Combine AI efficiency with human judgment and intuition
✗ Don't
- −Don't publish competitive analysis without fact-checking
- −Don't finalize user stories without engineering review
- −Don't make prioritization decisions solely on AI scoring
- −Don't skip customer validation of generated requirements
- −Don't ignore company-specific context and culture
💡 Pro Tips
- ★Provide context: company goals, constraints, customer feedback
- ★Ask for alternatives: 'Show 3 ways to prioritize this roadmap'
- ★Request stakeholder-specific formatting: 'Executive summary vs. engineering spec'
- ★Use skill for 70% generation + 30% customization to company needs
When to Use This▌
✓ Use When
Use for user story writing, competitive research, roadmap prioritization, stakeholder communication, and PRD drafting. Best for reducing repetitive documentation and research work.
✗ Avoid When
Avoid for strategic product vision (requires deep customer empathy), pricing decisions (needs market and financial expertise), or when face-to-face customer discovery is more valuable than speed.
Learning Path▌
- 1Basic: user stories, feature specs, status updates
- 2Intermediate: competitive analysis, prioritization frameworks, PRDs
- 3Advanced: product strategy, go-to-market planning, OKR setting
- 4Expert: product vision, market positioning, business model innovation
Discussion
Product Hunt–style comments (not star reviews)- No comments yet — start the thread.
Ratings
4.5★★★★★38 reviews- ★★★★★Mei Agarwal· Dec 28, 2024
polymarket is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★Lucas Okafor· Dec 20, 2024
Useful defaults in polymarket — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- ★★★★★Ganesh Mohane· Dec 8, 2024
Useful defaults in polymarket — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- ★★★★★Sakshi Patil· Nov 27, 2024
polymarket is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★Sophia Abbas· Nov 19, 2024
Useful defaults in polymarket — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- ★★★★★Arya Brown· Nov 11, 2024
polymarket is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★Chaitanya Patil· Oct 18, 2024
Keeps context tight: polymarket is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Sophia Li· Oct 10, 2024
I recommend polymarket for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- ★★★★★Arya Ndlovu· Oct 2, 2024
Keeps context tight: polymarket is the kind of skill you can hand to a new teammate without a long onboarding doc.
- ★★★★★Omar Mensah· Sep 21, 2024
We added polymarket from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
showing 1-10 of 38