riot-games

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Riot Games Skill

Riot Games Skill

Overview

概述

Enables Claude to interact with Riot Games account for viewing game statistics, tracking ranked progress, managing account settings, and checking event rewards across League of Legends, Valorant, and other Riot titles.
让Claude能够与Riot Games账号交互,查看游戏统计数据、追踪排位进度、管理账号设置,并查看《英雄联盟》《无畏契约》及其他Riot旗下游戏的活动奖励。

Quick Install

快速安装

bash
curl -sSL https://canifi.com/skills/riot-games/install.sh | bash
Or manually:
bash
cp -r skills/riot-games ~/.canifi/skills/
bash
curl -sSL https://canifi.com/skills/riot-games/install.sh | bash
或手动安装:
bash
cp -r skills/riot-games ~/.canifi/skills/

Setup

设置

Configure via canifi-env:
bash
undefined
通过canifi-env进行配置:
bash
undefined

First, ensure canifi-env is installed:

首先,确保已安装canifi-env:

canifi-env set RIOT_EMAIL "your-email@example.com"
undefined
canifi-env set RIOT_EMAIL "your-email@example.com"
undefined

Privacy & Authentication

隐私与认证

Your credentials, your choice. Canifi LifeOS respects your privacy.
你的凭据,由你掌控。 Canifi LifeOS尊重你的隐私。

Option 1: Manual Browser Login (Recommended)

选项1:手动浏览器登录(推荐)

If you prefer not to share credentials with Claude Code:
  1. Complete the Browser Automation Setup using CDP mode
  2. Login to the service manually in the Playwright-controlled Chrome window
  3. Claude will use your authenticated session without ever seeing your password
如果你不想与Claude Code共享凭据:
  1. 使用CDP模式完成浏览器自动化设置
  2. 在Playwright控制的Chrome窗口中手动登录服务
  3. Claude将使用你的已认证会话,全程不会获取你的密码

Option 2: Environment Variables

选项2:环境变量

If you're comfortable sharing credentials, you can store them locally:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"
Note: Credentials stored in canifi-env are only accessible locally on your machine and are never transmitted.
如果你愿意共享凭据,可以将其存储在本地:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"
注意:存储在canifi-env中的凭据仅可在你的本地设备访问,绝不会被传输。

Capabilities

功能特性

  • View stats across Riot games
  • Track ranked progress and history
  • Check event passes and missions
  • Manage Riot Points balance
  • View match history
  • 查看Riot旗下所有游戏的数据统计
  • 追踪排位进度与历史记录
  • 查看活动通行证与任务
  • 管理Riot Points余额
  • 查看比赛历史

Usage Examples

使用示例

Example 1: Ranked Progress

示例1:排位进度

User: "What's my Valorant rank?"
Claude: I'll check your Valorant competitive ranking and recent matches.
用户:"我的Valorant段位是什么?"
Claude:我将查询你的Valorant竞技段位及近期比赛情况。

Example 2: Event Missions

示例2:活动任务

User: "What missions do I have in League?"
Claude: I'll check your active League of Legends missions and event progress.
用户:"我在《英雄联盟》中有哪些任务?"
Claude:我将查询你当前的《英雄联盟》活动任务及进度。

Example 3: Match History

示例3:比赛历史

User: "Show me my recent Valorant games"
Claude: I'll pull up your recent Valorant match history with stats.
用户:"展示我近期的Valorant比赛记录"
Claude:我将为你调取近期Valorant比赛历史及数据统计。

Authentication Flow

认证流程

  1. Navigate to account.riotgames.com via Playwright MCP
  2. Click "Sign In" button
  3. Enter Riot credentials
  4. Handle 2FA if enabled
  5. Maintain session for subsequent requests
  1. 通过Playwright MCP导航至account.riotgames.com
  2. 点击“登录”按钮
  3. 输入Riot凭据
  4. 若启用2FA则处理验证
  5. 维持会话以用于后续请求

Error Handling

错误处理

  • Login Failed: Retry authentication up to 3 times, then notify via iMessage
  • Session Expired: Re-authenticate with Riot
  • 2FA Required: Wait for code via email
  • Rate Limited: Implement exponential backoff
  • Region Mismatch: Handle multi-region accounts
  • 登录失败:最多重试3次认证,随后通过iMessage通知
  • 会话过期:重新向Riot认证
  • 需要2FA:等待邮件验证码
  • 速率限制:实现指数退避机制
  • 区域不匹配:处理多区域账号

Self-Improvement Instructions

自我改进说明

When encountering new UI patterns:
  1. Document Riot account changes
  2. Update selectors for new layouts
  3. Track new game additions
  4. Monitor event schedules
遇到新的UI模式时:
  1. 记录Riot账号界面变更
  2. 更新针对新布局的选择器
  3. 追踪新增游戏
  4. 监控活动日程

Notes

注意事项

  • Single account for all Riot games
  • Regional servers affect matchmaking
  • Riot Points shared across games
  • Prime Gaming rewards available
  • 单个账号可用于所有Riot旗下游戏
  • 区域服务器会影响匹配机制
  • Riot Points可在各游戏间共享
  • 可领取Prime Gaming奖励