Expert guidance for GitHub CLI (gh) - issues, PRs, repos, releases, and GitHub API. Use when working with GitHub, managing issues/PRs, or when user mentions GitHub, PRs, issues, or repos. Preferred over GitHub MCP server for context efficiency.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# GitHub CLI Skill
## Quick Start
### Authentication
```bash
# Interactive authentication (recommended)
gh auth login
# Check authentication status
gh auth status
# Login with token
gh auth login --with-token < token.txt
# Login to enterprise
gh auth login --hostname github.example.com
```
### Configuration
```bash
# Set default editor
gh config set editor "code --wait"
# Set default browser
gh config set browser "firefox"
# Set default git protocol
gh config set git_protocol ssh
# View all settings
gh config list
```
## Essential Commands (Most Common First)
### 1. Issues
```bash
# Create issue
gh issue create --title "Bug: something broken" --body "Description here"
# Create with labels
gh issue create --title "Feature request" --label "enhancement,priority:high"
# List issues
gh issue list # Open issues
gh issue list --state all # All issues
gh issue list --assignee @me # Assigned to me
gh issue list --label "bug" # By label
# View issue
gh issue view 123 # By number
gh issue view 123 --comments # With comments
# Edit issue
gh issue edit 123 --title "New title"
gh issue edit 123 --add-label "in-progress"
…
The line at the top of this page pins the label git:20260504.b7ad1ff, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
GET https://markdownregistry.com/api/v1/artifacts/art_42meblfhpmmkebji
GET https://markdownregistry.com/api/v1/resolve?ref=rysweet/amplihack-rs/github
GET https://markdownregistry.com/api/v1/blob/2d7fc654fdf190cce87c47f9760ee0961c7ff92590cb21bd1b196e5f1998a0d4
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
rysweet/amplihack-rs · amplifier-bundle/skills/agent-generator-tutor/SKILL.md · Interactive teaching agent for the goal-seeking agent generator and eval system.
Provides a structured 14-lesson…
rysweet/amplihack-rs · amplifier-bundle/skills/agentic-workflow-first/SKILL.md · Start new work as a deterministic workflow of agentic steps, prompts, and tools instead of code. Use when designing a…
rysweet/amplihack-rs · amplifier-bundle/skills/anthropologist-analyst/SKILL.md · Analyzes events through anthropological lens using cultural analysis, ethnographic methods, kinship and social…
rysweet/amplihack-rs · amplifier-bundle/skills/aspire/SKILL.md · Aspire orchestration for cloud-native distributed applications in any language (C#, Python, Node.js, Go). Handles…
rysweet/amplihack-rs · amplifier-bundle/skills/authenticated-web-scraper/SKILL.md · Scrape authenticated websites from WSL2 using Edge CDP. Launches headed Edge for user auth, then headless scraping via…
rysweet/amplihack-rs · amplifier-bundle/skills/auto-drive-to-merge/SKILL.md · Wraps default-workflow and drives the resulting PR all the way to merge:
build the PR, loop with the…
volcengine/openviking · bot/workspace/skills/github/SKILL.md · Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and…
phyagentos/phyagentos-core · PhyAgentOS/skills/github/SKILL.md · Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and…
bitterbot-ai/bitterbot-desktop · skills/github/SKILL.md · Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and…
dicklesworthstone/pi_agent_rust · tests/ext_conformance/artifacts/npm/mitsupi/skills/github/SKILL.md · Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and…
trpc-group/trpc-agent-go · openclaw/skills/github/SKILL.md · GitHub operations via `gh` CLI: issues, PRs, CI runs, code review, API queries. Use when: (1) checking PR status or CI…
team-commonly/commonly · backend/commonly-bundled-skills/github/SKILL.md · Interact with GitHub (issues, PRs, repos, releases) using the `gh` CLI. Use when asked to read or write GitHub state —…
kostja94/marketing-skills · skills/platforms/github/SKILL.md · When the user wants to use GitHub for SEO, parasite SEO, GEO, open source marketing, README optimization, or curated…