gh-cli

gh-cli is a skill for Claude Code from HigorAlves/orc. It costs 47 tokens per session (1,330 once invoked), scanned A, original, MIT.

A command-line guide for GitHub, the website and service used to host code repositories and collaborate on software. It covers repositories, issues, pull requests, automated checks, releases, and GitHub's API.

In plain words
What is it for?
Use it to manage repositories, issues, pull requests, CI runs, releases, labels, secrets, projects, and other GitHub operations.
Why use it?
It helps you use GitHub from a terminal without having to remember every command or option.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the orc plugin — 84 skills, 31 commands, 14 agents, 6 hooks shipped together

Good fit Use it to manage repositories, issues, pull requests, CI runs, releases, labels, secrets, projects, and other GitHub operations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/higoralves/orc/gh-cli
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add HigorAlves/orc --skill gh-cli
Clone the repo
git clone --depth 1 https://github.com/HigorAlves/orc

Made for: Claude Code.

Or install orc, the plugin that ships this one along with the rest of its 84 skills, 31 commands, 14 agents, 6 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for gh-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/higoralves/orc/gh-cli/github.svg)](https://agentmods.dev/skills/higoralves/orc/gh-cli)
Your own site
<a href="https://agentmods.dev/skills/higoralves/orc/gh-cli"><img src="https://agentmods.dev/badge/skills/higoralves/orc/gh-cli/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gh-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/higoralves/orc/gh-cli"><img src="https://agentmods.dev/badge/skills/higoralves/orc/gh-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,330 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00047 $0.01330
Opus 5.5 $0.00019 $0.00532
Sonnet 5.5 $0.00009 $0.00266
Haiku 4.5 $0.00005 $0.00133

Measured 1mo ago against content hash b7a55e2abac8, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

gh-cli scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

orc/skills/gh-cli/SKILL.md · 98 lines

How it starts

The opening of the file, as written. The whole thing — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.

GitHub CLI (gh)

Index for working with GitHub from the command line via gh. This file is a thin guide — the bulk of the command flags/examples live in references/<topic>.md. Read the relevant references/ file when you need detail for that topic.

Version: 2.85.0 (current as of January 2026)

When to use

Reach for gh whenever the task is a GitHub operation from the terminal: opening/viewing/merging PRs, filing or triaging issues, inspecting CI runs, cutting releases, managing repos/labels/secrets, or hitting the REST/GraphQL API. Prefer dedicated gh <noun> <verb> commands over raw gh api when one exists.

Decision tree

  • Working with a PR? → see common workflows below, then references/pr.md.
  • Filing/triaging an issue? → common workflows below, then references/issue.md.
  • Logging in, tokens, scopes, config, SSH/GPG keys? → references/auth.md.
  • Creating/cloning/forking/editing repos, labels, rulesets, orgs, browse? → references/repo.md.
  • CI: runs, workflows, caches, secrets, variables? → references/actions.md.
  • Posting a structured PR review with inline comments + suggestions? → references/pr.md (the gh api .../reviews section) and the orc:inline-review skill.

Common orc workflows (inline)

PR: create / view / diff / checkout

# Create a PR (interactive, or with title/body/base/draft)
gh pr create --title "Feature: X" --body "..." --base main
gh pr create --draft
gh pr create --body-file .github/PULL_REQUEST_TEMPLATE.md

# View a PR (add --comments / --web; --json for fields)
gh pr view 123
gh pr view 123 --json title,body,state,author,commits,files

# Diff a PR
gh pr diff 123
gh pr diff 123 --name-only
gh pr diff 123 > pr-123.patch

# Check out a PR branch locally
gh pr checkout 123

# Checks, merge, ready
gh pr checks 123 --watch
gh pr merge 123 --squash --delete-branch
gh pr ready 123

→ Full flags, edit/comment/review/lock/revert/status, and the inline-review API: references/pr.md.

Issue ops

Read the full file on GitHub · 98 lines

Files

What ships with it

10 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 98 lines · 47 tokens per session scan A b7a55e2abac8

Subscribe to this mod's changes

gh-cli is a skill published in the GitHub repository HigorAlves/orc (6 stars, last pushed 10d ago), licensed MIT. It adds 47 tokens to every session and 1,330 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.