Get GitHub user profile information including repos, followers, and activity. Use when the user asks for GitHub user details, profile information, or developer stats.
View on GitHubSelect agents to install to:
npx add-skill https://github.com/Mearman/marketplace/blob/main/plugins/github-api/skills/github-user/SKILL.md -a claude-code --skill github-userInstallation paths:
.claude/skills/github-user/# Get GitHub User Profile
Retrieve detailed information about a GitHub user or organization.
## Usage
```bash
npx tsx scripts/user.ts <username> [options]
```
### Arguments
| Argument | Required | Description |
|----------|----------|-------------|
| `username` | Yes | GitHub username |
### 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
```
torvalds (Linus Torvalds)
--------------------------
Bio: Creator of Linux
Location: Portland, OR
Company: Linux Foundation
Account:
Type: User
Created: 2010-08-19
Updated: 2023-10-01
Hireable: Yes
Statistics:
Public repos: 12
Public gists: 5
Followers: 156,789
Following: 0
Links:
Profile: https://github.com/torvalds
Blog: https://lkml.org/
Avatar: https://avatars.githubusercontent.com/u/102402?v=4
```
## Script Execution (Preferred)
```bash
npx tsx scripts/user.ts <username> [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/`
## User API
```
GET https://api.github.com/users/{username}
```
### Parameters
| Parameter | Required | Description |
|-----------|----------|-------------|
| `username` | Yes | GitHub username |
### Examples
Get user information:
```
https://api.github.com/users/torvalds
```
## Response Format
The response contains comprehensive user profile metadata:
- **`login`** - Username
- **`id`** - User ID
- **`node_id`** - Node ID
- **`avatar_url`** - Avatar image URL
- **`gravatar_id`** - Gravatar ID
- **`url`** - API URL for the user
- **`html_url`** - GitHub profile URL
- **`type`** - User type ("User" or "Organization")
- **`site_admin`** - Whether the user is a GitHub admin
- **`name`** - D