cli-gh

cli-gh is a skill for Claude Code, Codex from PaulRBerg/agent-skills. It costs 47 tokens per session (1,403 once invoked), scanned A, original, MIT.

A set of instructions for using GitHub's command-line tool to inspect and manage repositories. GitHub is a service for hosting code, tracking changes, and running automated workflows.

In plain words
What is it for?
Use it to inspect repositories, search code, check workflow runs, manage releases and settings, work with codespaces, and automate GitHub tasks that do not create contribution content.
Why use it?
It provides a consistent way to perform read-only repository tasks and other explicitly requested automation from a terminal. It also separates inspection work from writing comments or contributions.

Skill for Claude CodeCodex

Written for Claude Code and Codex: user-invocable in frontmatter, but also agents/openai.yaml present.

Good fit Use it to inspect repositories, search code, check workflow runs, manage releases and settings, work with codespaces, and automate GitHub tasks that do not create contribution content.

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

Made for: Claude Code, Codex.

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 cli-gh

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/paulrberg/agent-skills/cli-gh"><img src="https://agentmods.dev/badge/skills/paulrberg/agent-skills/cli-gh.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,403 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 26 Oct 2026
  • Snyk warn 26 Oct 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Excessive Agency · line 28
    Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.
    Fix: Add human-in-the-loop confirmation for destructive, irreversible, or high-impact operations. Never auto-execute commands that modify files, send data, or alter system state.
How audits are shown
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.01403
Opus 5.5 $0.00019 $0.00561
Sonnet 5.5 $0.00009 $0.00281
Haiku 4.5 $0.00005 $0.00140

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

Security

Grade A, and why

cli-gh scanned grade A with 1 finding 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 4d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -fsS https://www.githubstatus.com/api/v2/summary.json | jq '{status: .status.description,
skills/cli-gh/SKILL.md · 116 lines

How it starts

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

GitHub CLI

This skill is coordination-exempt: skip the ai-coord gate for its declared work.

Routing

Use yeet to author or update a pull request, issue, issue comment, or discussion. yeet owns semantic analysis, repository templates, Paul's writing voice, idempotency, and direct posting. Route repository renames through repo-rename so GitHub and local continuity change together.

Authority

  • Read and inspect without confirmation.
  • Execute reversible or ordinary GitHub writes only when the user explicitly requested that outcome.
  • Never delete repositories, releases/assets, workflow runs/caches, secrets/variables, keys, codespaces, extensions, or gists.
  • Label deletion is the sole destructive exception: show the target repo, exact labels, commands, and issue/PR impact, then require approval in a subsequent message before gh label delete ... --yes.

Workflow

  1. Resolve the repository explicitly when cwd is ambiguous. Let the first required read-only command validate authentication. Run gh auth status only for auth diagnosis.

  2. Use installed gh <command> <subcommand> --help to resolve flags, JSON fields, and command behavior. CLI JSON field names can differ from API fields. Prefer --json with --jq for structured output.

  3. Preview broad writes with the repository, exact targets, commands, and issue/PR impact. An already requested ordinary write does not require a second approval.

GitHub Status

GitHub incidents produce symptoms that look like a local defect. Examples: a run stays queued for minutes with no runner, gh run cancel reports a run as completed while gh run view still shows it queued, the API returns 5xx errors, or a push succeeds while Actions does not start.

Before you tell the user that an error, a stall, or an inconsistent result comes from their setup, workflow, or credentials, check GitHub's status page:

curl -fsS https://www.githubstatus.com/api/v2/summary.json | jq '{status: .status.description,
  incidents: [.incidents[] | {name, status, impact, updated_at}],
  degraded: [.components[] | select(.status != "operational") | {name, status}]}'

Read the full file on GitHub · 116 lines

Files

What ships with it

2 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. 4d ago Changed · +20 lines d3dbdc65910a
  2. 6d ago Changed · +3 lines e986ddca8745
  3. 13d ago Changed 16c407fce548
  4. 17d ago Changed · +3 lines 3e0fb87f8c94
  5. 1mo ago Changed · +28 lines 39abf78c1fbe
  6. 1mo ago Changed · +2 lines 25381315b83a
  7. 1mo ago Changed · -14 lines f962a5c3f158
  8. 2mo ago First seen · 74 lines · 47 tokens per session scan A c15f252eff4e

Subscribe to this mod's changes

cli-gh is a skill published in the GitHub repository PaulRBerg/agent-skills (104 stars, last pushed 2d ago), licensed MIT. It adds 47 tokens to every session and 1,403 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

cli-gh compared with skills from other repositories

cli-gh next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cli-ghPaulRBerg/agent-skillsSkill1042d agoMITA47Claude Code, Codex
release-announcementpaperclipai/paperclipSkill112ktodayMITA42Claude Code, Codex
releasethedotmack/claude-memSkill115ktodayApache-2.0A13Claude Code
release-notesphuryn/pm-skillsSkill28k10d agoMITA57Claude Code
multi-agent-release-managerchromium/chromiumSkill25ktodayBSD-3-ClauseA27Claude Code, Codex
pack-submitaeonfun/aeonSkill789yesterdayMITA27Claude Code, Codex
updater_guidesiddsachar/row-botSkill1.7ktodayApache-2.0A22Claude Code, Codex