Review pull requests and leave line comments using the GitHub CLI (gh). Use for PR comparisons vs base branch, plan/spec alignment checks, summarizing findings, and writing review notes to files like tmp/reviews.md. Applies when asked to review a branch/PR or add PR comments.
설치
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
Review pull requests and leave line comments using the GitHub CLI (gh). Use for PR comparisons vs base branch, plan/spec alignment checks, summarizing findings, and writing review notes to files like tmp/reviews.md. Applies when asked to review a branch/PR or add PR comments.
PR Review + Commenting
Workflow
Gather context
Identify PR number or current branch; use gh pr view --json number,title,url,baseRefName,headRefName.
For stacked PRs or unknown base, infer it via gh pr view --json baseRefName on the target PR or by checking the branch's upstream/fork-point.
Get base comparison: git diff --name-only <base>...HEAD and git diff <base>...HEAD.
Read plan/spec files mentioned by the user before judging alignment.
Check repo guidance (AGENTS.md, CLAUDE.md, rules/*) for conventions.
Analyze changes
Review all changed files, not just the latest commit.
Verify correctness, best practices for the project's frameworks/tooling, tests, and plan/spec requirements.
Verify clean architecture, good abstractions and adherence to project conventions
Note gaps: missing features, mismatches with plan/ticket/requirments, unused deps, unhandled edge cases, missing tests, or naming/structure issues.
Draft review summary
Write a concise summary (what changed, what aligns, what is missing).
Call out required fixes separately from optional improvements.
If asked, write summary to tmp/reviews.md with sections:
Summary
Plan Alignment
Changes Needed
Tests
Leave PR line comments (if requested). The user may want to review these before you post them, so don't publish those yet, keep them as part of a pending review
Use gh api to create a pending review with line comments (omit event to keep it pending):