github-cli

github-cli is a skill for Claude Code, Codex from anilcancakir/claude-code. It costs 59 tokens per session (2,460 once invoked), scanned A, original, MIT.

A GitHub reading tool that uses GitHub's command-line program, gh, to inspect repositories, issues, pull requests, releases, and CI runs. CI runs are automated checks that build or test code.

In plain words
What is it for?
Use it to research a GitHub project, inspect issue and pull-request history, read release details, or investigate continuous-integration results.
Why use it?
It provides structured repository data and file contents without relying on incomplete web pages. It also helps keep research tied to a specific commit so the information can be checked later.

Skill for Claude CodeCodex

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

Good fit Use it to research a GitHub project, inspect issue and pull-request history, read release details, or investigate continuous-integration results.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/anilcancakir/claude-code/github-cli/github.svg)](https://agentmods.dev/skills/anilcancakir/claude-code/github-cli)
Your own site
<a href="https://agentmods.dev/skills/anilcancakir/claude-code/github-cli"><img src="https://agentmods.dev/badge/skills/anilcancakir/claude-code/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/anilcancakir/claude-code/github-cli"><img src="https://agentmods.dev/badge/skills/anilcancakir/claude-code/github-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,460 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.00059 $0.02460
Opus 5.5 $0.00024 $0.00984
Sonnet 5.5 $0.00012 $0.00492
Haiku 4.5 $0.00006 $0.00246

Measured 14d ago against content hash b643cf6126bf, 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 14d 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.

opencode/ac/skills/github-cli/SKILL.md · 140 lines

How it starts

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

GitHub CLI

Use gh for every GitHub lookup. A GitHub page fetched through the web is rate-limited, truncated and stripped of structure, while gh returns the exact file text or JSON and authenticates with the user's own token. Check it is usable before the first call: command -v gh && gh auth status. If either fails, say so and fall back to webfetch rather than guessing.

Every command takes --help, and gh <cmd> --json with no value lists the available JSON fields. Outside a git checkout, pass the repository explicitly: -R OWNER/REPO on issue, pr, release, run, workflow and label commands, OWNER/REPO as the argument to gh repo view and gh repo clone, and a literal repos/OWNER/REPO/... path to gh api. The {owner} and {repo} placeholders resolve from the current directory's remote, so in research they would silently point at the wrong repository.

This file covers reading. Anything that changes state on GitHub is in references/write-ops.md (see Writing to GitHub below).

Research recipes

Pin reads to a commit SHA, not a branch, so the lines you cite stay the lines you read.

Resolve a ref to a SHA

SHA=$(gh api repos/OWNER/REPO/commits/main --jq .sha)        # branch, tag or short SHA all work

Read a file at that commit

gh api -H 'Accept: application/vnd.github.raw+json' "repos/OWNER/REPO/contents/path/to/file.ts?ref=$SHA"
gh api "repos/OWNER/REPO/contents/path/to/file.ts?ref=$SHA" --jq .content | base64 -d    # same, via the JSON form

The raw header returns the file body directly. The JSON form is for when you also need .sha, .size or .download_url. Files over 1 MB come back without content; use the blob API (repos/OWNER/REPO/git/blobs/<blob-sha>) or a clone.

List a directory or the whole tree

gh api "repos/OWNER/REPO/contents/src?ref=$SHA" --jq '.[] | .type + " " + .path'     # one directory
gh api "repos/OWNER/REPO/git/trees/$SHA?recursive=1" --jq '.tree[].path'            # every path

Read the full file on GitHub · 140 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. 14d ago Changed · +32 tokens per session b643cf6126bf
  2. 15d ago First seen · 140 lines · 27 tokens per session scan A 0521aa1a0951

Subscribe to this mod's changes

github-cli is a skill published in the GitHub repository anilcancakir/claude-code (4 stars, last pushed 2d ago), licensed MIT. It adds 59 tokens to every session and 2,460 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-10-31.

Related

github-cli compared with skills from other repositories

github-cli next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
github-clianilcancakir/claude-codeSkill42d agoMITA59Claude Code, Codex
version-bumpNikiforovAll/claude-code-rulesSkill14213d agoApache-2.0A48Claude Code
git-branchlessOutlineDriven/odin-claude-pluginSkill401mo agoApache-2.0A45Claude Code, Codex
atomic-issues-prsOutlineDriven/odin-claude-pluginSkill401mo agoApache-2.0A40Claude Code, Codex
git-workflow-and-versioningOutlineDriven/odin-claude-pluginSkill401mo agoApache-2.0A42Claude Code, Codex
post-merge-cleanupOutlineDriven/odin-claude-pluginSkill401mo agoApache-2.0A48Claude Code, Codex
lockstep-version-guardOutlineDriven/odin-claude-pluginSkill401mo agoApache-2.0A59Claude Code, Codex