repo
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").
When & Why to Use This Skill
This Claude skill integrates with the GitHub CLI to provide seamless access to repository information and management. It enables users to view detailed repository metadata, list user-specific or organizational repositories, and perform advanced searches based on languages, stars, and topics, streamlining the developer workflow within the AI interface.
Use Cases
- Project Discovery and Research: Quickly find open-source projects or specific repositories by searching with filters like 'language:go' or 'stars:>100' to identify high-quality codebases.
- Repository Auditing: Retrieve comprehensive metadata including descriptions, topics, fork counts, and primary languages to evaluate the status and tech stack of a project.
- Workflow Streamlining: List and view personal or organizational repositories to gain immediate context on project structures without leaving the chat environment.
- Competitive Analysis: Monitor repository popularity and activity levels by checking stargazers and metadata for specific organizations or topics.
| 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:
gh auth status
Quick Reference
gh repo view # View current repo
gh repo view owner/repo # View specific repo
gh repo list owner # List repos for owner
View Repository
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:
gh repo view owner/repo --json name,description,url,stargazersCount,forkCount,isPrivate,languages,topics
List Repositories
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
gh search repos "query"
gh search repos "language:go stars:>100"
gh search repos "org:anthropics"