PR Review Checklist
Generate PR review checklists into .pr/<pr_number>/ and keep unresolved items current across reruns.
Files
- Script:
scripts/generate_pr_review_checklists.py - Output:
.pr/<pr_number>/review_checklist.md.pr/<pr_number>/unresolved_checklist.md
Prerequisites
- Ensure
ghis installed and authenticated. - Run commands from this skill directory (the directory containing this
SKILL.md). - Set
PYTHONPATHto repo root. - If not authenticated, run
gh auth loginfirst.
Commands
Current branch PR (auto-detect PR number):
export PYTHONPATH=/path/to/browseruse_bench
python3 scripts/generate_pr_review_checklists.py
Specified PR:
export PYTHONPATH=/path/to/browseruse_bench
python3 scripts/generate_pr_review_checklists.py --pr-number 122 --repo lexmount/browseruse-agent-bench
Behavior
- Resolve target PR:
- Use
--pr-numberwhen provided. - Otherwise use current branch PR.
- Use
- Pull review threads and comments from GitHub.
- Render both Markdown files with:
- File + line location
- PR diff hunk snippet
- Current workspace code context near the commented line
- Raw thread chat log (full comment bodies + reply relation)
- Rebuild unresolved checklist on every run.
- Preserve manual checkbox states in
unresolved_checklist.mdfor thread IDs that are still unresolved. - After each successful refresh, explicitly ask the user:
Do you want me to generate/update .pr/<pr_number>/unresolved_solutions.md now?- If yes, run
pr-unresolved-solutionsworkflow immediately.
Notes
- Thread IDs are stable (
TH-<root_comment_id>), suitable for tracking work over time. - For outdated threads, the current code context can differ from PR-time code; rely on diff hunk + thread link together.