Back to Skills

repo

verified

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").

View on GitHub

Marketplace

robbyt-claude-skills

robbyt/claude-skills

Plugin

gh-cli

Repository

robbyt/claude-skills
38stars

plugins/gh-cli/skills/repo/SKILL.md

Last Verified

January 15, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/robbyt/claude-skills/blob/main/plugins/gh-cli/skills/repo/SKILL.md -a claude-code --skill repo

Installation paths:

Claude
.claude/skills/repo/
Powered by add-skill CLI

Instructions

# 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"
```

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
1027 chars
repo | Claude Skills