gh-activity
使用 gh CLI 报告特定日期的 GitHub 活动,显示提交、问题和活动时间表。当您需要查看特定日期在 GitHub 上完成的工作时,请使用此功能。
📖 中文导读:使用 gh CLI 报告特定日期的 GitHub 活动,显示提交、问题和活动时间表。当您需要查看特定日期在 GitHub 上完成的工作时,请使用此功能。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: gh-activity description: Reports your GitHub activity for a specific day using the gh CLI, showing commits, issues, and activity timeline. Use this when you need to review what you accomplished on GitHub for a particular date. license: MIT
GitHub Activity Reporter
This skill reports your GitHub activity for a specific day using the gh CLI.
Usage
Run the script with an optional date argument (defaults to today):
# Get today's activity
bash gh-activity.sh
# Get activity for a specific date
bash gh-activity.sh 2025-12-15
The date format must be YYYY-MM-DD.
Requirements
gh(GitHub CLI) - must be authenticated with your GitHub accountjq- for JSON processing
What It Reports
Commits: Lists all commits you made with their actual commit messages, grouped by repository and branch.
Issues: Shows all issues you created, commented on, or interacted with, including issue titles and the type of interaction.
Activity Timeline: A chronological view of all your GitHub events for the day (pushes, PRs, issue comments, etc.).
How It Works
- Verifies you're authenticated with GitHub CLI
- Fetches your events using
gh api /users/{username}/events - Filters events to the specified date
- For each push event, fetches actual commits using
gh api /repos/{repo}/compare/{before}...{head} - Extracts and displays issue information from issue events
- Formats everything into a clear, organized report