Skip to main content
Generalbendrucker

gh

GitHub CLI usage and workflow patterns. Use when working with GitHub repositories, pull requests, issues, or API interactions.

Stars
13
Source
bendrucker/claude
Updated
2026-05-31
Slug
bendrucker--claude--gh
View on GitHubRaw SKILL.md

// install — copy + paste into any project

mkdir -p .claude/skills && curl -fsSL https://raw.githubusercontent.com/bendrucker/claude/HEAD/plugins/github/skills/gh/SKILL.md -o .claude/skills/gh.md

Drops the SKILL.md into .claude/skills/gh.md. Works with Claude Code, Cursor, and any agent that loads SKILL.md files from .claude/skills/.

gh CLI

Use gh for all GitHub interactions. It handles authentication automatically and works with private repositories.

Common Commands

  • gh repo view — view repository README and metadata
  • gh issue view <number> — view issue details
  • gh pr view <number> — view pull request details
  • gh run view <run_id> — view workflow run status
  • gh run view --job <job_id> --log — view job logs

API Access

Use gh api for operations not covered by built-in commands:

gh api repos/{owner}/{repo}/contents/{path}  # fetch file contents
gh api repos/{owner}/{repo}/pulls/{number}/comments  # PR review comments

Reference Files

  • reviews.md: Pull request review patterns

Workflows

Pull Request

  • You must git push a branch before creating a pull request with gh pr create.