github-cli

github-cli is a skill for Claude Code from juan294/cc-rpi. It costs 28 tokens per session (887 once invoked), scanned A, original, MIT.

A guide to using GitHub CLI, the command-line tool for working with GitHub repositories, pull requests, releases, issues, labels, and checks.

In plain words
What is it for?
Use it to inspect pull-request checks, discover available fields, create releases or issues, manage labels, and check allowed merge settings.
Why use it?
It helps avoid incorrect flags, unknown JSON fields, misleading check results, missing labels, and unsupported merge methods.

Skill for Claude Code

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

Part of the cc-rpi plugin — 36 skills, 19 commands, 2 hooks shipped together

Good fit Use it to inspect pull-request checks, discover available fields, create releases or issues, manage labels, and check allowed merge settings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/juan294/cc-rpi/github-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 juan294/cc-rpi --skill github-cli
Clone the repo
git clone --depth 1 https://github.com/juan294/cc-rpi

Made for: Claude Code.

Or install cc-rpi, the plugin that ships this one along with the rest of its 36 skills, 19 commands, 2 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 github-cli

README.md
[![agentmods](https://agentmods.dev/badge/skills/juan294/cc-rpi/github-cli/github.svg)](https://agentmods.dev/skills/juan294/cc-rpi/github-cli)
Your own site
<a href="https://agentmods.dev/skills/juan294/cc-rpi/github-cli"><img src="https://agentmods.dev/badge/skills/juan294/cc-rpi/github-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 github-cli

Your own site · 80×15
<a href="https://agentmods.dev/skills/juan294/cc-rpi/github-cli"><img src="https://agentmods.dev/badge/skills/juan294/cc-rpi/github-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 887 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.00028 $0.00887
Opus 5.5 $0.00011 $0.00355
Sonnet 5.5 $0.00006 $0.00177
Haiku 4.5 $0.00003 $0.00089

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

Security

Grade A, and why

github-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.

generated/claude/skills/github-cli/SKILL.md · 139 lines

How it starts

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

GitHub CLI

JSON Field Discovery

Wrong -- guess field names:

gh pr checks 42 --json conclusion  # Unknown field

Right -- discover fields first:

gh pr checks --help

PR Check Interpretation

Use the documented fields and preserve the command status:

gh pr checks 42 --json name,state,bucket,workflow
# Or watch existing checks to completion:
gh pr checks 42 --watch

Pending checks return exit 8. Exit 1 can mean failed checks or another command error; inspect output. bucket distinguishes pass, fail, pending, skipping, and cancel. Do not discard a check merely because its name is review; inspect its workflow and the repository's requirements. An empty or incomplete check inventory is not evidence that required CI ran. These commands inspect existing checks; they do not authorize PR creation. See the GitHub CLI manual.

Release vs PR Flags

Wrong -- --body is for pr/issue create, not release:

gh release create v1.0.0 --body "notes"

Right -- releases use --notes:

gh release create v1.0.0 --notes "notes"

Label and Merge Settings

Wrong -- assume labels exist and merge method is allowed:

gh issue create --label "chore" --title "Fix"  # label not found
gh pr merge 42 --merge                         # method not allowed

Right -- check or create first:

gh label list && gh label create "chore" --color "ededed"
gh api repos/{owner}/{repo} --jq '.allow_squash_merge, .allow_merge_commit'

When creating multiple issues, create them sequentially, not as parallel tool calls -- a batch of parallel gh issue create calls that all hit the same missing label fail together instead of surfacing once.

Deprecated Projects (Classic) API

Wrong -- an older gh version queries a removed field and errors:

gh issue view 42 --json projectCards  # Projects (classic) is deprecated

Right -- upgrade gh first:

Read the full file on GitHub · 139 lines

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 Changed · +5 lines a90bb082cdec
  2. 1mo ago First seen · 134 lines · 28 tokens per session scan A df092250fbd9

Subscribe to this mod's changes

github-cli is a skill published in the GitHub repository juan294/cc-rpi (5 stars, last pushed 7d ago), licensed MIT. It adds 28 tokens to every session and 887 once invoked, about $0.0001 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-08-31.

Related

Other skills, from other repositories

git

Run git version control commands for repository management. Use when the user asks to check status, view history or diffs, stage and commit changes, manage branches, merge or rebase, work with remotes, stash changes, tag releases, cherry-pick commits, bisect regressions, resolve conflicts, manage worktrees or…

bug-ops/zeph · 106 tokens

studio-source-control

Drive a scoped application's linked git repository from the instance — what has to be true before Source Control works at all, the commit-then-push order, stashes and branches over /api/snsourcecontrol, and when this replaces update sets rather than sitting next to them.

serac-labs/serac · 59 tokens

git-workflow

Helps with git workflows including conventional commit messages, branching strategies, merge conflict resolution, and changelog generation. Triggers on: "git commit message", "branching strategy", "resolve conflict", "generate changelog".

timwukp/agent-skills-best-practice · 49 tokens

repo-delivery

Execute authorized Git commits, pushes, integration, history changes, or cleanup.

idaibin/skills · 19 tokens

ship

Use when a change is ready to land. Runs the full sequence — branch, quality gate, commit, push, PR — so nothing gets skipped.

HumanDealer/vibeproof · 32 tokens

git-onboarding-auto

A Git setup and pull-request workflow automation skill. Git is the version-control tool developers use to track code changes, while a pull request is a request for teammates to review and merge those changes.

GeonheeYe/multi-agent-dotfiles · 47 tokens