# Setup GH CLI

> Setup GH CLI is an Agent Skill for apps & automation published in the PacificStudio/openase repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Install or repair the GitHub CLI and confirm authentication status on the target machine.

- Skill name: `setup-gh-cli`
- Category: [Apps & Automation](https://www.openparable.com/skill/apps-automation/1)
- Source: https://github.com/PacificStudio/openase/blob/HEAD/internal/builtin/skills/setup-gh-cli/SKILL.md
- Repository: PacificStudio/openase (261 GitHub stars when collected)

## SKILL.md

# Setup GitHub CLI

Goal: make the target machine provide a working `gh` command and confirm GitHub authentication status.

Follow this process:

- Check the current output of `gh --version` and `gh auth status`.
- If `gh` is missing, install it using an officially supported method.
- If `gh` is installed but unauthenticated, complete auth and verify again.
- If authentication fails, record the exact reason, such as network issues, a missing token, or an unreachable host.

Do not write plaintext tokens into shell history or repository files.

---

Source: https://www.openparable.com/skill/apps-automation/setup-gh-cli (OpenParable). Cite the canonical URL above.
