agentleFS
tiangong-aitiangong-ai/agent-skills/github-contribution-period-analysis/SKILL.md

github-contribution-period-analysis

Skill11 starsChanged 3 months agoMITView on GitHub

Analyze one GitHub user's code contribution activity in a specified UTC time window and generate a Markdown report focused on practical contributions (authored merged PRs, PRs merged by the target user, and authored commits) across accessible public and private repositories. Use when users ask to evaluate real engineering contribution over a period and want evidence links.

  • Reads credentials

The file

We split this skill into the rules it gives an agent

1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    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. Very specific:

    Run scripts/github_contribution_report.py with target user and time window.

    line 15

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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

GitHub Contribution Period Analysis

Core Goal

  • Build an evidence-based Markdown report for one target GitHub user in a UTC time window.
  • Focus on practical code contribution signals: merged PR and commit activity.
  • Cover both own repositories and other repositories, limited by credential access.

Workflow

  1. Prepare authentication for GitHub API access.
  2. Run scripts/github_contribution_report.py with target user and time window.
  3. Review the generated Markdown report and inspect evidence links.

Command

python3 scripts/github_contribution_report.py \
  --user <github-login> \
  --start 2026-03-01 \
  --end 2026-03-08 \
  --output /tmp/github-contribution-report.md

Output Semantics

  • Included contribution types:
    • Authored merged PRs.
    • PRs merged by the target user (maintainer merge work).
    • Authored commits.
  • Excluded activity types:
    • Comments, reviews, stars, watches, forks.
  • The report contains:
    • Scope and coverage notes.
    • Summary metrics.
    • Substantive work categories inferred from PR/commit evidence.
    • Work content highlights with representative evidence links.
    • Repository breakdown.
    • Per-repository concrete change details (for every changed repository).
    • Contribution timeline.
    • Top contribution tables.
    • Evidence appendix with PR/commit URLs.

Important Constraints

  • SSH key alone is for git transport and does not directly authorize GitHub REST API calls.
  • Private repository coverage needs authenticated API access, typically via GITHUB_TOKEN/GH_TOKEN or gh auth token.
  • GitHub Search API has a 1000-item cap per query. For very active users, split the time range and run multiple reports.

References

  • references/env.md
  • references/data-model.md
  • references/markdown-template.md

Scripts

  • scripts/github_contribution_report.py

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.