betting▌
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 odds formats, command parameters, and key concepts.
Betting Analysis
Before writing queries, consult references/api-reference.md for odds formats, command parameters, and key concepts.
Quick Start
sports-skills betting convert_odds --odds=-150 --from_format=american
sports-skills betting devig --odds=-150,+130 --format=american
sports-skills betting find_edge --fair_prob=0.58 --market_prob=0.52
sports-skills betting evaluate_bet --book_odds=-150,+130 --market_prob=0.52
sports-skills betting find_arbitrage --market_probs=0.48,0.49
sports-skills betting parlay_analysis --legs=0.58,0.62,0.55 --parlay_odds=600
sports-skills betting line_movement --open_odds=-140 --close_odds=-160
Python SDK:
from sports_skills import betting
betting.convert_odds(odds=-150, from_format="american")
betting.devig(odds="-150,+130", format="american")
betting.find_edge(fair_prob=0.58, market_prob=0.52)
betting.find_arbitrage(market_probs="0.48,0.49")
betting.parlay_analysis(legs="0.58,0.62,0.55", parlay_odds=600)
betting.line_movement(open_odds=-140, close_odds=-160)
CRITICAL: Before Any Analysis
CRITICAL: Before calling any analysis command, verify:
- Odds format is correctly identified (american, decimal, or probability).
- ESPN odds are de-vigged with
devigbefore computing edge vs prediction market prices. - This module computes — it does not fetch. Obtain odds from sport-specific skills or polymarket/kalshi first.
Workflows
Compare ESPN vs Polymarket/Kalshi
- Get ESPN moneyline odds (e.g., from
nba get_scoreboard): Home:-150, Away:+130 - Get Polymarket/Kalshi price for the same outcome (e.g., home at
0.52) - De-vig:
devig --odds=-150,+130 --format=american→ Fair: Home 57.9%, Away 42.1% - Compare:
find_edge --fair_prob=0.579 --market_prob=0.52→ Edge: 5.9%, EV: 11.3% - Or all in one step:
evaluate_bet --book_odds=-150,+130 --market_prob=0.52
Arbitrage Detection
- Get best price per outcome from different sources (Polymarket home at 0.48, Kalshi away at 0.49)
find_arbitrage --market_probs=0.48,0.49 --labels=home,away- Total implied 0.97 (< 1.0) → arbitrage found, guaranteed ROI: 3.09%
Parlay Evaluation
- De-vig each leg: Leg 1 → 0.58, Leg 2 → 0.55, Leg 3 → 0.50
parlay_analysis --legs=0.58,0.55,0.50 --parlay_odds=600- Returns combined fair probability, edge, and Kelly fraction
Line Movement Analysis
- Get ESPN open and close lines: Open -140, Close -160
line_movement --open_odds=-140 --close_odds=-160- Returns probability shift, direction, and classification (sharp_action, steam_move, etc.)
Examples
Example 1: Edge check using ESPN and Polymarket prices User says: "Is there edge on the Lakers game? ESPN has them at -150 and Polymarket has them at 52 cents" Actions:
- Call
devig(odds="-150,+130", format="american")→ fair home probability ~58% - Call
find_edge(fair_prob=0.58, market_prob=0.52)→ edge ~6%, positive EV - Call
kelly_criterion(fair_prob=0.58, market_prob=0.52)→ optimal bet fraction Result: Present edge percentage, EV per dollar, and recommended bet size as % of bankroll
Example 2: Arbitrage opportunity detection User says: "Can I arb this? Polymarket has home at 48 cents and Kalshi has away at 49 cents" Actions:
- Call
find_arbitrage(market_probs="0.48,0.49", labels="home,away") - Check
arbitrage_foundin result Result: If arbitrage: present allocation percentages and guaranteed ROI. If not: present overround and explain no guaranteed profit
Example 3: Parlay evaluation User says: "Is this 3-leg parlay at +600 worth it?" Actions:
- De-vig each leg to get fair probabilities (e.g., 0.58, 0.62, 0.55)
- Call
parlay_analysis(legs="0.58,0.62,0.55", parlay_odds=600)Result: Present combined fair probability, edge, EV, +EV or -EV verdict, and Kelly fraction
Example 4: Line movement interpretation User says: "The line moved from -140 to -160, what does that mean?" Actions:
- Call
line_movement(open_odds=-140, close_odds=-160)Result: Present probability shift, direction, magnitude, and classification (sharp action, steam move, etc.)
Example 5: De-vig a standard spread User says: "What are the true odds for this spread? Both sides are -110" Actions:
- Call
devig(odds="-110,-110", format="american")Result: Present each side as 50% fair probability, vig is ~4.5%
Example 6: Odds format conversion User says: "Convert -200 to implied probability" Actions:
- Call
convert_odds(odds=-200, from_format="american")Result: Present 66.7% implied probability and 1.50 decimal odds
Commands that DO NOT exist — never call these
— does not exist. This module analyzes odds; it does not fetch them. Use nba-data/nfl-data/etc. for ESPN odds, or polymarket/kalshi for prediction market prices.get_odds— does not exist. Usecalculate_evfind_edgeorevaluate_betinstead.— does not exist. Use thecompare_marketsmarketsskill for cross-platform comparison.
If a command is not listed in references/api-reference.md, it does not exist.
Troubleshooting
Error: ValueError: unknown format when calling convert_odds
Cause: The from_format parameter is not one of american, decimal, or probability
Solution: Use exactly american, decimal, or probability as the format string
Error: find_edge returns negative EV when a positive edge is expected
Cause: Fair probability and market probability may be reversed, or de-vigging was skipped
Solution: Run devig on sportsbook odds first, then pass the de-vigged fair_prob to find_edge
Error: find_arbitrage shows no arbitrage even when prices seem low
Cause: Prices may sum to more than 1.0 when all outcomes are correctly included
Solution: Verify you are using the correct probabilities for all outcomes; check total_implied in the result
Error: Kelly fraction is very high (greater than 0.5)
Cause: Edge estimate is very large — often from a miscalculated fair probability
Solution: Use half-Kelly or quarter-Kelly for conservative sizing. Re-verify fair probability via devig
How to use betting 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 betting
Execute installation command
Execute the skills CLI command in your project's root directory to begin installation:
The skills CLI fetches betting 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 betting. Access the skill through slash commands (e.g., /betting) 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.7★★★★★32 reviews- ★★★★★Isabella Bansal· Dec 12, 2024
I recommend betting for anyone iterating fast on agent tooling; clear intent and a small, reviewable surface area.
- ★★★★★Amina Huang· Dec 8, 2024
We added betting from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Anika Gupta· Dec 8, 2024
Useful defaults in betting — fewer surprises than typical one-off scripts, and it plays nicely with `npx skills` flows.
- ★★★★★Harper Yang· Nov 27, 2024
betting has been reliable in day-to-day use. Documentation quality is above average for community skills.
- ★★★★★Isabella Robinson· Nov 3, 2024
Solid pick for teams standardizing on skills: betting is focused, and the summary matches what you get after install.
- ★★★★★Tariq Rahman· Oct 22, 2024
betting has been reliable in day-to-day use. Documentation quality is above average for community skills.
- ★★★★★Chinedu Singh· Oct 18, 2024
Solid pick for teams standardizing on skills: betting is focused, and the summary matches what you get after install.
- ★★★★★Chinedu Torres· Sep 9, 2024
We added betting from the explainx registry; install was straightforward and the SKILL.md answered most questions upfront.
- ★★★★★Sakshi Patil· Sep 5, 2024
betting is among the better-maintained entries we tried; worth keeping pinned for repeat workflows.
- ★★★★★Harper Abebe· Aug 28, 2024
betting fits our agent workflows well — practical, well scoped, and easy to wire into existing repos.
showing 1-10 of 32