Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
basecamp avatar

Github Activity

  • 9 installs
  • 76 repo stars
  • Updated July 31, 2026
  • basecamp/house-skills

github-activity is a Claude Code skill that fetches GitHub PRs, reviews, issues, and commits into day-cached JSON atoms.

About

github-activity is a Claude Code skill that fetches GitHub activity - PRs authored, PRs reviewed, issues, and commit contributions - into per-day cached JSON atoms using the gh CLI. A developer uses it as part of the recap plugin's fetcher pipeline to build activity digests. It is idempotent, day-cached, and rate-limit aware.

  • Fetches GitHub PRs, reviews, issues, and commits into day-cached JSON atoms
  • Uses the gh CLI with --paginate and built-in rate-limit backoff
  • Feeds the recap plugin's activity fetcher pipeline

Github Activity by the numbers

  • 9 all-time installs (skills.sh)
  • Ranked #1,495 of 2,715 Automation & Workflows skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

github-activity capabilities & compatibility

Capabilities
github activity fetch · data caching
Works with
github
Use cases
data analysis
From the docs

What github-activity says it does

Fetch GitHub PRs, reviews, issues, and commits into day-cached JSON atoms. Uses the gh CLI for authentication and API calls.
SKILL.md
Fetch GitHub activity — PRs authored, PRs reviewed, issues created, commit contributions — into per-day cached JSON atoms
SKILL.md
npx skills add https://github.com/basecamp/house-skills --skill github-activity

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs9
repo stars76
Last updatedJuly 31, 2026
Repositorybasecamp/house-skills

What it does

Fetch GitHub PRs, reviews, issues, and commits into day-cached JSON atoms for recap digests.

Who is it for?

Caching GitHub contribution activity into per-day atoms for recap digests.

When should I use this skill?

You need GitHub PRs, reviews, issues, or commits for a recap.

What you get

Per-day cached JSON atoms of GitHub activity ready for digest synthesis.

  • day-cached activity.json atoms

By the numbers

  • caches PRs authored, PRs reviewed, issues, and commit contributions

Files

SKILL.mdMarkdownGitHub ↗

GitHub Activity Fetcher

Fetch GitHub activity — PRs authored, PRs reviewed, issues created, commit contributions — into per-day cached JSON atoms at ~/.cache/recap/github/{user}/{YYYY-MM-DD}/activity.json.

Invocation

/recap:github-activity --since 2026-03-23
/recap:github-activity --since 2026-03-23 --until 2026-03-30
/recap:github-activity --user jeremy --org basecamp --since 2026-03-23 --reuse

Contract

  • Idempotent: same input produces same output, safe to re-run
  • Day-cached: one JSON file per user per day
  • `--reuse`: skip fetch if cache exists and is marked complete
  • Rate-limit aware: uses gh api --paginate with built-in backoff

Quick Run

# 1. Validate auth
gh auth status || { echo "Run: gh auth login"; exit 1; }

# 2. Determine date range
SINCE=$(date -d "7 days ago" +%Y-%m-%d)
UNTIL=$(date +%Y-%m-%d)

# 3. Run the fetcher
"$SKILL_DIR/scripts/github-activity.sh" --since "$SINCE" --until "$UNTIL"

# 4. Verify cache
USER=$(gh api user --jq '.login')
ls ~/.cache/recap/github/$USER/
cat ~/.cache/recap/github/$USER/$SINCE/activity.json | jq '.metadata'

Where $SKILL_DIR = directory containing this SKILL.md.

Output Format

Each activity.json contains:

{
  "user": "jeremy",
  "date": "2026-03-24",
  "prs_authored": [
    {
      "title": "Add weekly digest skill",
      "html_url": "https://github.com/basecamp/coworker/pull/99",
      "created_at": "2026-03-24T14:30:00Z",
      "repository_url": "https://api.github.com/repos/basecamp/coworker",
      "state": "closed",
      "pull_request": { "merged_at": "2026-03-24T15:00:00Z" }
    }
  ],
  "prs_reviewed": [],
  "issues": [],
  "metadata": {
    "complete": true,
    "counts": { "prs_authored": 1, "prs_reviewed": 0, "issues": 0 }
  }
}

Commit contributions are cached separately as an aggregate at ~/.cache/recap/github/{user}/commits-{since}-{until}.json since GitHub's GraphQL API returns them as a period summary, not per-day.

Arguments

ArgumentRequiredDescription
--sinceYesStart date (YYYY-MM-DD)
--untilNoEnd date (default: today)
--userNoGitHub username (default: authenticated user)
--orgNoFilter to a specific GitHub org
--reuseNoSkip fetch if cache exists and is complete

Cache Structure

~/.cache/recap/github/
  jeremy/
    2026-03-24/activity.json
    2026-03-25/activity.json
    commits-2026-03-23-2026-03-30.json

Prerequisites

  • gh CLI installed and authenticated (gh auth login)
  • jq for JSON parsing

Failure Modes

SymptomCauseFix
"gh: not logged in"Token expiredgh auth login
Empty resultsNo activity in rangeExpected — empty days cached as complete
Rate limit (403)Too many API callsWait ~1hr and retry
>1000 PRsSearch API limitNarrow date range or add --org filter

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.