rugbyclaw
v0.1.3
Published
Rugby scores, fixtures, and results CLI + OpenClaw skill
Maintainers
Readme
Rugbyclaw 🏉
A CLI tool for rugby scores, fixtures, and results powered by API-Sports Rugby API.
Clean architecture, reliable data, Rugby Union focus.
Features
- Live scores — Today's matches across your favorite leagues
- Fixtures — Upcoming matches with dates and times
- Results — Recent results with personality-driven summaries
- Team tracking — Follow specific teams across competitions
- Calendar export — Add matches to your calendar (ICS format)
Documentation
📖 Full Documentation - Command reference, guides, and troubleshooting
- Getting Started - Install and configure in 5 minutes
- Commands Reference - Detailed command documentation
- Troubleshooting - Common issues and solutions
Installation
npm install -g rugbyclawQuick Start
# Configure your preferences
rugbyclaw config
# Check today's scores
rugbyclaw scores
# Upcoming Top 14 fixtures
rugbyclaw fixtures top14
# Toulouse's next match
rugbyclaw team toulouse next
# Recent Champions Cup results
rugbyclaw results champions_cupSetup
Run rugbyclaw config to configure your preferences:
- No API key required (free mode uses a proxy with limits)
- (Optional) add your API-Sports Rugby API key (get yours at api-sports.io)
- Select favorite leagues (free mode is limited to default leagues)
- (Optional) pick favorite teams
- Set your timezone (IANA name like
America/New_York)
Tip (automation/agents): override timezone per command:
rugbyclaw --tz America/New_York fixturesAPI key is stored securely in ~/.config/rugbyclaw/secrets.json (mode 600).
Commands
rugbyclaw config
Interactive setup wizard:
- Choose free mode (default) or add an API key (optional)
- Select favorite leagues
- (Optional) add favorite teams
- Set your timezone
rugbyclaw scores
Show today's matches across your favorite leagues.
rugbyclaw scores
rugbyclaw scores --json # JSON output for scriptsrugbyclaw fixtures [league]
List upcoming matches.
rugbyclaw fixtures # All favorites
rugbyclaw fixtures top14 # Specific league
rugbyclaw fixtures -n 10 # Limit to 10 matchesrugbyclaw results [league]
Show recent results with personality-driven summaries.
rugbyclaw results
rugbyclaw results premiershiprugbyclaw team <name> <action>
Query a specific team.
rugbyclaw team toulouse next # Next match
rugbyclaw team toulouse last # Last result
rugbyclaw team search racing # Find team IDrugbyclaw calendar <match_id>
Export a match to ICS calendar format.
rugbyclaw calendar 123456 --stdout > match.ics
rugbyclaw calendar 123456 --out ~/Desktop/match.icsrugbyclaw notify
Generate notifications for cron/OpenClaw integration.
rugbyclaw notify --weekly # Weekly digest
rugbyclaw notify --daily # Day/hour reminders
rugbyclaw notify --live # Live score updatesrugbyclaw status
Show current mode (free vs API key), timezone, and effective leagues.
rugbyclaw status
rugbyclaw status --jsonSupported Leagues
8 competitions covered:
Club Competitions (5)
| Slug | League |
|------|--------|
| top14 | Top 14 (France) |
| premiership | Premiership Rugby (England) |
| urc | United Rugby Championship (Multi-nation) |
| pro_d2 | Pro D2 (France) |
| super_rugby | Super Rugby Pacific (Southern Hemisphere) |
European Cups (2)
| Slug | League |
|------|--------|
| champions_cup | European Rugby Champions Cup |
| challenge_cup | European Rugby Challenge Cup |
International (1)
| Slug | League |
|------|--------|
| six_nations | Six Nations |
OpenClaw Integration
Rugbyclaw includes an OpenClaw skill for AI-powered natural language queries and proactive notifications.
See skill/SKILL.md for integration details.
JSON Output
All commands support --json for machine-readable output:
rugbyclaw scores --json | jq '.matches[0]'Configuration Files
~/.config/rugbyclaw/config.json— User preferences (leagues, teams, timezone)~/.config/rugbyclaw/secrets.json— API key (mode 600)~/.cache/rugbyclaw/— Response cache (SWR caching for performance)
Technical Details
- Data Provider: API-Sports Rugby API (sole provider)
- Architecture: TypeScript, ES modules, Commander.js CLI
- Caching: SWR (stale-while-revalidate) for performance
- Season Detection: Smart season detection per competition type
- Focus: Rugby Union only
License
MIT
