/github-api:github-readmefrom github-api
Fetch 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.
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.
Fetch and decode the README content from a GitHub repository.
npx tsx scripts/readme.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 |
README.md from facebook/react
-----------------------------
Size: 12.3 KB
URL: https://github.com/facebook/react/blob/main/README.md
# README Contents
[decoded README content displayed here]
npx tsx scripts/readme.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}/readme
| Parameter | Required | Description |
|---|---|---|
owner | Yes | Repository owner (user or organization) |
repo | Yes | Repository name |
Get README content:
https://api.github.com/repos/facebook/react/readme
The response contains README metadata and base64-encoded content:
name - README filename (e.g., "README.md")path - Path to the READMEsha - Git SHA for the filesize - File size in bytesurl - API URL for the filehtml_url - GitHub URL to view the READMEcontent - Base64-encoded contentencoding - Encoding type (always "base64")GitHub automatically detects and prioritizes README files in this order:
README.mdREADME.markdownREADME.rstREADME.asciidocREADME.textileREADME.creoleREADMEThe API returns the first matching file found.
The 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/repoREADME access follows GitHub visibility rules:
repo scope requiredTo access private repositories, provide a GitHub Personal Access Token:
Via environment variable:
export GITHUB_TOKEN=your_token_here
npx tsx scripts/readme.ts private/repo
Via command-line option:
npx tsx scripts/readme.ts private/repo --token=your_token_here
README content is cached for 1 hour. READMEs change relatively infrequently, so this provides a good balance between freshness and performance.
Use the --no-cache flag to bypass the cache.
github-repo to get repository metadatagithub-user to get owner profile informationgithub-rate-limit to check your remaining API quotaNo README found: Not all repositories have READMEs. The API will return 404 if no README file exists.
Repository not found: Verify the owner and repository name are correct.
Private repository: Authentication required for private repositories. Provide a valid token.
Rate limit exceeded: Use a Personal Access Token for higher rate limits.
Read package documentation from source:
npx tsx scripts/readme.ts facebook/react
npx tsx scripts/readme.ts vercel/next.js
Get quick reference for a repository:
npx tsx scripts/readme.ts nodejs/node
Access private repository documentation:
npx tsx scripts/readme.ts mycompany/private-repo --token=$GITHUB_TOKEN
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-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