using-gh-cli

Guide GitHub CLI usage for repositories, PRs, issues, and API calls.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/sudohakan/claude-code-dotfiles --skill using-gh-cli-sudohakan
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: using-gh-cli
Source: https://github.com/sudohakan/claude-code-dotfiles/tree/main/config/skills/trailofbits-security/plugins/gh-cli/skills/using-gh-cli
Command: npx skills add https://github.com/sudohakan/claude-code-dotfiles --skill using-gh-cli-sudohakan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines interactions with GitHub repositories, issues, pull requests, and the GitHub API, offering a more efficient and secure alternative to generic web fetching tools.

Core Features & Use Cases

  • GitHub CLI Integration: Guides users on leveraging the gh CLI for all GitHub-related tasks.
  • Efficient Repository Interaction: Recommends cloning repositories for local exploration and file operations.
  • API Access: Facilitates direct access to GitHub's REST and GraphQL APIs with automatic authentication.
  • Use Case: When needing to check the status of open pull requests for a private repository, use gh pr list instead of attempting to fetch the GitHub website.

Quick Start

Use the gh cli to view the repository owner/repo.

Frequently Asked Questions about using-gh-cli

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

FAQPage Schema
How do I interact with GitHub repositories and pull requests from the command line?▼

You can interact with GitHub repositories by using the GitHub CLI to run commands like `gh pr list` for pull requests, which provides automatic authentication and direct API access without manual web fetching.

What is the best way to access the GitHub API without using curl?▼

Accessing the GitHub API is best handled through the GitHub CLI, which facilitates direct REST and GraphQL API calls with automatic authentication, replacing the need for generic curl commands or web fetching tools.

Can I clone a private repository locally for file exploration using GitHub CLI?▼

Yes, you can clone private repositories for local exploration and file operations using the GitHub CLI, which guides the cloning process and handles authentication automatically for secure repository interaction.

When should I use GitHub CLI instead of WebFetch to check open issues?▼

Use the GitHub CLI instead of WebFetch when checking open issues or pull requests in private repositories, as it provides secure, authenticated access to GitHub resources and direct API data retrieval.

Does GitHub CLI support GraphQL API queries for data retrieval?▼

Yes, the GitHub CLI supports direct access to GitHub's GraphQL API for data retrieval, offering an efficient and secure alternative to generic web fetching tools by handling authentication automatically.