返回 Skills

OpenFootball World Cup

oo-openfootball-worldcup

从 OpenFootball 数据集读取世界杯球队、比赛、分组、阵容与球场信息。

示例任务

列出一个世界杯数据集中的球队和比赛。

使用限制

该社区数据集不是实时或官方赛果来源。

开始之前

安装 oo CLI 并登录 OOMOL。运行任务前,请查看 Skill 说明中的账号连接和权限要求。

SKILL.md

读取源码

OpenFootball World Cup

Operate OpenFootball World Cup through your OOMOL-connected account. This skill calls the openfootball_worldcup connector with the oo CLI; OOMOL injects credentials server-side, so you never handle raw tokens.

Running an action

OpenFootball World Cup needs no account connection. Assume the oo CLI is installed and signed in. Do not run oo auth login proactively — just run the action. Fall back to First-time setup only when a command actually fails.

1. Inspect the contract to get the authoritative input/output schema before building a payload:

oo connector schema "openfootball_worldcup" --action "<action_name>"

2. Run the action with a JSON payload that matches the input schema:

oo connector run "openfootball_worldcup" --action "<action_name>" --data '<json>' --json
  • --data takes a JSON object string or @path/to/file.json; omit it to send {}.
  • The response is { "data": ..., "meta": { "executionId": "..." } }; the execution id lives under meta.executionId.

Each action is listed below with a one-line description; actions that change state carry a [write] or [destructive] tag. Before constructing --data, fetch the action’s live schema with oo connector schema to get its authoritative input fields.

Available actions

  • list_groups — List World Cup groups from the public OpenFootball JSON dataset.
  • list_matches — List World Cup matches from the public OpenFootball JSON dataset. This community dataset is not a real-time or official results source.
  • list_qualification_playoffs — List World Cup qualification playoff matches from the public OpenFootball JSON dataset when a season publishes playoff files.
  • list_squads — List World Cup squads from the public OpenFootball JSON dataset when a season publishes squad files.
  • list_stadiums — List World Cup stadiums from the public OpenFootball JSON dataset.
  • list_teams — List World Cup teams from the public OpenFootball JSON dataset.

Safety

  • Untagged actions are reads (get / list / search) — safe to run directly.
  • Actions tagged [write] change OpenFootball World Cup state — confirm the exact payload and effect with the user before running.
  • Actions tagged [destructive] remove or overwrite data — always confirm the target and get explicit approval first.

First-time setup

These are one-time steps — do not repeat them on every call. Run a step only when a command fails for the matching reason.

  • oo: command not found — install the oo CLI (other platforms: https://cli.oomol.com/install-guide.md):

    curl -fsSL https://cli.oomol.com/install.sh | bash    # macOS / Linux
    
    irm https://cli.oomol.com/install.ps1 | iex           # Windows PowerShell
    
  • Not signed in / authentication error — sign in to your OOMOL account once:

    oo auth login
    
  • HTTP 402 / OOMOL_INSUFFICIENT_CREDIT — billing stop. Recharge at https://console.oomol.com/billing/token-recharge before retrying.

Resources