Use GitHub CLI (gh) to interact with GitHub repositories, pull requests, issues, and workflows. Use when: (1) Reading PR details, diffs, or metadata, (2) Listing or filtering PRs and issues, (3) Creating PR comments or linking to issues, (4) Checking CI status or mergeability, (5) Extracting issue references from PR descriptions, or (6) Any GitHub repository operation via command line. Requires GitHub CLI installed and authenticated.
Use GitHub CLI (gh) to interact with GitHub repositories, pull requests, issues, and workflows.
brew install gh (macOS) or see cli.github.comgh auth login (one-time setup)--repo owner/repoGet PR details:
gh pr view <pr-number> --json title,body,author,state
Get PR diff:
gh pr diff <pr-number>
Extract Linear issue references:
gh pr view <pr-number> --json body --jq '.body' | grep -oE 'LIN-[0-9]+'
Get PR title, description, and metadata:
gh pr view <pr-number> --json title,body,author,state,baseRefName,headRefName
Get changed files:
gh pr view <pr-number> --json files --jq '.files[].path'
Get diff for specific file:
gh pr diff <pr-number> -- path/to/file
Check CI status:
gh pr checks <pr-number>
Check if PR is mergeable:
gh pr view <pr-number> --json mergeable,mergeStateStatus
Extract issue references from PR body:
gh pr view <pr-number> --json body --jq '.body' | grep -oE 'LIN-[0-9]+'
When reviewing PRs, extract Linear issue references from:
LIN-123 or [LIN-123] patternsThen use Linear MCP functions to fetch issue details and requirements.
npx skills add lambda-curry/GitHub CLI Operations下载完整 Skill 目录,包含 SKILL.md 及所有相关文件
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer