| name | setup |
|---|---|
| description | This skill should be used when the user asks "how to setup GitHub CLI", "configure gh", "gh auth not working", "GitHub CLI connection failed", "gh CLI error", or needs help with GitHub authentication. |
Configure gh CLI for GitHub access.
gh auth statusReport one of these states:
ghis not authenticated and needs loginghis authenticated, including the current username if available
If authentication is missing or broken, guide the user through:
gh auth loginSelect: GitHub.com -> HTTPS -> Login with browser
gh auth status
gh api user --jq '.login'If gh commands fail:
- Check authentication -
gh auth status - Re-login if needed -
gh auth login - Check scopes - Ensure the token has repo access
- Refresh auth -
gh auth refresh - Update gh -
brew upgrade ghor equivalent