gh

Automate GitHub repository, issue, PR, and code search interactions via the gh CLI.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/objectiveSee/claude-skills --skill gh-objectivesee
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gh
Source: https://github.com/objectiveSee/claude-skills/tree/main/gh
Command: npx skills add https://github.com/objectiveSee/claude-skills --skill gh-objectivesee

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

GitHub CLI mode eliminates the need to open GitHub in a browser by performing all interactions through the gh CLI.

Core Features & Use Cases

  • Repos: use gh repo view <owner/repo> to read the README and metadata; gh repo clone <owner/repo> to clone locally; gh api repos/<owner>/<repo> to fetch raw repository data; gh search repos <query> to discover repositories.
  • Issues & PRs: use gh issue view/list and gh pr view/diff to explore issues and PRs; gh pr checks to see CI status; gh search issues/prs to locate discussions.
  • Code exploration: use gh search code <query> to locate code across a repo or across GitHub.

Quick Start

View the README of a repository by running gh repo view owner/repo to retrieve the metadata.

Frequently Asked Questions about gh

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage GitHub pull requests and issues from the command line?

You can manage GitHub pull requests and issues from the command line by using gh CLI commands like gh pr view, gh pr diff, and gh issue list to review code and explore discussions without needing a browser.

Can I search for code across multiple GitHub repositories without a web browser?

Yes, you can search for code across multiple GitHub repositories without a web browser by running the gh search code command, which locates specific code snippets on demand across GitHub or within targeted repositories.

Do I need to install and authenticate the gh CLI to view repository metadata?

Yes, viewing repository metadata requires the gh CLI to be installed and authenticated, allowing you to run commands like gh repo view to read READMEs and fetch raw repository data directly.

What is the best way to check CI status for a GitHub pull request locally?

The best way to check CI status for a GitHub pull request locally is using the gh pr checks command, which retrieves continuous integration statuses directly through the gh CLI.

How do I clone a GitHub repository using gh CLI instead of git?

You can clone a GitHub repository using gh CLI by running the gh repo clone <owner/repo> command, which handles the cloning process locally without requiring manual URL copying or a browser.