← 返回 Skills 市场
ravenquasar

Worldcup Predictor

作者 U3UT7 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
38
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install 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.
使用说明 (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
安全使用建议
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.
能力标签
requires-sensitive-credentials
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install worldcup-predictor
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /worldcup-predictor 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
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.
元数据
Slug worldcup-predictor
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

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。

💬 留言讨论