GitHub CLI helper skill for common gh operations. Requires gh CLI installed and authenticated.
Note: For creating/updating PR descriptions, use /mr-description-creator instead.
Actions
PR Operations
View PR status:
code
/github-cli pr status
View PR checks:
code
/github-cli pr checks
Merge PR:
code
/github-cli pr merge
View PR in browser:
code
/github-cli pr view --web
List PRs:
code
/github-cli pr list
Issue Operations
List issues:
code
/github-cli issue list
Create issue:
code
/github-cli issue create
View issue:
code
/github-cli issue view <number>
Repository Operations
View repo:
code
/github-cli repo view
Instructions
Step 1: Validate Environment
bash
# Check gh is installed gh --version # Check gh is authenticated gh auth status
If not installed, report: "Install gh CLI: https://cli.github.com" If not authenticated, report: "Run: gh auth login"
Step 2: Execute
Run the command directly:
bash
gh $ARGUMENTS
Step 3: Report Result
Show gh output directly to user.
Examples
bash
# View PR status
/github-cli pr status
# View PR checks (CI status)
/github-cli pr checks
# Merge current PR
/github-cli pr merge
# List open PRs
/github-cli pr list
# View PR in browser
/github-cli pr view --web
# List issues
/github-cli issue list
# Create issue interactively
/github-cli issue create
# View repo info
/github-cli repo view
# API calls
/github-cli api repos/{owner}/{repo}/pulls
# Any gh command works
/github-cli release list
/github-cli workflow list
Error Handling
| Scenario | Action |
|---|---|
| gh not installed | "Install gh: https://cli.github.com" |
| Not authenticated | "Run: gh auth login" |
| gh command fails | Show gh error output |