Repository information using GitHub CLI. Trigger when user wants to view repository details ("show repo info", "what's this repo about"), list repositories ("list my repos", "show repos for user"), or check repository metadata ("stars", "languages", "topics").
repo follows the SKILL.md standard. Use the install command to add it to your agent stack.
---
name: repo
description: Repository information using GitHub CLI. Trigger when user wants to view repository details ("show repo info", "what's this repo about"), list repositories ("list my repos", "show repos for user"), or check repository metadata ("stars", "languages", "topics").
---
# Repository Information
View repository details and list repositories with the `gh` CLI. Read-only operations only.
## Prerequisites
GitHub CLI must be installed and authenticated:
```bash
gh auth status
```
## Quick Reference
```bash
gh repo view # View current repo
gh repo view owner/repo # View specific repo
gh repo list owner # List repos for owner
```
## View Repository
```bash
gh repo view
gh repo view owner/repo
gh repo view owner/repo --json name,description,stargazersCount
gh repo view owner/repo --web # Open in browser
```
**Common JSON fields:**
```bash
gh repo view owner/repo --json name,description,url,stargazersCount,forkCount,isPrivate,languages,topics
```
## List Repositories
```bash
gh repo list
gh repo list owner
gh repo list owner --limit 50
gh repo list owner --json name,description
gh repo list owner --language go
gh repo list owner --source # Non-forks only
```
## Repository Search
```bash
gh search repos "query"
gh search repos "language:go stars:>100"
gh search repos "org:anthropics"
```