Skill: ddeellttaa/cs2-stats-monitor-5e (version 1.0.0)

--- name: cs-stats-monitor-generic description: 5E CS2 Stats Query and Real-time Monitor. Supports custom player lists, query specified players' CS2 match history, analyze match performance, and real-time monitoring for new matches. Keywords: CS stats, 5E, check stats, monitor matches, CS2 stats, match report. --- # CS Stats Monitor (Generic) 5E Platform CS2 Stats Query and Real-time Monitoring Tool (Generic Version). ## Core Capabilities ### 1. Query Stats Query detailed data of the last 5 matches for specified players. ```bash # Query single player's last 5 matches python {SKILL_DIR}/scripts/cs_monitor.py --once --players <player_name> # Query multiple players python {SKILL_DIR}/scripts/cs_monitor.py --once --players player1 player2 player3 # Use default player list (set in config) python {SKILL_DIR}/scripts/cs_monitor.py --once ``` ### 2. Real-time Monitoring Background continuous polling, automatically output reports when new matches are detected. ```bash # Start monitoring (default 60s polling) python {SKILL_DIR}/scripts/cs_monitor.py --players player1 player2 # Custom polling interval python {SKILL_DIR}/scripts/cs_monitor.py --players player1 --interval 30 # Reset monitoring state python {SKILL_DIR}/scripts/cs_monitor.py --reset ``` **Start Method**: Use tmux to run monitoring in background, check output regularly. ```bash # Recommended: tmux background run tmux new-session -d -s cs-monitor tmux send-keys -t cs-monitor "python {SKILL_DIR}/scripts/cs_monitor.py --players player1 player2" Enter # Check output tmux capture-pane -t cs-monitor -p ``` ### 3. Configuration File (Optional) Create `{SKILL_DIR}/config.json` to set default players: ```json { "default_players": ["player1", "player2", "player3"], "default_interval": 60 } ``` ## Data Capabilities **Per Match**: - Core Metrics: Rating, ADR, KAST, RWS, K/D/A - Kill Details: Headshot rate, first kill, first death, AWP kills, multi-kills (3K/4K/5K) - Clutches: 1v1~1v5 success count - Utility: Flash assists, team flashes, utility damage, bomb plants/defuses - Sides: T-side/CT-side K/D/Rating - Scoreboard: Full 10-player data **Limitations**: - API returns only last **5 matches**, cannot get more history - Season overview requires login Cookie ## Analysis Guidelines When reviewing match reports, analyze from these dimensions: 1. **Core Data Rating**: Rating >1.3 excellent, 1.0-1.3 normal, <0.85 poor; ADR >90 strong, 60-90 average, <60 weak 2. **Style Judgment**: AWP kill ratio, headshot rate, first kill/death ratio, T/CT side differences 3. **Stability**: Standard deviation of Rating across multiple matches, gap between highest and lowest 4. **Team Contribution**: KAST (round participation), utility usage, clutch ability 5. **If multiple players same match**: Horizontal comparison, identify who carried and who underperformed Language Style: Direct, sharp, with a touch of dark humor. No formalities. Praise when good, roast when bad. ## Dependencies - Python 3.10+ - aiohttp (`pip install aiohttp`) ## Resources ### scripts/ - `cs_monitor.py` — Main monitoring script, supports `--once` single query and continuous monitoring mode

path: README.md
content: # CS Stats Monitor (Generic)

5E Platform CS2 Stats Query and Real-time Monitoring Tool (Generic Version).

## Features

- 🔍 **Stats Query**: Query detailed data of the last 5 matches for specified players
- 🔄 **Real-time Monitoring**: Background continuous polling, automatic push when new matches detected
- 📊 **Detailed Data**: Rating, ADR, KAST, headshot rate, AWP kills, utility data, etc.
- 🎯 **Multi-player Support**: Support monitoring multiple players simultaneously, auto-merge reports for same match

## Quick Start

### 1. Install Dependencies

```bash
pip install aiohttp
```

### 2. Configuration (Optional)

Copy example config and modify:

```bash
cp config.example.json config.json
```

Edit `config.json`:

```json
{
  "default_players": ["player1", "player2"],
  "default_interval": 60
}
```

### 3. Usage

**Single Query**:

```bash
python scripts/cs_monitor.py --once --players player1 player2
```

**Continuous Monitoring** (background run):

```bash
# Run with tmux in background
tmux new-session -d -s cs-monitor
tmux send-keys -t cs-monitor "python scripts/cs_monitor.py --players player1 player2" Enter

# Check output
tmux capture-pane -t cs-monitor -p
```

**More Options**:

```bash
python scripts/cs_monitor.py --help
```

## Command Arguments

| Argument | Description |
|----------|-------------|
| `--players` | List of players to monitor (space-separated) |
| `--interval` | Polling interval in seconds (default: 60) |
| `--once` | Query once only, no continuous monitoring |
| `--reset` | Reset monitoring state |

## Output Example

```
╔══════════════════════════════════════════════════════════════════╗
║  🎮 de_dust2  |  03-05 14:30  |  45min  🏆                       ║
╠══════════════════════════════════════════════════════════════════╣

┌─── player1 ⭐MVP  |  de_dust2  |  03-05 14:30 ───
│ 🏆 13:11  (T 6:9 / CT 7:2)  Elo +15.2 (Gold S)
│
│ Rating 1.45 ████████░░  ADR 98.5  KAST 85%  RWS 12.34
│ K/D/A 28/18/5 (1.56)  🎯 HS 45%  🔭 AWP 3
│ FK 5 FD 2  T:16K/10D(1.60)  CT:12K/8D(1.50)
│ ✨ 3K×2 4K×1 | 🎪 1v2×1 1v3×1
│ 💣 Flash×6(18.5s) UtilDmg 45 Plants×3
└────────────────────────────────────────────────────────────

  Player              K   D   A  Rating   ADR   HS% AWP
  ─────────────────────────────────────────────────────
→★player1          28  18   5    1.45   98.5   45%   3
  player2           22  20   8    1.15   75.0   38%   0
  ...
  ─────────────────────────────────────────────────────
  enemy1            25  22   4    1.25   82.0   42%   2
```

## Data Dimensions

- **Core Metrics**: Rating, ADR, KAST, RWS, K/D/A
- **Kill Details**: Headshot rate, first kill, first death, AWP kills, multi-kills (3K/4K/5K)
- **Clutches**: 1v1~1v5 success count
- **Utility**: Flash assists, team flashes, utility damage, bomb plants/defuses
- **Sides**: T-side/CT-side K/D/Rating
- **Scoreboard**: Full 10-player data

## Limitations

- API returns only last **5 matches**, cannot get more history
- Season overview requires login Cookie

## License

MIT


path: config.example.json
content: {
  "default_players": ["player1", "player2", "player3"],
  "default_interval": 60
}


Security scan verdicts — ClawScan: clean | static analysis: clean | VirusTotal: clean | SkillSpector: suspicious (MEDIUM)