/install worldcup-predictor
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
- https://sports.163.com/caipiao/worldcup2026
- 72 matches (groups A-L), with completed scores
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:
- Base Elo: Team strength (50-100) mapped to Elo 1300-2000
- Form bonus: Points from completed group matches add Elo
- Home advantage: +70 Elo (~3-5% win rate boost)
- Win probability: Standard Elo formula
1 / (1 + 10^((elo_away - elo_home) / 400)) - Draw probability: Dynamic based on team closeness (15-35%)
- 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
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install worldcup-predictor - 安装完成后,直接呼叫该 Skill 的名称或使用
/worldcup-predictor触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
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. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 38 次。
如何安装 Worldcup Predictor?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install worldcup-predictor」即可一键安装,无需额外配置。
Worldcup Predictor 是免费的吗?
是的,Worldcup Predictor 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Worldcup Predictor 支持哪些平台?
Worldcup Predictor 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Worldcup Predictor?
由 U3UT7(@ravenquasar)开发并维护,当前版本 v1.0.0。