github-cli

Gather GitHub PR, issue, and repository context using gh CLI.

1|Updated Nov 15, 2022
One-click install
npx skills add https://github.com/BfdCampos/dotfiles --skill github-cli-bfdcampos
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: github-cli
Source: https://github.com/BfdCampos/dotfiles/tree/main/claude/skills/github-cli
Command: npx skills add https://github.com/BfdCampos/dotfiles --skill github-cli-bfdcampos

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Gathers rich GitHub context by using the GitHub CLI (gh) to surface PRs, issues, comments, reviews, and repository information, helping you make informed decisions without relying solely on local Git data.

Core Features & Use Cases

  • Proactive context gathering: use gh pr view, gh issue view, gh repo view, and gh api to surface descriptions, discussion threads, checks, and status.
  • Comprehensive repository context: fetch information about branches, releases, collaborators, and CI status to inform workflow decisions.
  • Use Case: When evaluating a PR, quickly retrieve its description, comments, reviews, checks, and related issues to prioritize actions.

Quick Start

Invoke gh to fetch PR descriptions, review comments, issues, and repo data to inform your GitHub-related decisions.

Frequently Asked Questions about github-cli

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

FAQPage Schema
How do I retrieve GitHub PR and issue context for code reviews?

Retrieve GitHub PR and issue context by using the gh CLI to fetch descriptions, comments, reviews, and checks. This Skill proactively surfaces structured data from gh pr view and gh issue view to inform your code review decisions.

Does this GitHub context gathering require the gh CLI to be installed?

Yes, gathering GitHub context with this Skill requires the gh CLI to be installed and available in your PATH. It executes commands like gh repo view and gh api to fetch repository metadata and CI status.

What is the best way to fetch repository information and CI status using gh?

The best way to fetch repository information and CI status is by invoking gh commands directly. This Skill uses gh repo view and gh api to surface branches, releases, collaborators, and check statuses for workflow decisions.

Can I get PR comments and review threads without leaving my local environment?

Yes, you can get PR comments and review threads locally by running gh commands. This Skill proactively gathers discussion threads and review metadata through the GitHub CLI, reducing reliance on local Git data.

What GitHub CLI commands are supported to surface repository metadata?

Supported GitHub CLI commands include gh pr view, gh issue view, gh repo view, and gh api. These commands fetch structured data like descriptions, discussions, checks, and repository information.

Why use gh CLI for gathering GitHub context instead of local Git data?

Use the gh CLI for gathering GitHub context to access remote repository metadata like CI checks, PR reviews, and issue discussions that local Git data lacks. It surfaces comprehensive repository information to inform workflow decisions.