aaddrick/gh-cli-search/gh-cli-setup
- community
Checking that the SKILL.md file is still in the repository.
Use when gh CLI is not installed, not configured, or authentication fails - provides installation steps, authentication methods, and troubleshooting for all platforms
Install
npx vskill@latest install aaddrick/gh-cli-search/gh-cli-setupSKILL.md
GitHub CLI Setup & Troubleshooting
Overview
This skill helps diagnose and fix GitHub CLI (gh) installation, configuration, and authentication issues.
IMPORTANT: When providing installation instructions, always:
- Explain the recommended method (e.g., "Homebrew is the recommended way to install on macOS")
- Provide the actual command
- Mention alternative installation methods
- Add context about what the command does
- Do NOT just return a bare command without explanation
When to Use
Use this skill when:
ghcommand not found- Authentication errors occur
- gh CLI behaves unexpectedly
- Need to check gh CLI configuration
- Setting up gh CLI for first time
Quick Diagnostic
Run these commands to check status:
Installation
macOS
Using Homebrew (recommended):
Using MacPorts:
Using Conda:
Linux
Debian/Ubuntu/Raspbian:
Fedora/CentOS/RHEL:
Arch Linux:
Using Snap:
Using Conda:
Windows
Using WinGet:
Using Scoop:
Using Chocolatey:
Using Conda:
Manual Download:
- Download MSI installer from: https://cli.github.com/
Authentication
Interactive Authentication (Recommended)
This will prompt you to:
- Choose GitHub.com or GitHub Enterprise Server
- Choose authentication method (Web browser or Token)
- Complete authentication flow
Token Authentication
Check Authentication
Common Errors & Solutions
Error: "gh: command not found"
Cause: gh CLI not installed or not in PATH
Solution:
Error: "authentication required"
Cause: Not logged in to GitHub
Solution:
Error: "HTTP 403: Resource not accessible by integration"
Cause: Insufficient token permissions
Solution:
Error: "HTTP 401: Bad credentials"
Cause: Token expired or invalid
Solution:
Error: "API rate limit exceeded"
Cause: Too many API requests (60/hour unauthenticated, 5000/hour authenticated)
Solution:
Error: "Could not resolve host: github.com"
Cause: Network connectivity issue
Solution:
Configuration
View Configuration
Common Settings
Config File Locations
- Linux/macOS:
~/.config/gh/config.yml - Windows:
%AppData%\GitHub CLI\config.yml
Multiple Accounts
Debugging
Enable Debug Mode
View Request/Response
Check Version
Troubleshooting Checklist
When gh CLI isn't working, check these in order:
- [ ] Is gh installed? (
which gh) - [ ] Is gh in PATH? (
echo $PATH| grep gh) - [ ] Is gh authenticated? (
gh auth status) - [ ] Does token have required scopes?
- [ ] Is network connectivity working? (
ping github.com) - [ ] Is rate limit exceeded? (
gh api rate_limit) - [ ] Is gh version up to date? (
gh --version) - [ ] Are config settings correct? (
gh config list)
Getting Help
Permissions Required for Search
Different search types require different permissions:
- Public repos/issues/PRs: No authentication required (but rate limited)
- Private repos: Requires
reposcope - Organization repos: Requires
read:orgscope - Workflow files: Requires
workflowscope
Token Scopes
Create tokens at: https://github.com/settings/tokens
Minimal scopes for search:
public_repo- Search public repositoriesrepo- Search private repositoriesread:org- Search organization repositories
Recommended scopes:
repo- Full repository accessread:org- Organization accessworkflow- Workflow accessgist- Gist access
Uninstallation
macOS
Linux
Windows
Related
- Official documentation: https://cli.github.com/manual/
- Installation guide: https://github.com/cli/cli#installation
- Authentication guide: https://cli.github.com/manual/gh_auth_login
- For using gh search:
gh-search-code,gh-search-commits,gh-search-issues,gh-search-prs,gh-search-repos
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNeutral, 73 of 100Ineffective. 1 run. Evaluated 7 months ago.
Source
- SKILL.md in the repositoryCheckingskills/gh-cli-setup/SKILL.md
Popularity
- Repository stars
- 3
- 7-day trend score
- 7
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 23 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aaddrick/gh-cli-search/gh-cli-setup)