← Back to Skills Marketplace
ravenquasar

Worldcup Predictor

by U3UT7 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
38
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install worldcup-predictor
Description
Predict World Cup 2026 match outcomes using Elo ratings and Poisson model for win/draw/loss %, score, odds, and key analysis by team or match.
README (SKILL.md)

World Cup Predictor

A World Cup match prediction tool based on the BALLDONTLIE FIFA World Cup API and NetEase Sports schedule data.

Features

  • 48 teams with Elo-based strength ratings
  • 72 matches (group stage A-L) with schedule and live results
  • Elo + Poisson prediction model with home advantage
  • Theoretical odds based on win probability (93% payout)
  • Team next-match lookup and prediction

Data Sources

BALLDONTLIE FIFA World Cup API

  • Site: https://fifa.balldontlie.io
  • API Base: https://api.balldontlie.io/fifa/worldcup/v1
  • Auth: HTTP Header Authorization: YOUR_API_KEY
  • OpenAPI spec: https://www.balldontlie.io/openapi/fifa.yml

NetEase Sports Schedule

API Key Setup

Store API key in configuration file:

{
  "skills": {
    "worldcup-predictor": {
      "api_key": "your-api-key-here"
    }
  }
}

Free Tier Endpoints

Endpoint Path Free
Teams /teams
Stadiums /stadiums
Standings /group_standings ❌ (ALL-STAR)
Matches /matches ❌ (ALL-STAR)
Odds /odds ❌ (GOAT)

Prediction Model

The model uses Elo rating + Poisson distribution:

  1. Base Elo: Team strength (50-100) mapped to Elo 1300-2000
  2. Form bonus: Points from completed group matches add Elo
  3. Home advantage: +70 Elo (~3-5% win rate boost)
  4. Win probability: Standard Elo formula 1 / (1 + 10^((elo_away - elo_home) / 400))
  5. Draw probability: Dynamic based on team closeness (15-35%)
  6. Score prediction: Poisson-based expected goals

Example Output

📊 Prediction Report
══════════════════════════════════════════════════
  🇦🇷 Argentina             vs 🇦🇹 Austria

  📈 Team Strength:
  🇦🇷 Argentina   [█████████░] 95
  🇦🇹 Austria      [███████░░░] 78

  📊 Win Probability:
  🇦🇷 Argentina:   69.0%
  🤝 Draw:         19.3%
  🇦🇹 Austria:     11.7%

  ⚽ Predicted:    3 - 2

  🔑 Key Analysis:
    • Argentina clearly stronger (gap 17 pts)
    • Low draw probability due to strength gap

Usage

Commands

# List all 48 teams with strength ratings
python3 predict.py teams

# View full match schedule
python3 predict.py schedule

# View upcoming matches only
python3 predict.py schedule --upcoming

# Predict a specific match
python3 predict.py match "Brazil" "Morocco"

# Find a team's next match and predict
python3 predict.py team "Argentina"

# Today's matches with predictions
python3 predict.py today

# Refresh schedule from built-in data
python3 predict.py update

Examples

# Predict Argentina vs Austria
python3 predict.py match "Argentina" "Austria"

# Check Argentina's next match
python3 predict.py team "Argentina"

# See all upcoming matches
python3 predict.py schedule --upcoming

# See today's predictions
python3 predict.py today

File Structure

worldcup-predictor/
├── SKILL.md
└── scripts/
    ├── predict.py       # Main prediction script
    └── schedule.json    # Cached match data (auto-generated)

Configuration

The script reads the API key from the OpenClaw config at ~/.openclaw/openclaw.json:

{
  "skills": {
    "worldcup-predictor": {
      "api_key": "your-api-key-here"
    }
  }
}

Notes

  • Free tier: Team & stadium data only
  • ALL-STAR ($9.99/mo): Adds standings + match data (60 req/min)
  • GOAT ($39.99/mo): Full access including odds (600 req/min)
  • No API required for schedule: Built-in 72 match data from NetEase Sports
Usage Guidance
Before installing, know that the skill can read its configured BALLDONTLIE API key from your OpenClaw config and use it for requests to that sports API. Its local persistence is limited to a schedule cache in the skill scripts directory.
Capability Tags
requires-sensitive-credentials
Capability Assessment
Purpose & Capability
The SKILL.md and Python script consistently implement World Cup team lookup, schedules, and match predictions using hardcoded schedule/team data plus optional BALLDONTLIE API access.
Instruction Scope
Runtime behavior is command-driven through predict.py subcommands; there are no prompt overrides, hidden agent instructions, automatic background tasks, or unrelated actions.
Install Mechanism
The artifact contains a markdown skill file and one Python script with no installer hooks, package-manager scripts, or dependency setup that would run automatically.
Credentials
The script reads the configured skill API key from ~/.openclaw/openclaw.json and sends it as an Authorization header only to the declared BALLDONTLIE API, which is proportionate but involves a third-party credential.
Persistence & Privilege
The script may create or overwrite scripts/schedule.json as a local match schedule cache; this is disclosed, narrow, and not privileged.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install worldcup-predictor
  3. After installation, invoke the skill by name or use /worldcup-predictor
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Worldcup-predictor v1.0.0 – Initial Release - Predicts FIFA World Cup 2026 match outcomes using Elo and Poisson models. - Uses BALLDONTLIE FIFA API for team, stadium, and (with subscription) match/odds data. - Integrates NetEase Sports schedule and completed scores for 72 group stage matches. - Outputs win/draw/loss probabilities, predicted scores, odds, and key analysis. - Supports commands for team lookup, match predictions, full/upcoming/today’s schedules. - API key setup and tiered API access information included.
Metadata
Slug worldcup-predictor
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is Worldcup Predictor?

Predict World Cup 2026 match outcomes using Elo ratings and Poisson model for win/draw/loss %, score, odds, and key analysis by team or match. It is an AI Agent Skill for Claude Code / OpenClaw, with 38 downloads so far.

How do I install Worldcup Predictor?

Run "/install worldcup-predictor" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Worldcup Predictor free?

Yes, Worldcup Predictor is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Worldcup Predictor support?

Worldcup Predictor is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Worldcup Predictor?

It is built and maintained by U3UT7 (@ravenquasar); the current version is v1.0.0.

💬 Comments