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.
In this repository30 other files it gives its agents.
- setupSkill
- enrich-prsSkill
- epic-cleanupSkill
- epic-overviewSkill
- oncall-reviewSkill
- sprint-managementSkill
- sprint-statusSkill
- team-data-syncSkill
- direct-report-prepSkill
- interview-analysisSkill
- interview-prepSkill
- peer-prepSkill
- project-statusSkill
- team-analysisSkill
- today-prioritiesSkill
- weekly-snippetSkill
- bus-factorSkill
- contribution-velocitySkill
- nine-boxSkill
- project-people-mapSkill
- review-cardsSkill
- review-cyclesSkill
- review-networkSkill
- team-health-reportSkill
- task-rolloverSkill
- context-checkSkill
- prep-my-daySkill
- initiative-breakdownSkill
- product-briefSkill
- technical-deep-diveSkill
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
- Distinctive: line 43
Use the month of the start date.
- Distinctive: line 72
If any query returns exactly 50 or 100 results, the API likely truncated the response.
- Distinctive: line 76
Write three files per member per month:
- Distinctive: line 101
Parallelize fetches: when possible. Members are independent of each other.
- Very specific: line 103
Respect rate limits: If gh returns rate limit errors, pause and retry with backoff.
≈ “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.
Files
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-snippetorteam-analysisskills
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:
| Request | Start | End |
| "fetch 2026-05" | 2026-05-01 | 2026-05-31 |
| "fetch last week" | prior Monday | prior Sunday |
| "fetch last 2 weeks" | 14 days ago | today |
Step 2: Ensure output directory exists
mkdir -p data/YYYY-MMUse 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 100Reviews given:
gh search prs --reviewed-by={login} --owner={org} --created={start}..{end} \
--json number,title,repository,author,createdAt \
--limit 100Issues touched:
gh search issues --assignee={login} --owner={org} --created={start}..{end} \
--json number,title,repository,state,createdAt,closedAt,labels,assignees \
--limit 100Step 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.jsonEach 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
ghreturns rate limit errors, pause and retry with backoff.
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
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.

