sports-news
90
总安装量
90
周安装量
#4690
全站排名
安装命令
npx skills add https://github.com/machina-sports/sports-skills --skill sports-news
Agent 安装分布
codex
77
gemini-cli
75
opencode
74
claude-code
69
github-copilot
66
cursor
65
Skill 文档
Sports News
Quick Start
Prefer the CLI â it avoids Python import path issues:
sports-skills news fetch_items --google_news --query="Arsenal transfer" --limit=5
sports-skills news fetch_feed --url="https://feeds.bbci.co.uk/sport/football/rss.xml"
Python SDK (alternative):
from sports_skills import news
articles = news.fetch_items(google_news=True, query="Arsenal transfer news", limit=10)
feed = news.fetch_feed(url="https://feeds.bbci.co.uk/sport/football/rss.xml")
Important Notes
google_news=Truerequires aquery. Without a query, Google News has nothing to search.urlandgoogle_newsare mutually exclusive. Use one or the other, not both.- Always use
sort_by_date=Truefor recency queries to show newest articles first. - Before complex fetches, run the parameter validator:
bash scripts/validate_params.sh [args]
For detailed reference data, see the files in the references/ directory.
Choosing Dates
Derive the current date from the system prompt’s date (e.g., currentDate: 2026-02-16 means today is 2026-02-16).
- If the user specifies a date range, use it as-is.
- If the user says “recent”, “latest”, “this week”, or doesn’t specify a timeframe: Derive
afterfrom the system date. For “this week”, useafter = today - 7 days. For “recent” or “latest”, useafter = today - 3 days. - Never hardcode dates in commands. Always derive them from the system date.
- Always use
sort_by_date=Truefor recency queries to show newest articles first.
Workflows
Workflow: Breaking News Check
fetch_items --google_news --query="<topic>" --limit=5 --sort_by_date=True- Present headlines with source and date.
Workflow: Topic Deep-Dive
fetch_items --google_news --query="<topic>" --after=<7_days_ago> --sort_by_date=True --limit=10- For curated sources, also try
fetch_feed --url="<rss_url>". - Cross-reference both for comprehensive coverage.
Workflow: Weekly Sports Roundup
- For each sport of interest,
fetch_items --google_news --query="<sport> results" --after=<7_days_ago> --limit=5. - Aggregate and present by sport.
Examples
User: “What’s the latest Arsenal transfer news?”
- Call
fetch_items(google_news=True, query="Arsenal transfer news", limit=10) - Present headlines with source, date, and links
User: “Show me BBC Sport football headlines”
- Call
fetch_feed(url="https://feeds.bbci.co.uk/sport/football/rss.xml") - Present feed title, last updated, and recent entries
User: “Any Champions League news from this week?”
- Derive
afterfrom system date: today minus 7 days - Call
fetch_items(google_news=True, query="Champions League", after=<derived_date>, sort_by_date=True, limit=10) - Present articles filtered to the last 7 days, sorted newest first
Error Handling & Fallbacks
- If Google News returns empty, ensure
google_news=TrueANDqueryare both set. Try broader keywords. - If RSS feed returns error, feed may be down. Use Google News as fallback.
- If articles are old, use
afterparameter with date andsort_by_date=True. - Never fabricate news headlines or article content. If no results, state so.