
Gh Cli
Look up exact gh syntax for repos, issues, PRs, Actions, releases, and auth from the terminal without leaving the agent session.
Overview
gh-cli is an agent skill most often used in Build (also Ship, Launch) that provides a comprehensive GitHub CLI reference for repositories, issues, PRs, Actions, and releases from the command line.
Install
npx skills add https://github.com/ilteoood/harness --skill gh-cliWhat is this skill?
- Reference aligned to GitHub CLI 2.85.0 (January 2026)
- Covers auth login, token, setup-git, status, switch, and logout flows
- Documents repositories, issues, pull requests, Actions, projects, releases, gists, and codespaces
- Includes install paths for macOS, Linux, and Windows plus gh --version verification
- Supports enterprise hostnames and non-interactive token login
- Documents GitHub CLI version 2.85.0 (current as of January 2026)
Adoption & trust: 1 installs on skills.sh; 2 GitHub stars; 2/3 security scanners passed (skills.sh audits); trending (+100% hot-view momentum).
What problem does it solve?
You know GitHub has a CLI but forget flags for PRs, Actions, auth, or enterprise hosts and waste cycles searching fragmented docs.
Who is it for?
Solo developers using Claude Code or Cursor who manage GitHub repos, PRs, and Actions daily from the shell.
Skip if: Teams that only use the GitHub web UI and never install or authenticate gh on their machine.
When should I use this skill?
You need GitHub CLI commands for repos, issues, PRs, Actions, releases, gists, codespaces, orgs, or extensions from the command line.
What do I get? / Deliverables
You run correct gh commands with install and auth steps handy, keeping repo and CI/CD work inside your terminal-first agent workflow.
- Correct gh command examples for the requested GitHub operation
- Auth and install steps matched to the developer OS
Recommended Skills
Journey fit
Spans multiple journey phases - primary shelf plus alternate fits below.
GitHub CLI is used throughout the product lifecycle; the canonical shelf is Build integrations because daily coding and repo operations start there. Integrations captures command-line GitHub connectivity (auth, API-backed gh commands) rather than frontend or docs authoring.
Where it fits
Configure gh auth setup-git so agent-driven commits push to GitHub without manual credential prompts.
Look up gh pr checks and comment commands while triaging a failing CI run before merge.
Use gh release create syntax to tag and publish a solo SaaS build from the terminal.
How it compares
A procedural gh command reference skill—not the GitHub MCP server and not a code review methodology skill.
Common Questions / FAQ
Who is gh-cli for?
Indie builders and agent users who standardize on GitHub CLI for repo, issue, PR, and Actions tasks from the terminal.
When should I use gh-cli?
During Build for git integration and PR prep, during Ship for reviews and CI checks, and near Launch for releases and distribution tags—whenever you need exact gh syntax.
Is gh-cli safe to install?
The skill documents token and auth flows; review the Security Audits panel on this page and avoid pasting production tokens into untrusted agent logs.
SKILL.md
READMESKILL.md - Gh Cli
# GitHub CLI (gh) Comprehensive reference for GitHub CLI (gh) - work seamlessly with GitHub from the command line. **Version:** 2.85.0 (current as of January 2026) ## Prerequisites ### Installation ```bash # macOS brew install gh # Linux curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null sudo apt update sudo apt install gh # Windows winget install --id GitHub.cli # Verify installation gh --version ``` ### Authentication ```bash # Interactive login (default: github.com) gh auth login # Login with specific hostname gh auth login --hostname enterprise.internal # Login with token gh auth login --with-token < mytoken.txt # Check authentication status gh auth status # Switch accounts gh auth switch --hostname github.com --user username # Logout gh auth logout --hostname github.com --user username ``` ### Setup Git Integration ```bash # Configure git to use gh as credential helper gh auth setup-git # View active token gh auth token # Refresh authentication scopes gh auth refresh --scopes write:org,read:public_key ``` ## CLI Structure ``` gh # Root command ├── auth # Authentication │ ├── login │ ├── logout │ ├── refresh │ ├── setup-git │ ├── status │ ├── switch │ └── token ├── browse # Open in browser ├── codespace # GitHub Codespaces │ ├── code │ ├── cp │ ├── create │ ├── delete │ ├── edit │ ├── jupyter │ ├── list │ ├── logs │ ├── ports │ ├── rebuild │ ├── ssh │ ├── stop │ └── view ├── gist # Gists │ ├── clone │ ├── create │ ├── delete │ ├── edit │ ├── list │ ├── rename │ └── view ├── issue # Issues │ ├── create │ ├── list │ ├── status │ ├── close │ ├── comment │ ├── delete │ ├── develop │ ├── edit │ ├── lock │ ├── pin │ ├── reopen │ ├── transfer │ ├── unlock │ └── view ├── org # Organizations │ └── list ├── pr # Pull Requests │ ├── create │ ├── list │ ├── status │ ├── checkout │ ├── checks │ ├── close │ ├── comment │ ├── diff │ ├── edit │ ├── lock │ ├── merge │ ├── ready │ ├── reopen │ ├── revert │ ├── review │ ├── unlock │ ├── update-branch │ └── view ├── project # Projects │ ├── close │ ├── copy │ ├── create │ ├── delete │ ├── edit │ ├── field-create │ ├── field-delete │ ├── field-list │ ├── item-add │ ├── item-archive │ ├── item-create │ ├── item-delete │ ├── item-edit │ ├── item-list │ ├── link │ ├── list │ ├── mark-template │ ├── unlink │ └── view ├── release # Releases │ ├── create │ ├── list │ ├── delete │ ├── delete-asset │ ├── download │ ├── edit │ ├── upload │ ├── verify │ ├── verify-asset │ └── view ├── repo # Repositories │ ├── create │ ├── list │ ├── archive │ ├── autolink │ ├── clone │ ├── delete │ ├── deploy-key │ ├── edit │ ├── fork │ ├── gitignore │ ├── license │ ├── rename │ ├── set-default │ ├── sync │ ├── unarchive │ └── view ├── cache # Actions caches │ ├── delete │ └── list ├── run # Workflow runs │ ├── cancel │ ├── delete │ ├── download │ ├── list │ ├── rerun │ ├── view │ └── watch ├── workflow # Workflows │ ├── disable │ ├── enable │ ├── list │ ├── run │ └── view ├── agent-t