← 返回 Skills 市场
harshilmathur

Cricket Live

作者 Harshil Mathur · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
751
总下载
1
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install cricket-live
功能描述
Provides real-time live cricket scores, detailed scorecards, upcoming matches, recent results, IPL standings, and match alerts using CricketData.org API.
使用说明 (SKILL.md)

🏏 Cricket Live

Live cricket scores, IPL tracking, and match alerts for OpenClaw.

Get real-time scores, upcoming schedules, detailed scorecards, and IPL standings — all from your OpenClaw agent. Powered by CricketData.org API (endpoint: api.cricapi.com).


✨ Features

  • 🔴 Live Scores — All currently live matches with real-time scores, overs, and status
  • 📋 Match Details — Full scorecards with batting and bowling stats
  • 📅 Upcoming Matches — Next 7 days of scheduled matches, filterable by team
  • Recent Results — Completed matches from the last 3 days
  • 🏆 IPL Hub — Standings, upcoming IPL matches, live scores, and results
  • 🔍 Match Search — Find any match by team name (supports aliases like "MI", "CSK", "AUS")
  • 🔔 Alerts — Cron-ready script for wicket, century, and result notifications
  • 💾 Smart Caching — Respects API quota with configurable TTL per endpoint
  • 🇮🇳 IST by Default — All times displayed in Indian Standard Time

🚀 Quick Start

1. Get a Free API Key

Sign up at cricketdata.org — the free tier gives you 100 API calls/day. (CricketData.org's API is served at api.cricapi.com — they are the same service.)

2. Set the Environment Variable

export CRICKET_API_KEY="your-api-key-here"
# Add to your shell profile or ~/.openclaw/.env for persistence

3. Run Any Script

bash scripts/live-scores.sh              # What's happening right now?
bash scripts/upcoming-matches.sh         # What's coming up?
bash scripts/ipl.sh standings            # IPL points table

📖 Usage

Live Scores

bash scripts/live-scores.sh

Shows all currently live matches with scores, overs, and match status.

Example output:

🏏 LIVE CRICKET SCORES
━━━━━━━━━━━━━━━━━━━━━

🔴 India vs England — 3rd Test, Day 2
🇮🇳 India: 285/6 (78.2 ov)
🏴 England: 312 (98.4 ov)
📊 India trail by 27 runs

🔴 Australia vs South Africa — 1st ODI
🇦🇺 Australia: 156/3 (28.1 ov)
📊 In Progress

Upcoming Matches

bash scripts/upcoming-matches.sh              # All upcoming
bash scripts/upcoming-matches.sh --team India  # Filter by team
bash scripts/upcoming-matches.sh MI            # Works with aliases

Example output:

📅 UPCOMING MATCHES (Next 7 Days)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

🇮🇳 India vs England — 4th Test
📍 Ranchi
🕐 16 Feb 2026, 09:30 AM IST

🏏 Mumbai Indians vs Chennai Super Kings — IPL 2026
📍 Wankhede Stadium, Mumbai
🕐 18 Feb 2026, 07:30 PM IST

Recent Results

bash scripts/recent-results.sh

Example output:

✅ RECENT RESULTS
━━━━━━━━━━━━━━━━━

🏆 India won by 5 wickets
India vs England — 2nd Test
📍 Visakhapatnam

🏆 Australia won by 73 runs
Australia vs Sri Lanka — 3rd ODI
📍 Melbourne

IPL Hub

bash scripts/ipl.sh standings   # Points table
bash scripts/ipl.sh upcoming    # Upcoming IPL matches
bash scripts/ipl.sh live        # Live IPL scores
bash scripts/ipl.sh results     # Recent IPL results

Match Details (Scorecard)

bash scripts/match-details.sh \x3Cmatch-id>

Get match IDs from live-scores or search results.

Search Matches

bash scripts/search-match.sh "India vs Australia"
bash scripts/search-match.sh "MI vs CSK"

Cricket Alerts (Cron)

bash scripts/cricket-alert.sh

Detects wickets, centuries, and match completions since last check. Outputs only when something notable happens — perfect for cron.


🗣️ Natural Language Mapping

User says Script
"What's the score?" / "Live scores" live-scores.sh
"Show me the scorecard for match X" match-details.sh \x3Cid>
"Upcoming matches" / "What's coming up?" upcoming-matches.sh
"Recent results" / "Who won?" recent-results.sh
"IPL table" / "IPL standings" ipl.sh standings
"IPL matches today" ipl.sh live
"India vs Australia" search-match.sh "India vs Australia"

⚙️ Configuration

config/cricket.yaml

Main configuration file. API key can be set here or via CRICKET_API_KEY env var (env var takes priority).

api_key: ""                    # Set via env var recommended
favorite_teams:                # Teams for alert filtering
  - India
  - Mumbai Indians
alert_events:                  # Events that trigger alerts
  - wicket
  - century
  - match_end
cache_dir: /tmp/cricket-cache  # Cache directory
cache_ttl:                     # Cache TTL in seconds per endpoint
  live: 120
  upcoming: 1800
  results: 1800
  series: 86400
  scorecard: 300

config/teams.yaml

Team name aliases for fuzzy matching. Maps shorthand names (MI, CSK, IND, AUS) to canonical API names. See config/README.md for details.


⏰ Cron Integration

Set up periodic match alerts:

# Check for notable events every 5 minutes during match hours
*/5 9-23 * * * CRICKET_API_KEY="your-key" bash /path/to/skills/cricket-scores/scripts/cricket-alert.sh

# Or use OpenClaw cron:
# Schedule cricket-alert.sh to run during IPL match times (7-11 PM IST)

The alert script tracks state in /tmp/cricket-alert-state.json and only outputs when something new happens (wicket, century, match result).


📊 API Quota Management

Tier Calls/Day Cost
Free 100 $0
Pro 2,000 $5.99/mo

How Caching Helps

All scripts cache API responses locally in /tmp/cricket-cache/:

  • Live scores: 2 min TTL (fresh during matches)
  • Upcoming/Results: 30 min TTL
  • Series info: 24 hour TTL
  • Scorecards: 5 min TTL

Budget During a Match Day

~10 list calls + ~50 score checks + 40 ad-hoc = 100 calls (fits free tier)

When Quota is Exhausted

Scripts show a clear message: "API quota exhausted (100 calls/day limit reached). Try again tomorrow or upgrade."


📂 Output Format

All output is messaging-friendly:

  • No markdown tables (works on WhatsApp, Discord, Telegram)
  • Bullet point lists with emoji
  • Times converted to IST
  • Match IDs included for drill-down

📋 Requirements

  • bash 4.0+
  • curl (usually pre-installed)
  • jqapt install jq or brew install jq
  • CricketData.org API key (free) — sign up at cricketdata.org

🔒 Security Notes

  • API key in URL query parameter: The CricketData.org API (api.cricapi.com) requires the API key to be passed as a URL query parameter (?apikey=...). This means the key may appear in shell history, process listings, server access logs, and any HTTP proxy/inspection logs. Mitigations:
    • Set the key via the CRICKET_API_KEY environment variable (not hardcoded in config files).
    • Use the free tier key for this skill — it has limited scope and can be rotated easily.
    • Avoid running scripts in shared/multi-tenant environments where process arguments are visible to other users.
    • The CricketData.org API does not support header-based authentication, so query-param passing is unavoidable.

📄 License

MIT — see LICENSE

安全使用建议
This skill appears to do what it says: a shell-based cricket scores client that needs an API key and the standard CLI tools (curl, jq). Before installing: 1) Verify the author/source — top-level metadata in the registry is inconsistent with skill.json (homepage/source fields point to a GitHub repo but registry lists 'unknown'); review that repository or the package files to ensure they match what you expect. 2) Provide only the CricketData API key (CRICKET_API_KEY); prefer setting it as an environment variable rather than embedding it in persistent files. 3) Ensure curl and jq are installed. 4) Note the scripts cache and keep state in /tmp; if you run alerts in cron, point cron to the correct script path and be aware of API quota (free tier ~100 calls/day). 5) If you need higher assurance, inspect the referenced GitHub repo and the scripts directly before use.
功能分析
Type: OpenClaw Skill Name: cricket-live Version: 1.0.0 The skill is classified as suspicious due to two main vulnerabilities, not malicious intent. Firstly, the `scripts/helpers.sh` file passes the API key as a URL query parameter to `api.cricapi.com` via `curl`, which can expose the key in shell history, process listings, and logs, as explicitly noted in `SKILL.md`. Secondly, the `to_ist()` function in `scripts/helpers.sh` uses `date -d "$utc_date"` to parse dates from the API response; if an attacker could compromise `api.cricapi.com` to inject shell metacharacters into the date string, it could lead to command injection. There is no evidence of intentional malicious behavior such as data exfiltration to unauthorized endpoints, backdoor installation, or prompt injection against the agent.
能力评估
Purpose & Capability
The scripts and SKILL.md implement live scores, match search, IPL features, caching, and cron alerts and require an API key plus curl/jq — all appropriate for the stated purpose. NOTE: registry metadata at the top claims no required env vars/binaries, but skill.json and SKILL.md/do scripts require CRICKET_API_KEY and binaries (curl, jq). Also the top-level 'Source/Homepage: unknown/none' contradicts skill.json which points to a GitHub repo. These metadata inconsistencies are likely packaging/metadata issues rather than malicious behavior, but you should verify the source before trusting it.
Instruction Scope
Runtime instructions and scripts only read their bundled config files (config/*.yaml), use /tmp for cache/state, and call the CricketData API (api.cricapi.com / api.cricketdata.org). They do not attempt to read unrelated system files, other skills' config, or transmit data to unexpected endpoints.
Install Mechanism
There is no install spec (instruction-only), and all code is included in the package as plain shell scripts. No remote downloads or installers are invoked. The scripts require bash >=4, curl, and jq to be present on the system.
Credentials
The only sensitive input requested is CRICKET_API_KEY (declared in skill.json and documented in SKILL.md), which is appropriate for an API client. The scripts optionally read config/cricket.yaml if the env var is absent. No other credentials, tokens, or unrelated environment variables are requested.
Persistence & Privilege
The skill does not request always:true and does not modify other skills or system-wide settings. It stores cache and transient state in /tmp (configurable), which is normal for a cron/CLI alert script.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install cricket-live
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /cricket-live 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Fresh publish — live scores, IPL, alerts
元数据
Slug cricket-live
版本 1.0.0
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Cricket Live 是什么?

Provides real-time live cricket scores, detailed scorecards, upcoming matches, recent results, IPL standings, and match alerts using CricketData.org API. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 751 次。

如何安装 Cricket Live?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install cricket-live」即可一键安装,无需额外配置。

Cricket Live 是免费的吗?

是的,Cricket Live 完全免费(开源免费),可自由下载、安装和使用。

Cricket Live 支持哪些平台?

Cricket Live 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Cricket Live?

由 Harshil Mathur(@harshilmathur)开发并维护,当前版本 v1.0.0。

💬 留言讨论