/github-api:github-rate-limitfrom github-api
Check 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.
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.
Check your current GitHub API rate limit status and remaining requests.
npx tsx scripts/rate-limit.ts [options]
| Option | Description |
|---|---|
--token=TOKEN | GitHub Personal Access Token (optional, overrides GITHUB_TOKEN env var) |
--no-cache | Bypass cache and fetch fresh data from API |
GitHub API Rate Limit Status
-----------------------------
Core API:
Limit: 5,000 requests/hour
Used: 1,234 requests
Remaining: 3,766 requests
Resets in: 23 minutes
Search API:
Limit: 30 requests/minute
Used: 5 requests
Remaining: 25 requests
Resets in: 45 seconds
Authentication: Authenticated (your_token_here)
npx tsx scripts/rate-limit.ts [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/rate_limit
The response contains rate limit information for different API categories:
{
"resources": {
"core": {
"limit": 5000,
"used": 1234,
"remaining": 3766,
"reset": 1697376000
},
"search": {
"limit": 30,
"used": 5,
"remaining": 25,
"reset": 1697372400
}
},
"rate": {
"limit": 5000,
"used": 1234,
"remaining": 3766,
"reset": 1697376000
}
}
| Authentication Type | Core API | Search API |
|---|---|---|
| None (Unauthenticated) | 60/hour | 10/minute |
| Personal Access Token | 5,000/hour | 30/minute |
| OAuth App | 5,000/hour | 30/minute |
| GitHub App Installation | 5,000/hour | 30/minute |
To check your authenticated rate limit, provide a GitHub Personal Access Token:
Via environment variable:
export GITHUB_TOKEN=your_token_here
npx tsx scripts/rate-limit.ts
Via command-line option:
npx tsx scripts/rate-limit.ts --token=your_token_here
Create a token at: https://github.com/settings/tokens
Rate limit status is cached for 5 minutes. Rate limits reset frequently, so short cache times provide near-real-time accuracy while improving performance.
Use the --no-cache flag to bypass the cache.
When you exceed your rate limit:
HTTP 403 Forbidden
{
"message": "API rate limit exceeded for xxx.xxx.xxx.xxx.",
"documentation_url": "https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting"
}
Solutions:
If-None-Match headersgithub-repo to get repository information (consumes core quota)github-readme to fetch READMEs (consumes core quota)github-user to get user profiles (consumes core quota)Authentication errors: Verify your token is valid and not expired.
Network errors: Check your internet connection and try again.
Invalid response: The GitHub API may be temporarily unavailable.
Check quota before running many API calls:
npx tsx scripts/rate-limit.ts --token=$GITHUB_TOKEN
Track API usage during development:
npx tsx scripts/rate-limit.ts
Diagnose rate limit problems:
npx tsx scripts/rate-limit.ts --no-cache
reset timestamp is Unix epoch time in secondsWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mearman/marketplace --plugin github-api4 skills in this plugin
/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-repoGet GitHub repository information including stars, forks, issues, languages, and metadata. Use when the user asks for repository details, GitHub stats, or repo information./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