github-pr-reviewlisted
Install: claude install-skill IamBiswajitSahoo/ClaudeSkills
# GitHub PR Review
Review a PR, draft findings by severity, post as a batched pending review after per-comment approval.
## Phase 1 — Validate & gather
Parse `$ARGUMENTS` for the PR number and optional `-parallel` flag. If missing/invalid, ask via `AskUserQuestion`: *"Which PR number would you like me to review?"*
```bash
bash "${CLAUDE_SKILL_DIR}/scripts/gather-pr-context.sh" $ARGUMENTS
```
Returns `{repo, pr_number, metadata, commit_sha, diff, project_rules, eligibility, primary_language, parallel_requested}`. On `error`, stop.
**Eligibility checks** via `AskUserQuestion` (options: **Yes** / **Skip**):
- `eligibility.is_draft`: "This PR is a draft. Review anyway?"
- `eligibility.state != OPEN`: "This PR is [closed/merged]. Review anyway?"
- `eligibility.already_reviewed`: "You've already reviewed this PR. Review again?"
If `eligibility.branch_matches` is false, warn: "You're on branch `{current_branch}` but the PR is on `{head_ref}`. Git blame results for pre-existing issue detection may be inaccurate."
**Select mode:**
- `-parallel` flag → parallel
- `diff.lines > 3000` → ask: **Parallel** (faster, more tokens) / **Single** (slower, fewer tokens)
- Otherwise → single
## Phase 2 — Analyze
Load `${CLAUDE_SKILL_DIR}/templates/review-categories.md` for the 5 categories and severity rules. If `project_rules.claude_md` or `project_rules.review_md` is present, incorporate them as additional criteria — project rules take precedence on conflict.
### Single mode
Read the