Skip to content
G

gh

Patterns for invoking the GitHub CLI (gh) from agents

by cliFree

#1647in AI Skills
0In stores

Description

gh-cli is an agent skill that gives patterns for invoking the GitHub CLI, gh, from an agent. The skill notes that gh already behaves well in…

Highlights

  • Non-interactive behaviour explained
  • Structured JSON output
  • Pagination and repository targeting
  • Search versus list commands
  • gh api fallback

Ratings & Reviews

No ratings yet

Be the first to rate gh.

People also visit

G

gh-cli

Complete GitHub CLI reference for repositories, issues, pull requests, Actions

AI Skills
Get
G

gh-cli

GitHub CLI operations via `gh` command

AI Skills
Get
G

github-ops

Operates GitHub via gh CLI and REST/GraphQL

AI Skills
Get
G

gh-cli

Enforces authenticated gh CLI workflows over unauthenticated curl, WebFetch

AI Skills
Get
G

gh-axi

Operate GitHub through the gh-axi CLI

AI Skills
Get
G

github

GitHub patterns using gh CLI for pull requests, stacked PRs, code review

AI Skills
Get

gh FAQ

Does gh need special flags for agents?

Not usually. The skill says gh skips the pager and strips colour in non-interactive use, and no no-pager flag exists.

How do I get structured data?

Use JSON output, since human output is column-formatted.

When should I use gh api?

As a fallback for requests the higher-level commands do not cover.

How do I install it?

Run npx skills add https://github.com/cli/cli --skill gh.

What do the security audits show?

skills.sh lists three audits: Gen Agent Trust Hub Pass, Socket Pass and Snyk Warn. A Warn or Fail is worth reading before you install.

What are the best gh alternatives?

Popular alternatives to gh include gh-cli, gh-cli and github-ops. See all gh alternatives

Developer Stuff

Badges