/github-api:github-repofrom github-api
Get GitHub repository information including stars, forks, issues, languages, and metadata. Use when the user asks for repository details, GitHub stats, or repo information.
Ships in github-api. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Retrieve detailed information about a GitHub repository.
npx tsx scripts/repo.ts <repository> [options]
| Argument | Required | Description |
|---|---|---|
repository | Yes | Repository in format owner/repo or full GitHub URL |
| Option | Description |
|---|---|
--token=TOKEN | GitHub Personal Access Token (optional, overrides GITHUB_TOKEN env var) |
--no-cache | Bypass cache and fetch fresh data from API |
facebook/react
----------------
Description: A declarative, efficient, and flexible JavaScript library for building user interfaces.
Created: 2013-05-24
Updated: 2023-10-15
Pushed: 2023-10-15
Statistics:
Stars: 213,456
Forks: 45,678
Open issues: 1,234
Watchers: 7,890
Details:
Language: TypeScript
License: MIT
Private: No
Fork: No
Default branch: main
Features:
Issues: Enabled
Projects: Enabled
Wiki: Enabled
Pages: Disabled
npx tsx scripts/repo.ts <repository> [options]
Options:
--token=TOKEN - GitHub Personal Access Token (optional, overrides GITHUB_TOKEN env var)--no-cache - Bypass cache and fetch fresh data from APIRun from the github-api plugin directory: ~/.claude/plugins/cache/github-api/
GET https://api.github.com/repos/{owner}/{repo}
| Parameter | Required | Description |
|---|---|---|
owner | Yes | Repository owner (user or organization) |
repo | Yes | Repository name |
Get repository information:
https://api.github.com/repos/facebook/react
The response contains comprehensive repository metadata:
id - Repository IDname - Repository namefull_name - Owner/repo (e.g., "facebook/react")owner - Owner object (login, id, avatar_url, type, etc.)description - Repository descriptionprivate - Whether the repository is privatefork - Whether this is a forkcreated_at - Creation timestampupdated_at - Last update timestamppushed_at - Last push timestamphomepage - Homepage URLsize - Repository size in kilobytesstargazers_count - Number of starswatchers_count - Number of watcherslanguage - Primary programming languagelanguages_url - URL to get all languageshas_issues - Whether issues are enabledhas_projects - Whether projects are enabledhas_wiki - Whether wiki is enabledhas_pages - Whether GitHub Pages is enabledforks_count - Number of forksopen_issues_count - Number of open issueslicense - License informationtopics - Repository topicsdefault_branch - Default branch nameThe script accepts various URL formats:
owner/repo (simple format)https://github.com/owner/repogit+https://github.com/owner/repo[email protected]:owner/repossh://[email protected]/owner/repoAll formats are automatically parsed to extract owner and repo.
GitHub API rate limits:
To increase your rate limit, provide a GitHub Personal Access Token:
Via environment variable:
export GITHUB_TOKEN=your_token_here
npx tsx scripts/repo.ts facebook/react
Via command-line option:
npx tsx scripts/repo.ts facebook/react --token=your_token_here
Create a token at: https://github.com/settings/tokens
Repository metadata is cached for 30 minutes. Repository information changes relatively infrequently, so this provides good freshness while improving performance.
Use the --no-cache flag to bypass the cache.
github-readme to fetch the repository READMEgithub-user to get owner profile informationgithub-rate-limit to check your remaining API quotaRepository not found: Verify the owner and repository name are correct. Private repositories require authentication with appropriate access.
Rate limit exceeded: Use a Personal Access Token to increase your quota, or wait for the quota to reset (hourly).
Authentication errors: Ensure your token is valid and has the necessary permissions (for private repos).
Get GitHub information for npm packages:
npx tsx scripts/repo.ts facebook/react
npx tsx scripts/repo.ts vercel/next.js
Check popularity and activity:
npx tsx scripts/repo.ts nodejs/node --token=$GITHUB_TOKEN
Check repository license:
npx tsx scripts/repo.ts microsoft/typescript
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mearman/marketplace --plugin github-api4 skills in this plugin
/github-rate-limitCheck GitHub API rate limit status and remaining quota. Use when the user asks about API quota, rate limits, or wants to know how many requests are remaining./github-readmeFetch the README content from a GitHub repository. Use when the user asks for a repository README, documentation, or wants to read the repo's main documentation file./github-userGet GitHub user profile information including repos, followers, and activity. Use when the user asks for GitHub user details, profile information, or developer stats.Other plugins' skills for the same job