一键导入
github
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.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
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.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run azure-cosmos integration/customer-workflow tests locally, closely following the CI pipeline (build+install, then failsafe `verify` with a test profile) using one consistent JDK for both steps. USE WHEN: asked to run cosmos integration tests, customer-workflow tests (fi-customer-workflows / fi-sm-customer-workflows), reproduce a CI test failure locally, or run a specific cosmos test profile via Maven. Covers the same-JDK build/test requirement, the two-step build/test split, profile→group→file mapping, and the required account env vars. NOT FOR: unit tests only, Spark/Kafka connector tests, or non-cosmos modules.
Interactive wizard that walks service teams through creating a package-specific skill for their Azure SDK package. Scans the package, detects customization patterns, scaffolds a SKILL.md with references, and validates with vally lint. The skill is placed inside the package's .github/skills/ directory so find-package-skill discovers it automatically. WHEN: create package skill; add service skill; bootstrap skill for package; new package skill; skill for my SDK package; write skill for search; write skill for cosmos.
**UTILITY SKILL** — Must be consulted before making any changes to packages under sdk/. Discovers and loads package-specific domain knowledge that prevents common mistakes. WHEN: add feature to package; fix bug in package; modify package code; regenerate from typespec; change client library.
Domain knowledge for Azure AI Content Understanding. Use this skill to answer questions about Content Understanding concepts, analyzers, field schemas, API operations, and Java SDK usage. Always consult official documentation before answering.
Run a specific sample for the Azure AI Content Understanding Java SDK. Use when users want to run a particular sample like Sample02_AnalyzeUrl or Sample03_AnalyzeInvoice.
Guide SDK users through setting up their Java environment for Azure AI Content Understanding. Use this skill when users need help installing the SDK, configuring Azure resources, deploying required models, setting environment variables, or running samples.
| name | github |
| description | 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. |
Use the gh CLI to interact with GitHub. Always pass --repo owner/repo when not inside a cloned git directory.
List open PRs:
gh pr list --repo owner/repo
View a specific PR (summary, checks, comments):
gh pr view 55 --repo owner/repo
Check CI status on a PR:
gh pr checks 55 --repo owner/repo
List recent runs:
gh run list --repo owner/repo --limit 10
View a run summary (steps, status):
gh run view <run-id> --repo owner/repo
View logs for failed steps only:
gh run view <run-id> --repo owner/repo --log-failed
Re-run failed jobs:
gh run rerun <run-id> --repo owner/repo --failed
List open issues (optionally filter by label):
gh issue list --repo owner/repo
gh issue list --repo owner/repo --label bug
View a specific issue:
gh issue view 42 --repo owner/repo
Create an issue:
gh issue create --repo owner/repo --title "Title" --body "Description" --label bug
Most commands support --json with --jq for structured output:
# List PR numbers and titles
gh pr list --repo owner/repo --json number,title --jq '.[] | "\(.number): \(.title)"'
# List issues with assignees
gh issue list --repo owner/repo --json number,title,assignees \
--jq '.[] | "\(.number): \(.title) → \(.assignees[].login // "unassigned")"'
gh apiUse gh api for data or actions not covered by other subcommands.
Fetch a PR with specific fields:
gh api repos/owner/repo/pulls/55 --jq '.title, .state, .user.login'
List check runs for a commit:
gh api repos/owner/repo/commits/<sha>/check-runs \
--jq '.check_runs[] | "\(.name): \(.conclusion)"'
Paginate results (e.g., all issues):
gh api --paginate repos/owner/repo/issues --jq '.[].title'
gh is installed by running gh --version.
gh is authenticated by running gh auth status.
gh auth login.owner/repo is not provided, check if there is a .git directory and infer the remote via gh repo view --json nameWithOwner. Otherwise ask the user for the repo.pr, issue, run, api) based on the user's request.gh pr, gh issue, gh run) over raw gh api when they cover the use case.--json + --jq when the user needs specific fields or wants to pipe output into further processing.gh pr checks for a quick overview, then gh run view --log-failed for detailed output.If gh is missing, install it using the recommended method for the current OS.
Detect the OS first, then run the matching command.
winget install --id GitHub.cli
Note: open a new terminal window after installation for PATH changes to take effect.
brew install gh
(type -p wget >/dev/null || (sudo apt update && sudo apt install wget -y)) \
&& sudo mkdir -p -m 755 /etc/apt/keyrings \
&& out=$(mktemp) && wget -nv -O$out https://cli.github.com/packages/githubcli-archive-keyring.gpg \
&& cat $out | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
&& sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
&& sudo mkdir -p -m 755 /etc/apt/sources.list.d \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& sudo apt update \
&& sudo apt install gh -y
sudo dnf install 'dnf-command(config-manager)'
sudo dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo
sudo dnf install gh --repo gh-cli
After installation, verify with gh --version, then authenticate with gh auth login if needed.
gh must be authenticated (gh auth status). If not, run gh auth login first.--repo accepts both owner/repo shorthand and full HTTPS URLs.gh api, use --method POST/PATCH/DELETE for write operations and pass body fields with -f field=value or -F field=<int>.gh run list defaults to the current branch when run inside a git repo; pass --branch <name> to target a specific branch.