Agent skill · software engineering · aiskillstore

github-cli

Encourages proactive use of GitHub CLI (gh) for gathering context on PRs, issues, comments, and repository information when working with GitHub-related tasks.

Why this skill is useful

Adds specific GitHub CLI commands for gathering context on PRs and issues that the AI wouldn't reliably generate on its own.

What it needs

Requires gh installed locally. About 2k tokens when loaded. Last updated 2026-08-07. 405 stars on the source repository.

What this skill does

GitHub CLI Context Gathering This skill encourages proactive use of the GitHub CLI (gh) to gather rich context when working with GitHub-related tasks. Core Philosophy When the user mentions PRs, issues, branches, code reviews, comments, or anything GitHub-related, proactively use gh commands to gather context rather than relying solely on local git commands. Local git tells you about commits and branches. GitHub CLI tells you about the conversation around those changes — PR descriptions, review comments, issue discussions, CI status, and more. When to Use gh Proactively Use gh commands when the user mentions or asks about: PRs / Pull Requests — view, diff, comments, reviews, checks Issues — view, comments, labels, assignees Code reviews — review comments, requested changes CI/CD status — check runs, workflow status Repository information — branches, releases, collaborators GitHub links — any github.com URL can be inspected via gh Key Commands Reference Pull Requests Issues Repository Information Working with GitHub URLs When given a GitHub URL, extract the relevant information and use gh: Context Gathering Patterns Before Reviewing a PR Investigating an Issue Understanding Branch Context Integration with Git Commands Combine gh with local git for full context: Tips 1. Use --json for structured output when you need to parse data: 2. Use gh api for anything not covered by high-level commands — it gives direct access to the GitHub API 3. Specify --repo OWNER/REPO when working outside the repo directory or when ambiguous 4. Default to gathering context first — read the PR description and comments before diving into code When to Invoke This Skill This skill should guide behaviour whenever GitHub-related context would be valuable. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills aiskillstore/github-cli

View the source on GitHub

Browse the @skills marketplace