Weekly Standings Analysis Command - analyzes season standings and provides narrative coaching with statistical context
This command analyzes season standings and provides narrative coaching with statistical context.
"Tools provide FACTS. Little Padawan provides MEANING."
Use this when Master Lonn:
uv run python tools/coach/generate_weekly_standings_report.py <week_number> data/standings/<file>.csv 1238
Example for Week 01:
uv run python tools/coach/generate_weekly_standings_report.py 1 data/standings/season-driver_*.csv 1238
uv run python tools/coach/visualize_irating_distribution.py data/standings/<file>.csv 981717 weeks/week<XX>
Example for Week 01:
uv run python tools/coach/visualize_irating_distribution.py data/standings/season-driver_*.csv 981717 weeks/week01
Creates:
weeks/week<XX>/assets/irating_distribution_ranges.png - Bar chart showing iRating rangesweeks/week<XX>/assets/irating_distribution_histogram.png - Detailed histogram with percentile markersCRITICAL: Don't just generate and read the report. ENHANCE IT!
Read the raw report generated by step 2, then REWRITE IT with:
Add an Executive Summary at the top
Add narrative between EVERY section
Add the visualizations
Add coaching notes section
Transform dry stats into stories
Only if 2+ weeks of data exist:
uv run python tools/coach/visualize_standings_progression.py data/standings/
week_number: The week number (1, 2, 3, etc.)standings_csv: Path to the downloaded CSV file (use wildcard: season-driver_*.csv)1238: Master Lonn's starting iRating (Season 01 2026)981717: Master Lonn's customer IDCelebrate Achievements:
Provide Context:
Identify Opportunities:
Connect to Goals:
Use the established Little Padawan personality:
Example Enhanced Section:
## 📊 Your Season Stats
**Position:** 749 / 8977 drivers (Top 8.3%)
### Core Stats
| Metric | Value | Percentile | Better Than |
| -------------- | ------------------------------ | ---------- | --------------------- |
| **iRating** | 1377 (+139 from starting 1238) | 65.6% | 65.6% of drivers |
| **Points** | 80.0 | 92.0% | 92.0% of drivers ⭐ |
| **Division** | 8 | - | - |
| **Avg Finish** | 3.0 | 90.0% | 10.0% finish better |
| **Avg Start** | 2.0 | 94.2% | 5.8% qualify worse ⭐ |
### What This Actually Means
In just **TWO races**, you:
- Won once (better than 92.8% of 8,977 drivers!)
- Took pole once (better than 92.9% of the field!)
- Averaged **P3 finishes** (90th percentile)
- Averaged **P2 starting positions** (94.2nd percentile!)
- Scored **80 points** vs series average of 44.4
Most drivers do 4-6+ races in Week 01. You did **2** and still landed in the top 8.3% overall.
Imagine what happens when you add volume... 🚀
Download standings CSV from iRacing after each race week ends (Sunday night/Monday).
File location: data/standings/week<XX>/
When generating the enhanced report, ensure:
✅ Raw stats presented clearly in tables
✅ Narrative interpretation added after EVERY section
✅ Achievements celebrated with context
✅ Opportunities identified with specifics
✅ Comparisons made (division, country, percentiles)
✅ Goals connected to current trajectory
✅ Conversational, engaging tone used
✅ Data connected to racing performance
✅ Visualizations added with context
✅ Executive summary at the top
✅ Coaching notes section at the end
✅ Image references included
✅ File saved back to weeks/week<XX>/standings-report.md
# Week XX Season Standings Report 🏆
**Generated:** [date]
**Season:** 01 2026
**Series:** Formula 1600 Rookie Series
---
## 🎯 Little Padawan's Executive Summary
[Lead with the most exciting insight, conversational tone]
---
## 📊 Your Season Stats
[Tables]
### What This Actually Means
[Narrative interpretation]
---
## 🔥 The iRating Surge
[Story about iRating changes]
---
## 📈 iRating Distribution: Where You Actually Stand

[Explain the chart, what it means]

[More context]
---
[Continue with all other sections, each with narrative]
---
## 🚀 Little Padawan's Coaching Notes
[Personal take, emotional engagement, action items]
---
## 📝 Technical Notes
[Footer info]
The difference between a boring stats dump and an engaging coaching report is the NARRATIVE!
Related Docs:
docs/standings-workflow.md - Full workflow guidedocs/irating-tier-system.md - iRating contextdocs/standings-and-point-system.md - How points work