スキル一覧に戻る
jongwony

github-activity

by jongwony

0🍴 0📅 2026年1月25日
GitHubで見るManusで実行

SKILL.md


name: github-activity description: | This skill should be used when the user asks to "collect GitHub activity", "generate GitHub report", "show my PRs and commits", "what did I work on in GitHub", or requests activity summaries from GitHub for specific date ranges. Provides workflow for collecting issues, PRs, and commits via GitHub CLI. agent: github-activity context: fork

GitHub Activity Reporter

Collect GitHub activity (PRs, Issues, Commits) via GitHub CLI and generate time-organized markdown reports.

Prerequisites

  • GitHub CLI (gh) authenticated with repo and read:org scopes
  • Verify: gh auth status

Workflow

1. Get User Info

gh api user --jq '.login'

If authentication fails: gh auth login

2. Calculate Date Range

  • Explicit: "2025-11-05" -> use directly
  • Relative: "yesterday" -> date -v-1d '+%Y-%m-%d' (macOS)
  • Default: yesterday

Format: ${start_date}..${end_date}

3. Collect Activity Data

Execute in parallel:

# PRs
gh search prs --involves=@me --updated="${date_range}" \
  --json number,title,repository,state,url,createdAt,closedAt,author

# Issues
gh search issues --involves=@me --updated="${date_range}" \
  --json number,title,repository,state,url,createdAt,author

# Commits (public repos only)
gh search commits --author=@me --committer-date="${date_range}" \
  --json commit,repository,sha,url

# Private commits: extract from each PR
gh pr view NUMBER --repo OWNER/REPO --json commits,additions,deletions,changedFiles

For complete CLI reference: references/cli-reference.md

4. Process Data

  • Convert UTC to local timezone
  • Group by hour and repository
  • Deduplicate commits by SHA

5. Generate Reports

Output location: ~/.claude/tmp/github-activity/reports/

Files:

  • YYYY-MM-DD.md - Human-readable markdown
  • YYYY-MM-DD.json - Machine-readable (for calendar-sync)

For format specification: references/output-format.md

Usage Examples

RequestAction
"GitHub activity yesterday"Yesterday's report
"2025-11-01 to today"Date range report
"Last week's commits"Last 7 days
"delightroom org activity"Organization filter

Integration

JSON output compatible with google-calendar-sync skill for importing activities to Google Calendar.

Troubleshooting

IssueSolution
Auth errorgh auth login
No activitiesExpand date range, check org filter
Missing commitsPrivate commits auto-fetched from PRs
Timezone issuesexport TZ=Asia/Seoul

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です