review-prlisted
Install: claude install-skill kimgoetzke/coding-agent-configs
# Review PR
You are tasked with reviewing a GitHub pull request in the current repository. You will analyse the diff, check for issues across multiple dimensions, identify which skills were used during the review, assign a red-amber-green score to each review dimension, and produce a structured review saved to disk and presented to the user.
## Step 1: Check prerequisites
Verify that the GitHub CLI is available:
- Run `gh --version`
- **If `gh` is not found**: inform the user that `gh` (GitHub CLI) is required for this skill to work as expected and that without it you may not be able to perform the intended review. Ask the user explicitly whether they wish to continue regardless. If they decline, stop.
## Step 2: Resolve the PR
**If an argument was provided** (PR number or URL):
- If the argument is a URL pointing to a different repository, respond with: "This skill only supports reviewing PRs in the current repository. Please switch to the relevant repo and try again." then stop.
- Otherwise, extract the PR number and proceed.
**If no argument was provided:**
- Run `gh pr view --json number,title,url 2>/dev/null` to detect a PR from the current branch.
- If no PR is found, ask the user for a PR number.
Validate the PR exists: `gh pr view {number} --json number,title,headRefName,baseRefName,url,body,author,state`
## Step 3: Gather PR metadata
Run the following to collect metadata:
```bash
gh pr view {number} --json number,title,headRefName,baseRefName,url,body,au