cli-gh

cli-gh is a skill for Claude Code, Codex from PaulRBerg/agent-skills. It costs 47 tokens per session (845 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.

not rated 70repo today A scan Socket: passSnyk: warnSkillSpector: warn 47 tokens original MIT

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.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.svg" alt="Measured on agentmods" 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 845 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. Third-party audits
  • Socket pass 7 May 2026
  • Snyk warn 7 May 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.00845
Opus 5 $0.00023 $0.00423
Sonnet 5 $0.00009 $0.00169
Haiku 4.5 $0.00005 $0.00085

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

Security

Grade A, and why

cli-gh 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 8d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (examples/auto-pr-create.sh, examples/issue-triage.sh, examples/release-automation.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

skills/cli-gh/SKILL.md · 74 lines

How it starts

The opening of the file, as written. The whole thing — 74 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.

Route GitHub CLI work through current gh help and load only the reference for the active task.

Boundary with yeet

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. Use this skill for read-only GitHub inspection, command syntax, searches, workflow operations, codespaces, releases, configuration, and automation that does not author contribution content.

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.
  • Route repository renames through repo-rename so GitHub and local continuity change together.

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. Inspect gh <command> <subcommand> --help for the installed version before relying on flags or JSON fields. Prefer --json plus --jq for machine-readable results.

  3. Load only the relevant reference:

    Task Reference
    Workflow runs, checks, logs references/workflows-actions.md
    Releases references/releases.md
    Search references/search.md
    JSON fields and jq references/json-output.md
    Labels references/labels.md
    Codespaces references/codespaces.md
    Discussions syntax (not authored contribution workflow) references/discussions.md
    Gists references/gists.md
    Aliases, API, extensions, org/projects, secrets, rulesets references/advanced-features.md
    Reusable automation patterns references/automation-workflows.md
    Failures and auth/rate limits references/troubleshooting.md

Read the full file on GitHub · 74 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. 8d 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 (70 stars, last pushed today), licensed MIT. It adds 47 tokens to every session and 845 once invoked, about $0.0002 per session on Opus 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-30.