360 Secure SkillHub
360 安全技能中心

Soccer Cli

该 Skill 提供一个 Go 编写的 soccer-cli 命令行工具,通过 API-Football 服务查询球队最新比分、指定比赛的事件详情以及比赛阵容、球员评分与出场时间。需先运行 install.sh 编译安装,再在配置文件中填入 API-Football 的 API key,通过 scores、game、squad 三个子命令以文本形式输出结果。

jrojas537
jrojas537
热度 66.28
最近更新 2026-05-11 17:26:03
分类:生活依赖:代码执行 / 读写文件 / 第三方 API

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add soccer-cli
Metadata
name
soccer-cli
version
1.0.0
author
J R
description
A CLI to check soccer scores, game details, and player stats from your terminal.
requires
{"bins":[{"name":"go","version":">=1.18"}]}
install
install.sh
usage
soccer-cli scores "Manchester United" soccer-cli game <fixture_id> soccer-cli squad <fixture_id>

soccer-cli

A command-line interface to check soccer scores, game details, and player stats using the API-Football service.

Description

This skill provides a set of commands to quickly retrieve football data directly in your terminal. You can get the latest score for your favorite team, see detailed events from a specific match (like goals and cards), and view the full squad with player ratings and minutes played.

Installation

  1. Run the installer:

    ./install.sh
    

    This will compile the Go program and move the soccer-cli binary to ~/.local/bin/.

  2. Configure API Key: The CLI needs an API key from API-Football.

    Create a configuration file at ~/.config/soccer-cli/config.yaml:

    mkdir -p ~/.config/soccer-cli
    touch ~/.config/soccer-cli/config.yaml
    

    Add your API key to the file in the following format:

    apikey: YOUR_API_KEY_HERE
    

Usage

  • Get the latest score for a team:

    soccer-cli scores "<team-name>"
    

    Example: soccer-cli scores "Real Madrid"

  • Get detailed events from a game: (Use the Fixture ID from the scores command)

    soccer-cli game <fixture_id>
    

    Example: soccer-cli game 123456

  • Get the squad and player stats for a game:

    soccer-cli squad <fixture_id>
    

    Example: soccer-cli squad 123456