Automates installation and configuration of the GitHub CLI (gh) to ensure agents can manage PRs, issues, and releases.

Install

mkdir -p .claude/skills/gh-jamie-bitflight && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/18556" && unzip -o skill.zip -d .claude/skills/gh-jamie-bitflight && rm skill.zip

Installs to .claude/skills/gh-jamie-bitflight

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Install and configure the GitHub CLI (gh) for AI agent environments where gh may not be pre-installed and git remotes use local proxies instead of github.com. Use when gh command not found, shutil.which returns None, need GitHub API access for issues or PRs or releases or workflow runs, or repository operations fail with 'failed to determine base repo' error. Provides auto-install script with SHA256 verification, GITHUB_TOKEN auth with anonymous fallback, and the required -R flag pattern for proxy environments. Covers project management via GitHub Projects V2, milestones via REST API, issue lifecycle templates, and label taxonomy management.
649 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Beginner

Key capabilities

  • →Install the GitHub CLI (gh) with SHA256 verification
  • →Authenticate gh commands using a GITHUB_TOKEN environment variable
  • →Interact with GitHub API for issues, pull requests, releases, and workflow runs
  • →Manage GitHub Projects V2, milestones, and labels
  • →Handle proxy environments where git remotes do not point to github.com
  • →Automate multi-step GitHub operations via Python scripts

How it works

The skill installs the GitHub CLI, authenticates it using a GITHUB_TOKEN, and ensures commands are correctly formatted for proxy environments.

Inputs & outputs

You give it
A command requiring GitHub CLI functionality, e.g., 'gh pr create'
You get back
Successful execution of the GitHub CLI command, e.g., a created pull request

When to use gh

  • →Installing GitHub CLI
  • →Creating PRs via CLI
  • →Managing repository issues
  • →Interacting with workflow runs

About gh

Installs and configures the GitHub CLI in environments lacking it. It handles authentication, proxy issues, and repository-specific GitHub API operations.

Install and configure the GitHub CLI (gh) for AI agent environments where gh may not be pre-installed and git remotes use local proxies instead of github.com. Use when gh command not found, shutil.which returns None, need GitHub API access for issues or PRs or releases or workflow runs, or repositor

When not to use it

  • →When gh is already installed and configured correctly
  • →When direct interaction with github.com is not required
  • →When GitHub API access is not needed for issues, PRs, releases, or workflows

Limitations

  • →Requires explicit repository specification with -R in proxy environments
  • →Authentication relies on the GITHUB_TOKEN environment variable

How it compares

This skill automates the setup and configuration of the GitHub CLI, including handling proxy environments, which a manual installation would require separate steps for.

Compared to similar skills

gh side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
gh (this skill)04moReviewBeginner
resolve-conflicts8111moReviewIntermediate
openspec-onboard108moReviewBeginner
codex-cli-bridge912moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry