What problem does it solve? When automating CI checks, code reviews, or changelog updates, you often need to know which pull request corresponds to the current Git branch. Manually looking up PR numbers, handling forks, and dealing with edge cases like detached HEAD states or multiple PRs per branch is error-prone and repetitive. ## Core Features & Use Cases - PR Lookup by Branch: Queries the GitHub CLI (gh pr list) to find the PR number, state, title, and URL associated with any branch. - Fork-Aware Resolution: Integrates with the get-upstream-info skill to query the upstream repository using fork-qualified branch names (e.g., owner:branch), so PRs are found where they actually exist. - Edge-Case Handling: Detects detached HEAD states, warns on protected branches (main, master, devel, stable-*), prefers OPEN PRs when multiple exist, and validates gh CLI availability and authentication. - Use Case: A SonarCloud remediation workflow needs PR-specific issues. Invoke this skill to get PR_NUMBER and PR_URL for the current branch, then fetch only the issues tied to that pull request. ## Quick Start Ask the assistant to find the pull request number and status for the current Git branch using the gh CLI.