odds

Generates 1X2 betting odds feeds from The Odds API and an Elo model, then publishes them to a GitHub orphan branch.

Updated May 14, 2026
One-click install
npx skills add https://github.com/jesusprodriguezUnir/bracketMundial --skill odds-jesusprodriguezunir
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: odds
Source: https://github.com/jesusprodriguezUnir/bracketMundial/tree/main/.agents/skills/odds
Command: npx skills add https://github.com/jesusprodriguezUnir/bracketMundial --skill odds-jesusprodriguezunir

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires tsx.

What problem does it solve? Keeping the World Cup 2026 prediction app's 1X2 odds feed current requires manually fetching market odds, filling gaps with model estimates, regenerating the bundled offline seed, and force-pushing an orphan branch so the production app can consume the feed. This Skill automates that entire multi-step pipeline. ## Core Features & Use Cases - Feed Generation: Runs scripts/generate-odds.mjs to pull real market odds from The Odds API (when ODDS_API_KEY is set) and fills the remaining matches with Elo-model probabilities, always producing all 72 group-stage matches. - Offline Seed Regeneration: Rebuilds src/data/odds/seed.ts with --write-seed so the bundled fallback stays current when the external fetch fails. - Orphan Branch Publishing: Replicates the GitHub Actions cron by force-pushing odds-feed.json plus a static vercel.json to the odds-data branch that the live app reads. - Use Case: Before a matchday, ask the assistant to refresh the odds; it generates the feed, updates the seed, commits to main, and publishes the odds-data branch after your confirmation. ## Quick Start Ask the assistant to update and publish the latest World Cup 2026 odds feed for the app.

Frequently Asked Questions about odds

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I update the World Cup 2026 odds feed?▼

Run `npx tsx scripts/generate-odds.mjs` to generate odds-feed.json for all 72 group-stage matches. With an ODDS_API_KEY in .env it mixes real market odds with Elo-model estimates; without it, every match uses model probabilities.

How does the app get odds when The Odds API has no market data?▼

Matches without market odds are filled by an Elo-based probability model built from src/data/team-strength.ts and src/lib/odds-model.ts, marked as source 'model'. This is the normal case until days before matches in June 2026.

How do I regenerate the offline odds seed bundle?▼

Run `npx tsx scripts/generate-odds.mjs --write-seed` to rebuild src/data/odds/seed.ts with all 72 matches, then commit it to main. The seed is the bundled fallback when the external feed fetch fails or returns empty.

Why does the app still show old odds after publishing the feed?▼

The app caches the feed in localStorage with a 6-hour TTL under the key odds:feed:v2. After publishing, users need a hard reload (Ctrl+Shift+R) or must wait for the cache to expire to see updated odds.

Is it safe to force-push the odds-data branch?▼

The odds-data branch is an orphan branch containing only odds-feed.json and a static vercel.json, so force-pushing it does not affect main. The Skill requires a clean working tree and explicit user confirmation before executing the force push.