github

Manage pull requests, issues, and repositories through the GitHub CLI.

3|Updated Apr 2, 2026
One-click install
npx skills add https://github.com/OktayCopurlu/ai-shared --skill github-oktaycopurlu
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: github
Source: https://github.com/OktayCopurlu/ai-shared/tree/main/.github/workflows/skills/github
Command: npx skills add https://github.com/OktayCopurlu/ai-shared --skill github-oktaycopurlu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? It removes the need to switch to the GitHub web UI or write raw API calls by giving you a consistent command-line workflow for every remote GitHub operation, from reviewing PRs to searching code. ## Core Features & Use Cases - Pull Request Operations: View, create, review, comment on, and check out pull requests with structured JSON output. - Issue & Code Search: Create and comment on issues, and search code, PRs, and commits across repositories. - GraphQL Fallback: Resolve review threads and post inline replies via gh api graphql when the standard CLI lacks support. - Use Case: A reviewer asks you to address feedback on PR #1234. You fetch the PR details with gh pr view, reply to inline review threads via the GraphQL API, and approve once resolved — all without leaving the terminal. ## Quick Start Ask the assistant to show the details and review status of pull request 1234 using the gh CLI.

Frequently Asked Questions about github

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

FAQPage Schema
How do I review a pull request from the command line?▼

Use gh pr review with the PR number and a flag like --approve, --comment, or --request-changes plus a message body. You can first inspect the PR with gh pr view and gh pr diff to see its details and changes.

How do I reply to an inline review thread on GitHub?▼

The gh CLI has no first-class command for inline thread replies, so use gh api graphql with the addPullRequestReviewThreadReply mutation. A top-level PR comment is not a substitute for an inline thread reply.

When should I use gh CLI versus git CLI?▼

Use git for local operations like branching, committing, pushing, and rebasing. Use gh for remote operations such as pull requests, issues, reviews, releases, and code search against the GitHub API.

Why does gh report an invalid or expired token?▼

The token stored in the macOS keyring can become invalid or expire. Run gh auth status to check, and re-run gh auth login before relying on gh for operations like review-thread replies.

How do I get complete results from the GitHub API with gh?▼

The gh api command truncates paginated results by default. Add the --paginate flag to retrieve full result sets, and use --json with --jq for structured, parseable output.