Get GitHub repository information including stars, forks, issues, languages, and metadata. Use when the user asks for repository details, GitHub stats, or repo information.
View on GitHubSelect agents to install to:
npx add-skill https://github.com/Mearman/marketplace/blob/main/plugins/github-api/skills/github-repo/SKILL.md -a claude-code --skill github-repoInstallation paths:
.claude/skills/github-repo/# Get GitHub Repository Information
Retrieve detailed information about a GitHub repository.
## Usage
```bash
npx tsx scripts/repo.ts <repository> [options]
```
### Arguments
| Argument | Required | Description |
|----------|----------|-------------|
| `repository` | Yes | Repository in format `owner/repo` or full GitHub URL |
### 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 |
### Output
```
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
```
## Script Execution (Preferred)
```bash
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 API
Run from the github-api plugin directory: `~/.claude/plugins/cache/github-api/`
## Repository API
```
GET https://api.github.com/repos/{owner}/{repo}
```
### Parameters
| Parameter | Required | Description |
|-----------|----------|-------------|
| `owner` | Yes | Repository owner (user or organization) |
| `repo` | Yes | Repository name |
### Examples
Get repository information:
```
https://api.github.com/repos/facebook/react
```
## Response Format
The response contains comprehensive repository metadata:
- **`id`** - Repository ID
- **`name`** - Repository name
- **`full_name`** - Owner/repo (e.g., "facebook/react")
- **`owner`** - Owner object (login, id, avatar_url, type, etc.)
- **`descripti