setup-gh-cli

setup-gh-cli is a skill for Claude Code, Codex from PacificStudio/openase. It costs 20 tokens per session (145 once invoked), scanned A, original, Apache-2.0.

A setup procedure for GitHub CLI, the command-line tool for working with GitHub. It checks whether the tool is installed and whether the machine is signed in.

In plain words
What is it for?
Use it before tasks that need GitHub from a terminal, such as repository or pull-request operations. It verifies the installed version and authentication status without placing tokens in shell history or repository files.
Why use it?
It removes the guesswork around a missing or unusable GitHub command and identifies authentication problems such as missing credentials or network failures.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it before tasks that need GitHub from a terminal, such as repository or pull-request operations. It verifies the installed version and authentication status without placing tokens in shell history or repository files.

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/pacificstudio/openase/setup-gh-cli"><img src="https://agentmods.dev/badge/skills/pacificstudio/openase/setup-gh-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 20 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 145 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
  • NVIDIA SkillSpector pass 7 Sept 2026
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.00020 $0.00145
Opus 5.5 $0.00008 $0.00058
Sonnet 5.5 $0.00004 $0.00029
Haiku 4.5 $0.00002 $0.00015

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

Security

Grade A, and why

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

internal/builtin/skills/setup-gh-cli/SKILL.md · 18 lines

What it actually says

Setup GitHub CLI

Goal: make the target machine provide a working gh command and confirm GitHub authentication status.

Follow this process:

  • Check the current output of gh --version and gh auth status.
  • If gh is missing, install it using an officially supported method.
  • If gh is installed but unauthenticated, complete auth and verify again.
  • If authentication fails, record the exact reason, such as network issues, a missing token, or an unreachable host.

Do not write plaintext tokens into shell history or repository files.

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 · 18 lines · 20 tokens per session scan A 8963096a9772

Subscribe to this mod's changes

setup-gh-cli is a skill published in the GitHub repository PacificStudio/openase (269 stars, last pushed 2mo ago), licensed Apache-2.0. It adds 20 tokens to every session and 145 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-30.

Related

Other skills, from other repositories

open-code-review

Performs AI-powered code review on Git changes using the ocr CLI from alibaba/open-code-review. Use when the user asks to review code, review a pull request, review staged/unstaged changes, review a commit, or compare branches for code quality issues. Produces line-level review comments and can automatically apply…

alibaba/open-code-review · 98 tokens

baby-sit

Monitor a GitHub pull request until CI is green, diagnose failures, and rerun only evidence-backed flaky GitHub Actions jobs.

langchain-ai/open-swe · 30 tokens

git-checkpoint

Use git as a safety net - create a checkpoint commit before risky or large changes and roll back cleanly if a change makes things worse. Use before multi-file refactors.

agentscope-ai/agentscope-java · 39 tokens

git

Git and code hosting platform management — GitHub, GitLab, Codeberg, Forgejo. Zero barrier — install x-cmd and manage repos from the terminal. Use for "git", "github", "gitlab", "repo", "pull request", "code hosting".

x-cmd/x-cmd · 58 tokens

meta-codereview-current-diff

Read the current uncommitted diff, run three independent reviewers (safety + tests-coverage + style) in parallel, then arbitrate a single BLOCK / BLOCKWITHOVERRIDE / PASSWITHNOTES verdict. Use before commit when you want a multi-perspective second-opinion instead of a single-reviewer agent loop.

opensquilla/opensquilla · 73 tokens

git-diff

Capture the current git diff (staged, working-tree, or staged file list) as text. Direct shell call for workflows that need repository diffs without an LLM agent loop.

opensquilla/opensquilla · 41 tokens