random-contributor
Installation
SKILL.md
Random Contributor Skill
Purpose
- Select a uniformly random contributor from a public GitHub repository. Useful for sampling, shoutouts, delegation, or fair assignment among contributors.
What it does
- Uses GitHub REST API (public endpoints) to list contributors for a repo (handles pagination).
- Falls back to scraping the repository's contributors page if API rate limits or CORS prevent API use.
- Returns contributor info: login, name (if available), avatar URL, profile URL, contributions count.
When to use
- Pick a random maintainer or contributor for tasks like "who should review" or "who to credit".
- Should be used only on public repositories.
Prerequisites
curlandjqfor Bash examples, or Node.js 18+ for JS examples.- Optional GitHub token (GH_TOKEN) increases rate limits; skill works without it for small repos.