From github
Set up GitHub CLI (gh): install, authenticate, and verify. Use when user needs to install gh, fix gh authentication, or configure GitHub CLI from scratch.
npx claudepluginhub filipowm/claude-plugins --plugin githubThis skill uses the workspace's default tool permissions.
Automatically install, authenticate, and verify GitHub CLI (`gh`). Run all steps without asking questions — use sensible defaults throughout.
Retrieves texts, DMs, one-time codes, and inspects threads in ECC workflows. Provides evidence of exact sources checked for verification before replies.
Delivers expertise for HS tariff classification, customs documentation, duty optimization, restricted party screening, and trade compliance across jurisdictions.
Process documents with Nutrient API: convert formats (PDF, DOCX, XLSX, images), OCR scans (100+ languages), extract text/tables, redact PII, sign, fill forms.
Automatically install, authenticate, and verify GitHub CLI (gh). Run all steps without asking questions — use sensible defaults throughout.
Execute each step sequentially. Skip steps that are already satisfied.
gh is installedRun which gh or gh --version.
ghDetect the platform and install using the appropriate package manager:
| Platform | Command |
|---|---|
| macOS (Homebrew) | brew install gh |
| macOS (no Homebrew) | Install Homebrew first: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)", then brew install gh |
| Ubuntu/Debian | sudo apt install gh (if available) or install from GitHub's apt repo |
| Fedora/RHEL | sudo dnf install gh |
| Arch Linux | sudo pacman -S github-cli |
| Windows (winget) | winget install --id GitHub.cli |
| Windows (scoop) | scoop install gh |
For Linux distros where gh is not in default repos, use the official GitHub apt/yum repository:
# Debian/Ubuntu
(type -p wget >/dev/null || sudo apt-get install wget -y) \
&& sudo mkdir -p -m 755 /etc/apt/keyrings \
&& out=$(mktemp) && wget -nv -O$out https://cli.github.com/packages/githubcli-archive-keyring.gpg \
&& cat $out | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
&& sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/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 -y
After installation, verify with gh --version.
If installation fails, report the error and stop. Do NOT retry.
Run gh auth status.
gh auth login with defaults (GitHub.com, HTTPS protocol, browser-based auth). This will open a browser for the user to complete OAuth.IMPORTANT: After gh auth login, the user must complete the browser-based authentication flow. Wait for the command to finish before proceeding.
Run these verification commands:
gh auth status — confirm authenticatedgh api user --jq .login — confirm API access works, print usernamePrint a summary:
GitHub CLI setup complete:
- gh version: <version>
- Authenticated as: <username>
- Protocol: HTTPS
If any verification step fails, report the specific error and suggest the fix (e.g., "Run gh auth login to re-authenticate").