Leetify API Skill
Access CS2 statistics and match data from the Leetify platform.
Quick Stats
Use these commands for general statistics, ranks, and recent performance.
Show Statistics
bash scripts/get_stats_by_username.sh USERNAME
Displays averages, recent match performance, and ranks.
Get Match Data
bash scripts/get_match_details.sh USERNAME [INDEX]
Fetches raw JSON statistics for a specific match. When presenting this data, provide a structured report covering shooting, utility usage, and performance metrics.
Compare Players
bash scripts/compare_by_username.sh USERNAME1 USERNAME2
Compares two players based on their Leetify profiles.
Season Stats
python3 scripts/season_stats.py
Provides a summary table for players tracked in the local database.
Demo Analysis
Use this workflow for detailed tactical reviews and round-by-round breakdowns.
1. Identify the Player
- - Resolve Steam ID: INLINECODE0
- Match the player in the match log using the resolved Steam ID.
2. Generate Match Log
python3 scripts/analyze_last_demo.py --username USERNAME [--match-index N] [--no-cache]
- - Downloads and parses the demo file (requires significant memory).
- Generates a text log containing scoreboard and round timeline.
3. Analyze Performance
Review the generated log to assess:
- - Shooting accuracy and trade efficiency.
- Utility effectiveness (flash duration, grenade damage).
- Role performance (entry, anchor, support).
- Tactical highlights and mistakes.
Actionable recommendations can be provided based on the observed patterns. Guides or tutorials for specific map positions may be referenced if performance in those areas was suboptimal.
Data Management
Manage Steam IDs
CODEBLOCK5
Configuration
The skill requires the LEETIFY_API_KEY environment variable.
API documentation is available at: https://api-public-docs.cs-prod.leetify.com/
Leetify API 技能
从 Leetify 平台获取 CS2 统计数据与比赛数据。
快速统计
使用以下命令获取常规统计、段位及近期表现。
显示统计数据
bash
bash scripts/get
statsby_username.sh 用户名
显示平均值、近期比赛表现及段位信息。
获取比赛数据
bash
bash scripts/get
matchdetails.sh 用户名 [索引]
获取指定比赛的原始 JSON 统计数据。呈现数据时,需提供涵盖射击、道具使用及表现指标的结构化报告。
对比玩家
bash
bash scripts/compare
byusername.sh 玩家1 玩家2
基于 Leetify 档案对比两名玩家。
赛季统计
bash
python3 scripts/season_stats.py
提供本地数据库中追踪玩家的汇总表格。
回放分析
使用此工作流进行详细的战术复盘与回合拆解。
1. 识别玩家
- - 解析 Steam ID:python3 scripts/steam_ids.py get --username 用户名
- 使用解析后的 Steam ID 在比赛日志中匹配该玩家。
2. 生成比赛日志
bash
python3 scripts/analyze
lastdemo.py --username 用户名 [--match-index N] [--no-cache]
- - 下载并解析回放文件(需较大内存)。
- 生成包含记分板与回合时间线的文本日志。
3. 分析表现
审查生成的日志以评估:
- - 射击精准度与补枪效率。
- 道具使用效果(闪光时长、手雷伤害)。
- 角色表现(突破、防守、辅助)。
- 战术亮点与失误。
可根据观察到的模式提供可操作建议。若特定地图位置表现不佳,可参考相关位置的指南或教程。
数据管理
管理 Steam ID
bash
保存玩家档案
python3 scripts/steam_ids.py save --username 用户名 --steam-id 7656119... --name 姓名
列出所有追踪的玩家
python3 scripts/steam_ids.py list
配置
该技能需要设置 LEETIFYAPIKEY 环境变量。
API 文档地址:https://api-public-docs.cs-prod.leetify.com/