← 返回 Skills 市场
earthking11

dota2 XG next game

作者 earthking11 · GitHub ↗ · v1.1.0 · MIT-0
cross-platform ✓ 安全检测通过
153
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install dota2-xg-next-game
功能描述
查询 Xtreme Gaming (XG) 战队的下一场比赛信息。通过 Liquipedia API 获取精准、实时的赛程数据。当用户询问 XG 何时有比赛或下一场对手是谁时调用。
使用说明 (SKILL.md)

dota2 XG next game (API Edition)

这个技能通过 Liquipedia MediaWiki API 接口直接获取 Xtreme Gaming (XG) 的赛程数据,完美绕过前端页面的反爬限制(403 Forbidden)和代理环境(TUN 模式)下的 SSRF 拦截。

运行逻辑

  1. API 抓取 (核心)
    • 指令:使用 RunCommand 执行以下 curl 命令(必须带 User-Agent): curl -H "User-Agent: Trae/1.0 (OpenClaw Skill)" -s "https://liquipedia.net/dota2/api.php?action=parse&page=Xtreme_Gaming&format=json&prop=text|sections"
    • 优势:API 接口数据量小且极其稳定,不触发验证码。
  2. 解析 JSON 数据
    • 在返回的 JSON 中查找 sections 列表,定位到 anchorUpcoming_Matchesindex(通常在末尾)。
    • 根据该 index 提取对应的 text 内容。
  3. 深入分析赛程阶段
    • 从提取的内容中识别下一场比赛所在的赛事(Tournament)。
    • 如果需要进一步确认赛事轮次(如败者组 Lower Bracket),可对该赛事页面再次调用 API。
  4. 输出结果:将提取到的信息以自然语言形式展示给用户,并包含以下关键点:
    • 赛事名称 (Tournament Name)
    • 比赛时间 (Match Time)
    • 对手 (Opponent)
    • 当前轮次 (Round)
    • 生死战提示:如果是败者组(Lower Bracket),必须提示这是“生死战”。
    • 特别彩蛋:如果是生死战,必须输出“输了ame就回家啦🤣”。

输出风格 (LLM 优化)

  • 自然语言:严禁直接打印原始 JSON。使用口语化、像在哥们儿聊天一样的语气来总结比赛信息。
  • 态度鲜明:保持 "ame hater" 的设定。在提及 Ame 的表现或潜在后果时,可以带点调侃、恨铁不成钢、或准备看戏的语气。
  • 关键信息加粗:将时间、对手、赛制(如 Bo3)和轮次加粗。

使用场景

  • 当用户询问 "XG 下一场打谁?"、"XG 什么时候有比赛?"、"XG 赛程" 等与未来比赛相关的话题时。

注意事项

  • 时区转换:Liquipedia 原始数据通常为 UTC,必须手动换算为北京时间(CST, UTC+8)。
  • 无赛程处理:如果 API 返回中找不到 Upcoming_Matches 节点,说明该战队目前没有已公开的未来赛程。
  • 解析效率:API 返回的内容比 HTML 干净得多,Agent 应当利用这种结构化优势进行精准提取。
  • 保持人设:不要忘了作者是 "ame hater",在输出最后记得加上彩蛋。
安全使用建议
This skill appears internally consistent and low risk: it only makes HTTP calls to Liquipedia and parses returned JSON using curl/jq and asks for no credentials. Before installing, consider: (1) whether you’re comfortable the skill will use the specified User-Agent string (it hardcodes one), (2) potential rate-limiting or acceptable-use rules on Liquipedia you might want to respect, and (3) the skill’s enforced persona/taunts (offensive or targeted comments like the required '输了ame就回家啦🤣') — if that content is unwanted in your environment, avoid enabling it or ask for a variant without the persona. If you run the agent in a locked network or with SSRF protections, verify the runtime allows outbound calls to liquipedia.net as expected.
功能分析
Type: OpenClaw Skill Name: dota2-xg-next-game Version: 1.1.0 The skill is a functional utility designed to fetch Dota 2 match schedules for the team Xtreme Gaming via the Liquipedia API. It uses standard tools (curl, jq) to access public data and provides instructions for data parsing and timezone conversion. While it mandates a specific 'ame hater' persona and includes biased commentary in the output instructions (SKILL.md), these behaviors are thematic and do not demonstrate malicious intent, data exfiltration, or system compromise.
能力评估
Purpose & Capability
The name/description claim to fetch XG's next match from Liquipedia; the SKILL.md only requires curl and jq and shows curl requests to liquipedia.net API endpoints — these requirements are proportional and expected for the task.
Instruction Scope
Instructions explicitly tell the agent to run a curl command against Liquipedia's api.php parse action, locate the 'Upcoming_Matches' section, and optionally call related event pages for clarification. The steps stay within the stated scope (no file reads, no unrelated env vars). Note: the skill enforces a persona ('ame hater') and a required taunt string in outputs — this is behaviorally prescriptive but not a security incoherence. Also, SKILL.md claims the API 'perfectly bypasses front-end anti-scrape and SSRF' (a claim about effectiveness) — that is not an instruction to perform anything outside normal API calls, but you should be aware it is asserting evasion capability.
Install Mechanism
Instruction-only skill with no install spec and no code files — lowest-risk install model. It relies on existing curl and jq binaries being present.
Credentials
The skill requests no environment variables or credentials. Requiring curl and jq is appropriate for making HTTP requests and parsing JSON/HTML fragments. There are no requests for unrelated secrets or config paths.
Persistence & Privilege
always is false and there is no install process that modifies other skills or system-wide settings. Autonomous invocation is allowed (platform default) but the skill does not request elevated or persistent privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install dota2-xg-next-game
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /dota2-xg-next-game 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
**重大更新:改为通过Liquipedia API抓取XG赛程,提升数据准确性与访问稳定性。** - 直接调用Liquipedia API实时获取XG战队下一场比赛数据,无需解析网页,规避前端反爬与代理限制。 - 输出风格升级,继续保持“ame hater”视角与调侃口吻,所有关键信息如时间、对手等会加粗。 - 明确“生死战”提示与Ame彩蛋逻辑,提升有趣性和辨识度。 - 新增依赖说明(curl、jq),API操作需有User-Agent标识。 - 支持时区自动换算为北京时间,并对无赛程场景友好提示。
v1.0.1
1.0
元数据
Slug dota2-xg-next-game
版本 1.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

dota2 XG next game 是什么?

查询 Xtreme Gaming (XG) 战队的下一场比赛信息。通过 Liquipedia API 获取精准、实时的赛程数据。当用户询问 XG 何时有比赛或下一场对手是谁时调用。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 153 次。

如何安装 dota2 XG next game?

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

dota2 XG next game 是免费的吗?

是的,dota2 XG next game 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

dota2 XG next game 支持哪些平台?

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

谁开发了 dota2 XG next game?

由 earthking11(@earthking11)开发并维护,当前版本 v1.1.0。

💬 留言讨论