Agent skill

GitHub Gh CLI

by huangruiteng in huangruiteng/CS-Notes

Inspect GitHub pull requests, issues, workflow runs, and API data with the gh CLI.

MITAuto-check passedDevelopment

Install GitHub Gh CLI

skills CLI
$ npx skills add huangruiteng/CS-Notes --skill github-gh-cli -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install huangruiteng/CS-Notes github-gh-cli --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/huangruiteng/CS-Notes.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.codex/skills/github-gh-cli .claude/skills/github-gh-cli && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
github-gh-cli
GitHub stars
4k
Token cost
~377 tokens
SKILL.md length
109 words
Files
2
Skills in repo
38
Repo updated
First seen
Licence
MIT

At a glance

Inspect GitHub pull requests, issues, workflow runs, and API data with the gh CLI.

  • The user wants repository facts from GitHub without opening the browser
  • SKILL.md covers Use this skill when, Working rules and Common commands
  • Calls gh
  • Especially for PR status

What it does

GitHub Gh CLI is an agent skill from huangruiteng/CS-Notes. Inspect GitHub pull requests, issues, workflow runs, and API data with the gh CLI. Use when the user wants repository facts from GitHub without opening the browser, especially for PR status, CI failures, issue lists, or structured JSON output.

Its SKILL.md is about 380 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

It sits in Development, covering Pull requests and Failing and flaky tests. It works with GitHub. The licence is MIT.

When your agent uses it

  • The user wants repository facts from GitHub without opening the browser
  • Especially for PR status
  • Structured JSON output

Example prompts

  • “/github-gh-cli”

What it can do on your machine

Read from SKILL.md and the folder at commit d01d8f8. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • gh

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use gh, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

GitHub Gh CLI loads about 377 tokens when it runs. Until then it costs about 64 tokens; SKILL.md has 109 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~64
When it runs · the whole SKILL.md, loaded when a task matches
~377

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from huangruiteng/CS-Notes at commit d01d8f8, republished under its MIT licence (© huangruiteng). 109 words, ~377 tokens.

Download SKILL.mdSave it as .claude/skills/github-gh-cli/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
github-gh-cli
description
Inspect GitHub pull requests, issues, workflow runs, and API data with the gh CLI. Use when the user wants repository facts from GitHub without opening the browser, especially for PR status, CI failures, issue lists, or structured JSON output.

GitHub GH CLI

Use this skill when

Use this skill when the task is about GitHub data and gh is the fastest path:

  • pull request status or checks;
  • recent workflow runs or failed jobs;
  • issue or PR lists;
  • structured JSON output for scripting; or
  • GitHub API queries not covered by simpler commands.

Working rules

  • Prefer gh over browser navigation when command-line access is enough.
  • Prefer --json and --jq when you need structured results.
  • When outside the target repository, pass --repo owner/repo explicitly.
  • If auth is missing, ask the user to handle gh auth login; do not attempt interactive credential setup yourself.

Common commands

Pull requests
bash
gh pr view 123 --repo owner/repo
gh pr checks 123 --repo owner/repo
gh pr list --repo owner/repo --limit 20
Actions / CI
bash
gh run list --repo owner/repo --limit 10
gh run view <run-id> --repo owner/repo
gh run view <run-id> --repo owner/repo --log-failed
Issues
bash
gh issue list --repo owner/repo --limit 20
gh issue list --repo owner/repo --json number,title,state --jq '.[]'
API
bash
gh api repos/owner/repo/pulls/123
gh api repos/owner/repo/issues --jq '.[].title'

© huangruiteng, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in .codex/skills/github-gh-cli of huangruiteng/CS-Notes.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit d01d8f8

Compare with similar skills

GitHub Gh CLI next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

GitHub Gh CLI compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
GitHub Gh CLI this skillhuangruiteng/CS-Notes4k—~377Automated safety check: PassMIT
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Exposed Bug Fix WorkflowJetBrains/Exposed9.3k—~3.8kAutomated safety check: PassApache-2.0
GitHub PR Imagesbikeindex/bike_index308—~1.8kAutomated safety check: PassAGPL-3.0
Debug Os Failure On GitHubstrands-agents/box110—~1.3kAutomated safety check: NotesApache-2.0
Gh Address Commentstech-leads-club/agent-skills7k—~353Automated safety check: PassApache-2.0

Similar skills

  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Exposed Bug Fix Workflow

    JetBrains/Exposed

    Official

    Takes a GitHub or YouTrack issue for the Exposed project through reproduction, a failing test, a fix, validation and a pull request.

    9.3k GitHub stars~3.8k tokensUpdated today
    DevelopmentAuto-check passed
  • GitHub PR Images

    bikeindex/bike_index

    Embed a local image file into an existing GitHub PR — either in the PR body or as a comment.

    308 GitHub stars~1.8k tokensUpdated today
    DevelopmentAuto-check passed
  • Debug Os Failure On GitHub

    strands-agents/box

    Debug a CI failure on an OS you are not on (you are on Linux, it fails on macos-latest, or the reverse) without opening a pull request per attempt.

    110 GitHub stars~1.3k tokensUpdated today
    DevelopmentAuto-check: notes
  • Gh Address Comments

    tech-leads-club/agent-skills

    Address review and issue comments on the open GitHub PR for the current branch using gh CLI.

    7k GitHub stars~353 tokensUpdated 18 days ago
    DevelopmentAuto-check passed
  • Babysit

    nubjs/nub

    Bring one nubjs/nub pull request to merge-readiness — pull the inline reviews, verify each finding against the code, re-verify every fix round locally, fix CI, and loop.

    4.4k GitHub stars~1.9k tokensUpdated today
    DevelopmentAuto-check passed

More from huangruiteng/CS-Notes

All 38 skills in this repo
  • CLI Creator

    huangruiteng/CS-Notes

    Build a composable CLI for Codex from API docs, an OpenAPI spec, existing curl examples, an SDK, a web app, an admin tool, or a local script.

    4k GitHub starsUsed in 2 repos~2.7k tokens
    Auto-check passed
  • Slack

    huangruiteng/CS-Notes

    A skill your agent uses when you need to control Slack from Clawdbot via the slack tool, including reacting to messages or pinning/unpinning items in Slack channels or DMs.

    4k GitHub starsUsed in 10 repos~578 tokens
    Auto-check passed
  • Codex Thread Heartbeat

    huangruiteng/CS-Notes

    Inspect and manage guarded Codex App-native or launchd heartbeats for Codex main control threads.

    4k GitHub stars~1.5k tokensUpdated 2 days ago
    Auto-check passed
  • Codex Thread Reader

    huangruiteng/CS-Notes

    Locate and read a Codex thread by a codex thread link, thread id, or rollout path across all local CODEXHOME directories (~/.codex, ~/.codex-gpt, ...).

    4k GitHub stars~1.4k tokensUpdated 2 days ago
    Auto-check passed
  • Research Material Scout

    huangruiteng/CS-Notes

    A skill your agent uses when the user asks Codex to research, find learning materials, process "素材:" links, "请你读" / "精读" a material, build a material radar, or use SenSight-like broad information…

    4k GitHub stars~8.6k tokensUpdated 2 days ago
    Auto-check passed
  • GitHub

    huangruiteng/CS-Notes

    Interact with GitHub using the gh CLI. An agent skill from huangruiteng/CS-Notes.

    4k GitHub starsUsed in 28 repos~279 tokens
    Auto-check passed

Works with

Categories

Questions about GitHub Gh CLI

What does GitHub Gh CLI do?

Inspect GitHub pull requests, issues, workflow runs, and API data with the gh CLI. GitHub Gh CLI is an agent skill from huangruiteng/CS-Notes. Inspect GitHub pull requests, issues, workflow runs, and API data with the gh CLI.

When should I use GitHub Gh CLI?

GitHub Gh CLI fits situations like: the user wants repository facts from GitHub without opening the browser; especially for PR status; structured JSON output.

How do I install GitHub Gh CLI in Claude Code?

Run `npx skills add huangruiteng/CS-Notes --skill github-gh-cli -a claude-code`. Or copy the skill folder (.codex/skills/github-gh-cli in huangruiteng/CS-Notes) into .claude/skills/github-gh-cli in your project. Claude Code loads it when a task matches its description.

How do I install GitHub Gh CLI in Codex?

Run `npx skills add huangruiteng/CS-Notes --skill github-gh-cli -a codex`. Or copy the skill folder (.codex/skills/github-gh-cli in huangruiteng/CS-Notes) into .agents/skills/github-gh-cli in your project. Codex loads it when a task matches its description.

Can I use GitHub Gh CLI in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add huangruiteng/CS-Notes --skill github-gh-cli -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/github-gh-cli, .gemini/skills/github-gh-cli, .github/skills/github-gh-cli and .opencode/skills/github-gh-cli in your project.

What does GitHub Gh CLI need to run?

Going by SKILL.md and its folder, GitHub Gh CLI needs the command-line tools its instructions call (gh).

Does GitHub Gh CLI access the network?

SKILL.md contains no URLs. Its commands use gh, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is GitHub Gh CLI safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does GitHub Gh CLI use?

GitHub Gh CLI is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does GitHub Gh CLI use?

About 377 tokens (SKILL.md is roughly 1.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to GitHub Gh CLI?

Skills that share tags, products or a category with GitHub Gh CLI: PR Babysitter (openinterpreter/openinterpreter, 69k stars), Exposed Bug Fix Workflow (JetBrains/Exposed, 9.3k stars), GitHub PR Images (bikeindex/bike_index, 308 stars) and Debug Os Failure On GitHub (strands-agents/box, 110 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains GitHub Gh CLI?

huangruiteng (a GitHub user) maintains it in huangruiteng/CS-Notes, which has 4,000 GitHub stars. The repository holds 38 skills in this directory. The repository was last updated on October 6, 2026.

Source: huangruiteng/CS-Notes on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.