lol-analyst for Openclaw

An AI-powered League of Legends data analyst skill that queries Riot Games API for match history, champion masteries, and ranked stats, delivering localized HTML reports and intelligent climbing strategies.

bettermen
v1.0.0
Jun 11, 2026
0
428
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install lol-analyst

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install lol-analyst using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is lol-analyst?

The lol-analyst skill is an intelligent League of Legends data analysis assistant built for AI coding agents and platforms integrated with Openclaw Skills. By interfacing directly with the official Riot Games API, it enables players and developers to query real-time summoner profiles, ranked ladders, match histories, and champion masteries using natural language commands in Chinese and English.

Integrating seamlessly with Openclaw Skills, this tool translates complex raw JSON responses from Riot's endpoints into elegant, self-contained HTML reports. AI agents can then read these reports and apply advanced LLM synthesis to deliver actionable, data-driven suggestions for climbing the ranks, comparing champion stats, and identifying mechanical improvements.

lol-analyst Use Cases

  • Querying real-time summoner rankings and win rates directly from a chat interface powered by Openclaw Skills.
  • Generating comprehensive match history reports for the last 20 games to identify performance trends.
  • Comparing champion metrics (such as Jinx vs. Caitlyn) to optimize champion pool selections and win rates.
  • Ingesting match metrics with Openclaw Skills to receive automated, personalized suggestions for tactical gameplay improvements.

How lol-analyst Works

  1. The user invokes the skill using natural language triggers (e.g., '看看 Faker#KR1 的排位' or '分析我最近的对局').
  2. The AI agent processes the request and invokes the lol_analyst.py CLI script, passing parameters like summoner name, tag, region, and target action.
  3. The riot_client.py module makes authorized HTTPS calls to the official Riot Games API using the configured RIOT_API_KEY.
  4. The report_generator.py module parses the raw data payloads and generates a self-contained, responsive HTML report with zero external frontend dependencies.
  5. The CLI outputs the path to the HTML report using the standard file wrapper format (__OUTPUT_FILE__:C:\\path\\to\\file.html).
  6. The hosting environment reads the generated HTML, serves it via a preview URL, and triggers an LLM to explain the key statistics in the user's preferred language.

lol-analyst Setup

1. Prerequisites

Ensure you have Python 3.10+ installed. To use this skill with your Openclaw Skills environment, install the necessary dependencies first:

pip install riotwatcher

2. Obtain Riot Games API Key

  1. Visit the Riot Developer Portal.
  2. Log in with your Riot Games account (your standard game account).
  3. Copy the automatically generated Development API Key (valid for 24 hours), or register an app for a permanent Personal API Key.

3. Configure the Skill

You can configure your API key either by setting an environment variable:

export RIOT_API_KEY="RGAPI-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

Or by initializing the setup directly via CLI:

python lol_analyst.py --setup --api-key "RGAPI-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

lol-analyst Data Schema & Taxonomy

The lol-analyst skill organizes its code in a clean, modular structure and generates self-contained HTML files as output.

File Structure

Path Description
scripts/lol_analyst.py Main entry CLI wrapper parsing arguments.
scripts/riot_client.py Encapsulates the Riot Games API communication via riotwatcher.
scripts/config_manager.py Handles key storage and system configuration.
scripts/report_generator.py Builds stand-alone HTML visualization reports.
requirements.txt Defines external Python library dependencies.

Generated Reports Metadata

When a query executes, the tool generates static HTML reports, ensuring zero client-side external framework dependencies. The AI agent interprets these reports using the following output convention:

__OUTPUT_FILE__:C:\\path\\to\\report.html

lol-analyst Advanced Features

  • Multi-Region Routing: Dynamically queries across 13 regions including KR, NA1, EUW1, TW2, and JP1 by adjusting CLI arguments.
  • Autonomous Fallback Execution: Gently guides users step-by-step to register and configure a Riot developer account when API key errors are detected.
  • Zero-Dependency Reports: Generates lightweight, beautifully styled HTML summaries using Python's standard libraries, removing modern framework bloat for maximum speed.
  • LLM-Driven Strategy Synthesis: Plugs directly into Openclaw Skills to allow agents to ingest game tables and generate custom tactical improvement plans based on match metrics.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*