Coding
PromptBeginner5 minmarkdown
Markdown Converter
Agent skill for markdown-converter
7
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Sign in to like and favorite skills
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is an MLB AI prediction application built with Nuxt 3, Vue 3, and TypeScript. The application generates daily MLB game predictions using external ML models and provides a web interface for viewing predictions with confidence grades and analysis. It also features an interactive MLB postseason bracket predictor.
# Install dependencies npm install # Start development server (http://localhost:3000) npm run dev # Build for production npm run build # Preview production build npm run preview # Generate types (runs automatically after install) npm run postinstall
app/ - Main application code (components, pages, layouts)server/api/ - Server-side API endpoints for MLB data and ML workflowsserver/cron/ - Automated daily ML model execution (10:35 AM EST)database.types.ts - Generated TypeScript types from Supabase schemaKey tables:
gamePredictions - AI predictions with scores, confidence, and analysisgamePredictionsBeta - Beta testing predictionsgames - Core game informationtodaysGames - Daily matchups with starting pitchersteamStats - Per-game team statisticspitcherStats - Starting pitcher performancerecentTeamPerformance - Aggregated recent statsenvironment - Weather and stadium conditionsplayoff_brackets - User postseason predictionsThe application orchestrates an automated daily workflow:
server/cron/mlb-model.tsserver/api/runMLBmodel.ts) coordinates data collection:
getMLBDailyMatchUps.tsgetMLBStats.tsgetMLBRecentPerformance.tsfetchAndStoreWeather.ts[email protected]serverSupabaseServiceRole to bypass RLSuseSupabaseClient() with RLS enforcementRequired environment variables:
SUPABASE_URL - Supabase project URLSUPABASE_KEY - Supabase anon keyOPENWEATHER_API_KEY - Weather data API keyNUXT_PUBLIC_SITE_URL - Public site URL for production<script setup> syntaxuseSupabaseClient, useAsyncData)/api/runMLBModel - Orchestrates entire ML workflow/api/getMLBDailyMatchUps - Fetches today's games and weather/api/getMLBStats - Fetches yesterday's game results/api/getMLBRecentPerformance - Aggregates recent team/pitcher stats/api/evaluatePredictions - Updates predictions with actual outcomes