Skip to content
Back to skills

Cs2 Analyzer

ASecurity

Analyze CS2 demo files and generate comprehensive tactical reports

  • 666 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added February 8, 2026
researchpythonperformance

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill cs2-analyzer --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cs2 Analyzer?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cs2 Analyzer
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-cs2-analyzer/badge)](https://www.skillsdirectory.com/skills/majiayu000-cs2-analyzer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
description: Analyze CS2 demo files and generate comprehensive tactical reports
---

# CS2 Demo Analyzer Skill

This skill analyzes Counter-Strike 2 demo files (.dem) and produces professional tactical analysis reports with strategic insights, player statistics, and coaching recommendations.

## What This Skill Does

1. **Accepts a CS2 demo file** (drag & drop or provide path)
2. **Generates multi-format analysis**:
   - Compact storage format for archival
   - Digest summary for quick review
   - Full markdown tactical report
3. **Returns strategic insights** including:
   - Team performance (T-side vs CT-side)
   - Player statistics and rankings
   - Critical round breakdowns
   - Tactical recommendations
   - Entry success, post-plant win rates, tempo analysis

## For End Users

### Simple Usage

Just say:
- "Analyze this demo" (after dragging .dem file)
- "Analyze data/raw/my-game.dem"
- "Give me a tactical report for the latest demo"

### What You'll Get

A comprehensive report covering:
- **Executive Summary** - Top 3-5 strategic insights
- **Team Analysis** - T-side and CT-side performance
- **Critical Rounds** - Key moments that decided the game
- **Player Highlights** - Top performers and improvement areas
- **Tactical Recommendations** - Actionable coaching points

## Requirements (One-Time Setup)

This skill requires:
- ✅ Python 3.11+ with Poetry installed
- ✅ Project dependencies installed (`poetry install`)
- ✅ Directory structure: `data/raw/`, `data/compact/`, `data/digest/`, `reports/`

**Setup Instructions**: See `docs/setup.md` for first-time installation.

## How It Works

The skill uses a three-tier architecture:

1. **Parse Demo** → Extract game data using awpy library
2. **Generate Formats**:
   - Compact state (storage, ~400KB)
   - Digest (Claude-readable, <50KB)
   - Full report (markdown)
3. **Strategic Analysis** → Metrics calculation and tactical insights

## Example Output

```
# CS2 Tactical Analysis: Dust2

**Final Score**: T 15 - 13 CT

## Executive Summary
- T-side dominated with 54% round win rate
- Exceptional 82% post-plant win rate
- Aggressive 17.5s time-to-first-kill
- m0NESY MVP: 1.46 K/D, 19 kills

## Recommendations
- T-Side: Maintain excellent post-plant discipline
- CT-Side: Improve retake coordination (only 18% success)
- Individual: mezii needs positioning work (0.6 K/D)
```

## Technical Details

**Scripts Used**:
- `generate_tactical_report.py` - Main analysis pipeline
- `generate_digest.py` - Digest generation
- `analyze_compact_demo.py` - Metrics calculation

**Output Locations**:
- Reports: `reports/game_analysis_[map]_[timestamp].md`
- Digests: `data/digest/[demo]_[timestamp].digest.txt`
- Compact: `data/compact/[demo]_[timestamp].compact.txt`

**Performance**: 30-60 seconds for full match analysis (30-50 rounds)

## Skill Workflow

When invoked, this skill will:

1. ✅ Validate demo file path exists
2. ✅ Check dependencies (poetry environment)
3. ✅ Run analysis pipeline
4. ✅ Read generated digest for strategic insights
5. ✅ Read full report for comprehensive details
6. ✅ Summarize findings for user
7. ✅ Provide report file path for download

## Error Handling

The skill handles:
- Missing demo files → Clear error message
- Invalid demo format → awpy parsing error explanation
- Missing dependencies → Setup instructions
- Analysis failures → Detailed error logs

## Future Enhancements

Planned features:
- [ ] Multi-demo comparison (track player improvement over time)
- [ ] Interactive queries ("Show me all A-site executes")
- [ ] Heatmap generation (positional analysis)
- [ ] Utility usage analysis (smoke/flash patterns)
- [ ] Economic analysis (force buy success rates)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.