运行时依赖
安装命令
点击复制技能文档
Dota 2 统计查询技能(完全 API 覆盖) 此技能使用 Python 脚本通过 OpenDota API 查询 Dota 2 数据,覆盖所有 API 端点。 工具脚本 Claude 代码 ~/.claude/skills/dota2-stats-skill/scripts/dota2_query.py OpenClaw ~/.openclaw/plugin-skills/dota2-stats-skill/scripts/dota2_query.py 仅使用 Python 标准库,无需第三方依赖。 配置完整的 HTTP 头以避免 403 错误。 命令(27 个) 玩家命令 python scripts/dota2_query.py search # 查询玩家 python scripts/dota2_query.py player # 玩家信息/排名/胜率 python scripts/dota2_query.py wl [--days/--hero_id/--lobby_type] # 胜负统计 python scripts/dota2_query.py recent # 近期比赛(约 20 场) python scripts/dota2_query.py matches [--limit/--hero_id/--days] # 完整比赛历史 python scripts/dota2_query.py heroes [--limit N] # 英雄使用统计 python scripts/dota2_query.py peers [--limit N] # 常见队友 python scripts/dota2_query.py totals [filters] # 职业生涯总计(杀敌/助攻等) python scripts/dota2_query.py counts # 分类统计 python scripts/dota2_query.py rankings # 玩家英雄排名 python scripts/dota2_query.py ratings # 排名历史 python scripts/dota2_query.py refresh # 刷新玩家数据 比赛命令 python scripts/dota2_query.py match # 单场比赛详情(10 名玩家) 英雄命令 python scripts/dota2_query.py hero_list # 所有英雄列表 python scripts/dota2_query.py hero_stats # 全球英雄统计 python scripts/dota2_query.py hero_matchups # 英雄对战胜率 python scripts/dota2_query.py hero_rankings # 英雄排行榜(顶级玩家) python scripts/dota2_query.py benchmarks # 英雄性能基准 全局/职业命令 python scripts/dota2_query.py pro_players # 职业玩家列表 python scripts/dota2_query.py pro_matches [--limit N] # 职业比赛 python scripts/dota2_query.py public_matches [--min_rank] # 公开比赛 python scripts/dota2_query.py live # 现场比赛 python scripts/dota2_query.py teams [--limit N] # 队伍列表 python scripts/dota2_query.py team # 队伍详情+阵容+比赛 python scripts/dota2_query.py leagues # 联赛列表 python scripts/dota2_query.py constants # 游戏常数(英雄/物品等) python scripts/dota2_query.py find_matches --teamA 1,2 --teamB 3,4 # 按英雄阵容搜索 常见过滤器 --days N — 最近 N 天 --hero_id N — 特定英雄 ID --lobby_type N — 大厅类型(7=排名) --game_mode N — 游戏模式 --limit N — 限制结果 --lang zh|en — 输出语言(默认中文) 使用流程 当用户提供玩家名称:search → 获取 account_id player → 查看基本信息 recent → 查看近期比赛 Steam ID 转换:account_id = steam64_id - 76561197960265728 排名等级 等级 英文 中文 1 Herald 先锋 2 Guardian 卫士 3 Crusader 中军 4 Archon 统帅 5 Legend 传奇 6 Ancient 万古流芳 7 Divine 超凡入圣 8 Immortal 冠绝一世 注释 仅使用 Python 标准库,无需 pip 安装 配置浏览器级别的 HTTP 头以防止 403 错误 玩家需要启用“公开比赛数据” 内置 127 个英雄的中文名称 根据用户问题的语言选择输出语言,使用 --lang en 为英文,--lang zh 为中文