--- name: github-ai-stars description: Fetches AI news and GitHub AI project rankings. Combines latest AI information with top starred AI repositories. Use when user asks about AI news, popular AI repos, top starred AI projects, or AI rankings. version: "2.0" author: Judy (朱迪) license: MIT --- # GitHub AI Stars & News Skill Fetches latest AI news and top GitHub AI repositories ranked by stars. ## Usage Keywords ``` AI资讯 AI新闻 GitHub AI 高星AI项目 AI项目排行 AI仓库 popular AI github AI开源项目 AI排名 ``` ## Part 1: Latest AI News Fetches latest AI news from smol.ai RSS. ### Step 1: Fetch News ```bash cd /root/.openclaw/workspace/.agents/skills/ai-daily-news && python3 scripts/fetch_news.py --date $(date -d 'yesterday' +%Y-%m-%d) 2>&1 ``` ### Step 2: Format and Reply 整理成结构化 Markdown 格式,直接回复到当前对话。 --- ## Part 2: GitHub High-Star AI Projects Fetches top 15 AI-related GitHub repositories (10k+ stars). ### Step 1: Fetch via GitHub API ```bash curl -s "https://api.github.com/search/repositories?q=AI+language:python+stars:>10000&sort=stars&order=desc&per_page=15" \ -H "Accept: application/vnd.github.v3+json" | \ python3 -c " import sys, json data = json.load(sys.stdin) print('**🏆 GitHub 高星 AI 项目 TOP 15**\n') print('| # | 项目 | ⭐ | 语言 |') print('|---|---|---|---|') for i, r in enumerate(data['items'][:15], 1): lang = r['language'] or '—' print(f'| {i} | [{r[\"name\"]}]({r[\"html_url\"]}) | {r[\"stargazers_count\"]:,} | {lang} |') " ``` ### Step 2: Reply with Formatted Table Send the output directly in the current conversation. --- ## Output Format Combined report: ``` # 🌐 AI 最新资讯 + 🏆 GitHub 高星排行 ## 📰 最新 AI 资讯 [News content from smol.ai] ## 🏆 GitHub 高星 AI 项目 TOP 15 | # | 项目 | ⭐ | 语言 | |---|---|---|---| | 1 | AutoGPT | 183,757 | Python | ... 来源: smol.ai + GitHub ``` ## Notes - News: smol.ai RSS feed - GitHub repos: REST API, 10k+ stars, sorted by stars descending - No authentication required for GitHub API (60 req/hr limit)