Skip to content
Back to skills

Github Activity

ASecurity

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.

  • 666 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added February 8, 2026
documentationgobashgitapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill github-activity --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Github Activity?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Github Activity
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-github-activity/badge)](https://www.skillsdirectory.com/skills/majiayu000-github-activity)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
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

```bash
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:

```bash
# 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](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](references/output-format.md)

## Usage Examples

| Request | Action |
|---------|--------|
| "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

| Issue | Solution |
|-------|----------|
| Auth error | `gh auth login` |
| No activities | Expand date range, check org filter |
| Missing commits | Private commits auto-fetched from PRs |
| Timezone issues | `export TZ=Asia/Seoul` |

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.