gh-cli

Manage GitHub repositories via the official gh CLI with JSON output filtering.

3|Updated Apr 21, 2024
One-click install
npx skills add https://github.com/gabrielfruet/.dotfiles --skill gh-cli-gabrielfruet
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gh-cli
Source: https://github.com/gabrielfruet/.dotfiles/tree/main/pi/agent/skills/gh-cli
Command: npx skills add https://github.com/gabrielfruet/.dotfiles --skill gh-cli-gabrielfruet

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill removes the friction of switching between the GitHub web interface and manual API calls for routine repository management tasks, cutting down on context switching and repetitive work.

Core Features & Use Cases

  • Authentication Management: Quickly check and configure your gh CLI login status.
  • PR & Issue Triage: List, view, and filter open/merged pull requests and issues with custom JSON output.
  • Inline Code Review: Access line-level review comments on pull requests directly from the terminal.
  • GitHub Automation: Manage Actions runs, releases, and execute custom API requests with built-in pagination and output filtering.
  • Use Case: A developer can use this Skill to quickly pull all open PRs for their team's repository, filter for PRs updated in the last 24 hours, and view inline review comments without opening the GitHub web UI.

Quick Start

Use the gh-cli skill to list all open pull requests for the current repository along with their titles, authors, and last update timestamps.

Frequently Asked Questions about gh-cli

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

FAQPage Schema
How do I manage pull request triage from the command line without using the GitHub web UI?

You can manage pull request triage from the command line by using the official GitHub CLI to list, view, and filter open or merged pull requests with custom JSON output, completely eliminating the need to open the GitHub web UI.

Can I view inline code review comments on pull requests directly in the terminal?

Yes, you can view inline code review comments on pull requests directly in the terminal by executing GitHub CLI commands to fetch line-level review feedback without context switching to the web interface.

What is the best way to monitor GitHub Actions runs and manage releases via API automation?

The best way to monitor GitHub Actions runs and manage releases via API automation is using the GitHub CLI to execute custom API requests with built-in pagination and output filtering for streamlined CI/CD workflows.

Do I need jq installed to use gh-cli for scripted repository operations?

While basic repository management works without it, jq is required for scripted operations to filter JSON output generated by the GitHub CLI, enabling automated extraction of specific fields from API responses.