
Description
gh-cli is an agent skill that has a coding agent use the GitHub CLI, gh, for all of its GitHub work: repositories, pull requests, issues, code search, releases and direct GitHub API calls. Its central rule is to keep output small. The agent always asks for structured output with --json and picks only the fields it needs with --jq, instead of printing whole objects, which saves tokens and keeps results easy to parse. The skill assumes authentication is already configured through gh auth and shows how to check it with gh auth status. It includes examples that contrast wasteful commands with targeted ones. It suits developers who already use gh and want their agent to work with GitHub through the same tool, quickly and with less noise in the context window.…
Highlights
- Uses gh for repos, PRs, issues, search and releases
- Structured output with --json
- Field selection with --jq to save tokens
- Checks login with gh auth status
- Good and bad command examples
Ratings & Reviews
No ratings yet
Be the first to rate gh-cli.
People also visit
gh-cli FAQ
What does the gh-cli skill do?
It makes an agent use the GitHub CLI for all GitHub operations, requesting only the fields it needs with --json and --jq.
Does it handle authentication?
It assumes gh is already logged in through gh auth and tells the agent to verify with gh auth status.
Why use --json and --jq?
Requesting only needed fields keeps output short, which reduces token use and makes results easier for the agent to read.
How do I install it?
Run: npx skills add https://github.com/logicrw/gh-cli-skill --skill gh-cli
What security audit results are shown?
Gen Agent Trust Hub: Pass. Socket: Pass. Snyk: Warn.
What are the best gh-cli alternatives?
Popular alternatives to gh-cli include github, cli-gh and gh-axi. See all gh-cli alternatives




















