agentleFS
philpalmieriphilpalmieri/engineering-manager-skills/skills/github/team-activity/SKILL.md

team-activity

Skill1 starsChanged 6 months agoMITView on GitHub

Fetch GitHub activity (PRs, reviews, issues) for all team members for a given time period. Stores results as JSON files organized by month. Use when asked to fetch team data, or as a dependency for analysis and snippet skills.

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use the month of the start date.

    line 43
  2. Distinctive:

    If any query returns exactly 50 or 100 results, the API likely truncated the response.

    line 72
  3. Distinctive:

    Write three files per member per month:

    line 76
  4. Distinctive:

    Parallelize fetches: when possible. Members are independent of each other.

    line 101
  5. Very specific:

    Respect rate limits: If gh returns rate limit errors, pause and retry with backoff.

    line 103

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Team Activity Fetch

Query GitHub for each team member's PRs, reviews, and issues over a date range. Save results as JSON files for analysis, snippets, or reporting.

When to use

  • "Fetch team data for May", "pull activity for last 2 weeks", "update team data"
  • As a data-gathering step for weekly-snippet or team-analysis skills

Prerequisites

  • Team roster (team.json) with member logins and org
  • GitHub CLI (gh) authenticated with org access
  • A data/ directory for storing results (will be created if missing)

Process

Step 1: Parse the date range

Interpret the user's request into a start and end date:

RequestStartEnd
"fetch 2026-05"2026-05-012026-05-31
"fetch last week"prior Mondayprior Sunday
"fetch last 2 weeks"14 days agotoday

Step 2: Ensure output directory exists

mkdir -p data/YYYY-MM

Use the month of the start date. If the range spans two months, create both directories.

Step 3: Fetch data for each member

For each member in the team roster:

Authored PRs:

gh search prs --author={login} --owner={org} --created={start}..{end} \
  --json number,title,repository,state,createdAt,closedAt,mergedAt,labels \
  --limit 100

Reviews given:

gh search prs --reviewed-by={login} --owner={org} --created={start}..{end} \
  --json number,title,repository,author,createdAt \
  --limit 100

Issues touched:

gh search issues --assignee={login} --owner={org} --created={start}..{end} \
  --json number,title,repository,state,createdAt,closedAt,labels,assignees \
  --limit 100

Step 4: Cap detection

If any query returns exactly 50 or 100 results, the API likely truncated the response. Split the date range in half and re-query both halves to get complete data. Merge and deduplicate by issue/PR number.

Step 5: Save results

Write three files per member per month:

data/YYYY-MM/
  {login}-prs.json
  {login}-reviews.json
  {login}-issues.json

Each file is a JSON array of the raw results from gh.

Step 6: Report summary

Fetched data for 3 members (2026-05-01 to 2026-05-14):
  janedoe: 3 PRs, 5 reviews, 2 issues
  bsmith: 8 PRs, 12 reviews, 4 issues
  agarcia: 6 PRs, 9 reviews, 3 issues
  Total: 17 PRs, 26 reviews, 8 issues
  ⚠️ Cap hit on bsmith reviews (split and re-fetched)

Rules

  • Data is additive. Fetching the same month twice overwrites the files (latest data wins).
  • Parallelize fetches when possible. Members are independent of each other.
  • Don't filter at fetch time. Store raw data; let analysis skills handle filtering.
  • Respect rate limits. If gh returns rate limit errors, pause and retry with backoff.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.