AI-powered player selection based on team chemistry, training performance, and form
Challenge: Selecting the starting lineup for a 22-player squad is one of the hardest decisions a coach makes each week. Form fluctuates. Training observations are subjective. And traditional coaching instincts can favour star players over team players — even when the data says otherwise.
Solution: Football Assistant Coach runs four AI-evaluated training sessions every week, scores each player on team chemistry (max 50), individual performance (max 35), and universal metrics (max 15), then recommends the optimal Starting XI, bench, and identifies players at transfer risk — all using a formation-aware selection engine.
| Form Score | Status |
|---|---|
| 65 and above | Starting XI eligible |
| 50 – 64 | Bench eligible |
| 40 – 49 | Unused — needs more training |
| Below 40 (2 weeks) | Transfer shortlist |
| Day | Session | Weight | Focus |
|---|---|---|---|
| Monday | Fitness & Conditioning | 15% | Universal 60%, Individual 30%, Chemistry 10% |
| Wednesday | Position-Specific Drill | 25% | Individual 70%, Universal 20%, Chemistry 10% |
| Thursday | Tactical Shape & Pressing | 25% | Chemistry 70%, Individual 10%, Universal 20% |
| Friday | Full Team Scrimmage | 35% | Equal thirds |
2 GK, 6 DEF, 8 MID, 6 FWD — each with name, age, style, strength, weakness, and base form built in. No external dataset required.
Claude Haiku takes on the role of a goalkeeping coach, defensive coach, midfield coach, or attacking coach — matching the persona to each player's position.
Each player is evaluated in Monday fitness, Wednesday drills, Thursday tactics, and Friday scrimmage. Each session has different scoring weights.
After simulation, the app scores all three formations against the week's in-form players and warns you if your preferred formation isn't the best fit.
Players who score below 40 for two consecutive weeks are automatically flagged on the transfer shortlist — a pattern-based warning, not a one-off bad session.
Bench always includes 1 GK before filling the remaining 4 spots. Ensures position coverage for substitutions in any match scenario.
Add your Anthropic API key to the .env file, then:
The app opens at http://localhost:8501. Pick formation → click Run Training Week → review selection.