Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Daily MLB baseball scores, box scores, starting pitchers, and injury reports for your favourite team. Covers spring training, regular season, and playoffs. R...
Daily MLB baseball scores, box scores, starting pitchers, and injury reports for your favourite team. Covers spring training, regular season, and playoffs. R...
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
Fetches yesterday's game recap and today's upcoming game preview for the user's configured favourite MLB team. Includes spring training, regular season, postseason (Wild Card, Division Series, Championship Series, World Series), and exhibition games.
Uses the free MLB Stats API (statsapi.mlb.com). No API key required.
Run the setup script to install the Python packages: # macOS/Linux bash {baseDir}/setup.sh # Any platform (including Windows) python {baseDir}/setup.py Or install manually: pip install --user MLB-StatsAPI requests
Add this to ~/.openclaw/openclaw.json under skills.entries: { skills: { entries: { "mlb-daily-scores": { enabled: true, config: { team: "Toronto Blue Jays", // Your favourite team (full name) timezone: "America/Toronto", // Your local timezone (IANA format) }, }, }, }, } Valid team names โ use the full official name: Arizona Diamondbacks, Atlanta Braves, Baltimore Orioles, Boston Red Sox, Chicago Cubs, Chicago White Sox, Cincinnati Reds, Cleveland Guardians, Colorado Rockies, Detroit Tigers, Houston Astros, Kansas City Royals, Los Angeles Angels, Los Angeles Dodgers, Miami Marlins, Milwaukee Brewers, Minnesota Twins, New York Mets, New York Yankees, Oakland Athletics, Philadelphia Phillies, Pittsburgh Pirates, San Diego Padres, San Francisco Giants, Seattle Mariners, St. Louis Cardinals, Tampa Bay Rays, Texas Rangers, Toronto Blue Jays, Washington Nationals.
Ask me to set it up, or run manually: openclaw cron add \ --name "MLB Daily Scores" \ --cron "0 6 * * *" \ --tz "America/Toronto" \ --session isolated \ --message "Run the mlb-daily-scores skill for my configured team. Use the fetch_mlb.py script, format the results nicely, and include yesterday's recap, today's preview, and any injuries." \ --announce \ --channel discord \ --to "channel:YOUR_CHANNEL_ID" Adjust the parameters: --cron "0 6 * * *" โ time to run (6:00 AM); change to your preferred time --tz โ your timezone --channel โ your preferred channel (discord, telegram, whatsapp, slack, etc.) --to โ channel-specific target (channel ID, phone number, chat ID, etc.)
Once the cron job is set up, the skill runs daily at your configured time and delivers the report to your channel.
Send /mlb-daily-scores in any chat to get an immediate update.
Ask me: "What happened in the Blue Jays game yesterday?" or "Give me today's MLB update"
{baseDir} in these instructions refers to the directory containing this SKILL.md file. Determine this path from the location of this file (e.g., if this file is at /home/openclaw/.openclaw/workspace/skills/mlb-daily-scores/skills/mlb-daily-scores/SKILL.md, then {baseDir} is /home/openclaw/.openclaw/workspace/skills/mlb-daily-scores/skills/mlb-daily-scores). When this skill is invoked (via cron, slash command, or user request): Determine the base directory โ find the directory where this SKILL.md and fetch_mlb.py are located. Call this BASEDIR. Read the user's config from skills.entries.mlb-daily-scores.config: team: the MLB team name (required) timezone: IANA timezone string (optional, defaults to system timezone) Run the fetch script using this EXACT command pattern (replacing BASEDIR with the actual path): BASEDIR/.venv/bin/python3 BASEDIR/fetch_mlb.py --config IMPORTANT: You MUST use the venv Python at BASEDIR/.venv/bin/python3. Do NOT use python, python3, or any other Python interpreter โ the required packages are only installed inside the .venv virtual environment. Using any other Python will fail with import errors. The --config flag tells the script to read team/timezone directly from ~/.openclaw/openclaw.json. No user values should be interpolated into the command string. This outputs JSON to stdout. Parse the JSON output and check has_data: If has_data is false and there's no error: it's off-season or a day off. Reply with HEARTBEAT_OK (this suppresses the message in cron/heartbeat mode). If has_data is false and there's an error field: report the error to the user. If has_data is true: format the report as described below. Format the report using this structure (include game_type from the JSON when it is not Regular Season): โพ MLB Daily Report โ [Team Name] ๐ [Today's Date] โโโโโโโโโโโโโโโโโโโโโโโ ๐ YESTERDAY'S RECAP [game_type, e.g. "(Spring Training)" โ omit if Regular Season] โโโโโโโโโโโโโโโโโโโโโโโ [Score Line, e.g.: Blue Jays 5, Yankees 3] W: [Winning Pitcher] L: [Losing Pitcher] S: [Save Pitcher, if any] LINE SCORE: [Linescore text from the API] โโโโโโโโโโโโโโโโโโโโโโโ ๐ฎ TODAY'S PREVIEW [game_type, e.g. "(Spring Training)" โ omit if Regular Season] โโโโโโโโโโโโโโโโโโโโโโโ [Opponent] @ [Home Team] ๐ [Game Time in local timezone] ๐๏ธ [Venue] Starting Pitchers: [Away Team]: [Pitcher Name] ([W-L], [ERA] ERA) [Home Team]: [Pitcher Name] ([W-L], [ERA] ERA) โโโโโโโโโโโโโโโโโโโโโโโ ๐ฅ INJURY REPORT โโโโโโโโโโโโโโโโโโโโโโโ [For each injury]: โข [Player Name] ([Position]) โ [Injury Description] [Status] [If no injuries]: โ No players currently on the injury list. Omit sections that have no data: No yesterday game โ skip the recap section, note "No game yesterday" No today game โ skip the preview section, note "No game scheduled today" No injuries โ show the clean bill of health line Keep the box score concise โ include the linescore (innings R/H/E) but NOT the full box score text (it's too long for chat). Only include the full boxscore if the user explicitly asks for more detail. Off-season handling โ If neither yesterday nor today has a game and there are no injuries to report, respond with just HEARTBEAT_OK so no message is delivered. The script covers all game types (spring training, regular season, postseason, exhibition), so true off-season gaps are only mid-November through late February.
Writing, remixing, publishing, visual generation, and marketing content production.
Largest current source with strong distribution and engagement signals.