SkillAgentSearch skills...

gh-cli

Enforces authenticated gh CLI workflows over unauthenticated curl, WebFetch, and MCP fetch patterns

Install / Use

npx skills add trailofbits/skills --skill gh-cli

Installs into whichever agent you are using.

About this skill
📄

SKILL.md

Installable skill definition

Quality Score

75/100

Category

Automation

Supported Platforms

Universal

Our assessment of gh-cli

gh-cli scores 75/100 on our quality scale, 1117th of 1,411 Automation skills we index.

Its SKILL.md is 1.2 KB long, split into 4 sections with 1 code example: moderately detailed.

With 7,225 GitHub stars, it is one of the more widely adopted skills in the catalogue.

Substance
20/30
Structure
12/20
Description
12/15
Adoption
16/20
Freshness
15/15

Maintenance, license and trust

  • The repository was last updated 3 days ago, so gh-cli is actively maintained.
  • It is released under the CC-BY-SA-4.0 license; check its terms before commercial use.
  • Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

gh-cli compared with similar skills

All 4 of these similar skills score higher than gh-cli; compare them before choosing.

SkillScoreStarsUpdatedFormat
gh-cli (this skill)by trailofbits757.2k3d agoSKILL.md
Agent-Reachby Panniantong10085.5k11d agoCLAUDE.md
headroomby headroomlabs-ai10073.8ktodayCLAUDE.md
rufloby ruvnet10073.3k1d agoCLAUDE.md
CowAgentby zhayujie10047.1ktodayCLAUDE.md

Frequently asked questions

How do I install gh-cli?
Run npx skills add trailofbits/skills --skill gh-cli. The install tabs above show the steps for each supported agent.
Which AI agents does gh-cli work with?
It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
Is gh-cli safe to use?
It is CC-BY-SA-4.0-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is gh-cli still maintained?
The repository was last updated 3 days ago, so gh-cli is actively maintained.

name: gh-cli description: Enforces authenticated gh CLI workflows over unauthenticated curl, WebFetch, and MCP fetch patterns. Use when working with GitHub URLs, API access, pull requests, or issues.

gh-cli

When to Use

  • Working with GitHub repositories, pull requests, issues, releases, or raw file URLs.
  • You need authenticated access to private repositories or higher API rate limits.
  • You are about to use curl, wget, WebFetch, or an MCP fetch tool against GitHub.

When NOT to Use

  • The target is not GitHub.
  • Plain local git operations already solve the task.

Guidance

Prefer the authenticated gh CLI over raw HTTP fetches for GitHub content. In particular:

  • Prefer gh repo view, gh pr view, gh pr list, gh issue view, and gh api over unauthenticated curl or wget.
  • Prefer cloning a repository and reading files locally over fetching raw.githubusercontent.com blobs directly.
  • Avoid using GitHub API /contents/ endpoints as a substitute for cloning and reading repository files.

Examples:

gh repo view owner/repo
gh pr view 123 --repo owner/repo
gh api repos/owner/repo/pulls

For the hook implementation, see:

  • plugins/gh-cli/README.md
  • plugins/gh-cli/hooks/

Related Skills

View on GitHub
GitHub Stars7.2k
CategoryAutomation
Updated3d ago
Forks615

Languages

Python

Trust signals

100/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

No cautions