github-qinghong: Let Agents operate GitHub using the gh CLI

Preface

In day-to-day development, we often need to switch to a browser or manually type gh to check Issue status, Pull Request progress, or whether Actions have finished running. When integrating an Agent into our workflow without a unified convention, it tends to guess webpage structures or call undocumented APIs, leading to unreliable results. Below we introduce a community Skill on SkillHub: github-qinghong, which consolidates GitHub-related operations onto the official GitHub CLI (gh). It leverages gh issue, gh pr, gh run, and gh api to cover Issue, PR, CI, and advanced queries.

What Is This

github-qinghong (coordinate @user_5c68097a/github-qinghong, version 1.0.0) is maintained by community publisher user_5c68097a. Its source is community, and it is classified under dev-programming on SkillHub. The Skill page indicates requires_api_key=false, meaning the Skill itself does not require an additional independent API key; however, actual access to GitHub still depends on a locally installed and authenticated gh.

In short, it injects a ruleset into the Agent: “for any GitHub operation, prefer gh,” rather than allowing the model to fabricate HTTP requests.

Core Features

Based on the SkillHub introduction, the verified capabilities are:

  1. Issues: Use gh issue subcommands to view, create, or manage Issues (specific subcommands depend on the task and gh documentation).
  2. Pull Requests: Use gh pr for listing PRs, viewing details, performing reviews, and merging.
  3. CI / Actions: Use gh run to check workflow run status, logs, and failure reasons.
  4. Advanced queries: Use gh api to call the GitHub REST API for fields not available in list views or for batch queries.

The Skill does not replace gh itself; instead, it guides the Agent to choose the above entry points in the shell, keeping behavior consistent with the official GitHub CLI.

Installation & Activation

The installation instructions from the SkillHub page are as follows: first read SkillHub Installation and Priority Source Configuration, then install this Skill.

1. Verify SkillHub CLI (optional but recommended)

command -v skillhub && skillhub --version

If not installed, follow the installation docs for a full installation or install only the CLI (see skillhub.md for the curl install script).

2. Install github-qinghong

When installing, you must use --dir to point to your Agent’s skills directory. Otherwise, the default ./skills/ may not be recognized:

skillhub install @user_5c68097a/github-qinghong --dir <skills directory>

Common skills directories (from SkillHub installation docs):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ in the project

Alternatively, send the prompt shown on the SkillHub page to an AI and have it follow the docs to complete the installation.

3. Local prerequisite: gh

The Skill explicitly requires the use of the gh CLI. Install GitHub CLI on your machine and authenticate via gh auth login or similar. Without this, even if the Agent loads the Skill, shell commands will fail.

Typical Usage

After installation and activation, you can hand Issue, PR, CI, or repository metadata requests to the Agent in natural language and expect it to complete them via gh subcommands in the terminal. The examples below align with the four entry points listed in the Skill introduction and can be reproduced in an environment with a logged-in gh:

# Issue
gh issue list --repo OWNER/REPO

# Pull Request
gh pr status

# Actions run history
gh run list --repo OWNER/REPO

# REST API query (path follows GitHub API docs)
gh api repos/OWNER/REPO/pulls --jq '.[].title'

More complex workflows (e.g., using gh run view to inspect failing jobs, then gh pr checks for PR-related checks) are also covered by gh run / gh pr. Refer to the GitHub CLI manual for detailed parameters.

Suitable Scenarios & Notes

Who it’s for

  • Users of Agents that support Skills, such as Cursor, Claude Code, or Codex, who already use or permit gh on their machines.
  • Those who want the Agent to check PR status, follow Issues, and monitor CI failures without opening web pages or writing manual curl commands.

Limitations & notes

  • Depends on your local gh version, logged-in account, and repository permissions; behavior with private repos, organizational policies, and SSO is the same as using gh directly.
  • SkillHub scraped data shows: rating 100000, downloads 943, install count 0 (stats are based on the SkillHub page and may change over time).
  • The public page does not include the full SKILL.md content; the behavioral boundary is defined by the four gh entry points in the introduction. Configuration items not mentioned in the available materials are not documented.

Closing Thoughts

The value of github-qinghong lies in anchoring the Agent’s GitHub operations to the official CLI, providing a unified path for Issue, PR, CI, and gh api queries, which facilitates reproducibility and troubleshooting. Installation and metadata are available on SkillHub:

  • Skill page: https://www.skillhub.cn/skills/user_5c68097a/github-qinghong
  • API coordinate: https://api.skillhub.cn/user_5c68097a/github-qinghong
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye