Skip to content
SkillModel-led249 tokens in use

gh-cli

Steers the agent to the authenticated gh CLI for GitHub repos, pull requests, issues and API calls, and to local clones for file contents.

8,319 stars on the repository CC-BY-SA-4.0trailofbits/skills · plugins/gh-cli/skills/gh-cli
/plugin marketplace add trailofbits/skills
View source

Install command as written in the repository's README

Skill label

measured from its files

What installing gh-cli costs

38tokens idle
249tokens in use

Idle is what sits in context while the skill is installed. In use is its instructions, loaded when it runs. Counts are approximate, made offline with cl100k_base.

Model dependence Model-led

Script-ledMixedModel-led

Mostly instructions, so how well it works depends on the model that follows them.

This describes the skill's structure, how much of it is scripts. It does not say how well it works.

Touches

shelldetectednetworkdetected

Declared tags come from the skill's frontmatter; detected ones from its scripts, its code blocks and the commands it names in inline code. This is detected, not audited.

How it scores

Quality

How well the skill is written, counted from its own files: its frontmatter, its steps, examples, stated output and constraints, its size and whether every file it ships is one it names.How we score it →
Fair
  • Frontmatter12/15
  • Structure8/25
  • Examples9/15
  • Output2/15
  • Size15/15
  • Resources0/15

Security

Starts at 100 and loses points for each thing in the skill's files that a reader should look at first.How we score it →
Excellent
  • Reaches the network−10

    does this on the machine, and the frontmatter does not say so

    SKILL.md, line 30
  • Runs shell commands−5

    does this on the machine, and the frontmatter does not say so

    SKILL.md, line 30

Repository health

Pre-computed score based on development activity, maintenance, community, maturity, and trend momentum.How we score it →
Good
  • Development activity100
  • Maintenance52
  • Community64
  • Maturity32
  • Momentum40

gh-cli is a short guidance skill for any task that touches GitHub. It tells the agent to use authenticated gh commands such as gh repo view, gh pr view, gh issue view and gh api when it would otherwise reach for curl, wget, WebFetch or an MCP fetch tool.

Authenticated calls reach private repositories and get higher API rate limits. For reading source, the skill prefers cloning the repository and reading files locally.

What You Get

  • A rule to prefer gh repo view, gh pr view, gh pr list, gh issue view and gh api for GitHub content
  • A rule to clone a repository and read files locally when contents are needed
  • A warning against using the GitHub API contents endpoints as a way to read files
  • Example commands to copy

Common Use Cases

  • Reading a pull request or issue from a private repository
  • Listing pull requests without hitting unauthenticated rate limits
  • Inspecting a repository’s files in an agent session
  • Keeping an agent from fetching raw.githubusercontent.com blobs one at a time

What Makes It Unique

It is small and single-purpose: one habit, using the authenticated CLI for GitHub, written down for the agent. The plugin pairs it with hooks that redirect fetch attempts, so the guidance in the skill is backed by interception in the same package.

Under The Hood

The skill is a single prose file with no scripts. It leads the agent to run gh commands in the shell, which call the GitHub API with your logged-in credentials, and to clone repositories to disk. The hooks that intercept web fetches live in the plugin folder next to the skill and are not part of what this page measures.

Join founders building with open source

Opinionated takes, migration guides, cost-saving tips, and insights from the open source ecosystem.

Subscribe on SubstackJoin 750+ subscribers