gh-cli

gh-cli is a skill for Claude Code from fredrikaverpil/dotfiles. It costs 46 tokens per session (391 once invoked), scanned A, original, MIT.

A skill for working with GitHub's command-line tool, based on instructions stored in a skill file.

In plain words
What is it for?
GitHub command-line work. The exact commands and workflows are not described here.
Why use it?
It can provide repeatable guidance for GitHub tasks from the terminal, but the supplied information does not say which tasks it covers.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

Good fit GitHub command-line work. The exact commands and workflows are not described here.

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

Made for: Claude Code.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/fredrikaverpil/dotfiles/gh-cli"><img src="https://agentmods.dev/badge/skills/fredrikaverpil/dotfiles/gh-cli.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 391 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 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 Agent Snooping · line 1
    Skill enumerates or reads other installed skills. Access to other skills' SKILL.md files or the skills directory reveals prompt instructions, capabilities, and secrets that should be invisible to peer skills.
    Fix: Remove all code or instructions that list or read other skills' files or directories. Skills should operate independently; cross-skill access is a privilege escalation.
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.00046 $0.00391
Opus 5.5 $0.00018 $0.00156
Sonnet 5.5 $0.00009 $0.00078
Haiku 4.5 $0.00005 $0.00039

Measured today against content hash 266f3a1c16e5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

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

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.

stow/shared/.claude/skills/gh-cli/SKILL.md · 47 lines

What it actually says

gh CLI

gh --help and https://cli.github.com/manual cover the command surface. This skill covers only what they don't.

Conventions

  • Pass --limit N on every list command (pr list, issue list, run list). The defaults dump far more than a terminal needs.
  • --json FIELDS when the output feeds a script; pipe to jq from there.

Reviewing a PR with line-level comments

gh pr review only submits an overall body. Inline comments need gh api, which posts the comments and the summary in one call. Read the diff first (gh pr diff NUMBER), then:

gh api repos/{owner}/{repo}/pulls/NUMBER/reviews --input - <<'EOF'
{
  "commit_id": "LATEST_COMMIT_SHA",
  "event": "COMMENT",
  "body": "Overall: solid changes with a few suggestions.",
  "comments": [
    {
      "path": "src/example.go",
      "line": 42,
      "side": "RIGHT",
      "body": "This variable is unused."
    }
  ]
}
EOF

side is RIGHT for additions, LEFT for deletions; multi-line comments add start_line and start_side. A body may contain a GitHub suggestion block (```suggestion) to propose replacement code.

event is COMMENT, APPROVE, or REQUEST_CHANGES — ask me which one before submitting, and default to COMMENT.

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. today Changed · +46 lines · +46 tokens per session 266f3a1c16e5
  2. 1mo ago First seen · 1 lines · 0 tokens per session scan A cb18d1c907f6

Subscribe to this mod's changes

gh-cli is a skill published in the GitHub repository fredrikaverpil/dotfiles (260 stars, last pushed today), licensed MIT. It adds 46 tokens to every session and 391 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-08-30.

Related

Other skills, from other repositories

finishing-a-development-branch

Use when implementation is complete, all tests pass, and you need to decide how to integrate the work.

denolfe/dotfiles · 27 tokens

pr

Use when the user wants to create a new pull request, update an existing PR's body, open a draft PR, or preview a PR body locally before pushing.

denolfe/dotfiles · 35 tokens

using-git-worktrees

Use when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback.

denolfe/dotfiles · 36 tokens

mbo-plan

Plan a new objective end-to-end in this repo's docs/mbo Management-By-Objective system — turn a GitHub issue or a gss draft-PR worktree into consistent design/spec/plan artifacts and track it in docs/mbo/index.md. Use this whenever the user wants to START planning or designing a new feature, skill, CLI, or service…

sfc-gh-eraigosa/dotfiles · 260 tokens

herdr

Use when the user mentions herdr or is working inside a herdr pane and wants to save/restore a pane layout, change herdr's theme, prefix or other preferences on this host only, start or check on an agent in another herdr pane, add, turn off or open a herdr plugin (file viewer, keybindings), or asks why the herdr…

sfc-gh-eraigosa/dotfiles · 91 tokens

wispr-flow-debug

Debug and test the Wispr Flow AutoHotkey dictation triggers (Copilot key + extra keys) from WSL by deploying macos.ahk to the Windows Desktop, reloading AutoHotkey, and reading the debug log. Use when an activation/trigger key isn't starting/stopping dictation, when the overlay clicks land wrong, or when verifying a…

sfc-gh-eraigosa/dotfiles · 87 tokens