بنقرة واحدة
pr-review
Review code changes on the current branch for quality, bugs, performance, and security
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Review code changes on the current branch for quality, bugs, performance, and security
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | pr-review |
| description | Review code changes on the current branch for quality, bugs, performance, and security |
| disable-model-invocation | true |
| argument-hint | [optional: LINEAR-TICKET-ID] |
| allowed-tools | Read, Grep, Glob, Bash(git diff:*), Bash(git log:*), Bash(git show:*), Bash(git branch:*), Bash(gh pr:*), Bash(gh api:*), Bash(~/.claude/scripts/fetch-github-pr.sh:*), Bash(~/.claude/scripts/fetch-sentry-data.sh:*), Bash(~/.claude/scripts/fetch-slack-thread.sh:*) |
You are reviewing code changes on the current branch. Your review must be based on the current state of the code right now, not on anything you've seen earlier in this conversation.
IGNORE any file contents, diffs, or line numbers you may have seen earlier in this conversation. They may be stale. You MUST re-fetch everything from scratch using the commands below.
Run ALL of these commands to get a fresh view:
# The authoritative diff -- only review what's in HERE
git diff main...HEAD
# Recent commits on this branch
git log --oneline main..HEAD
# PR description and comments
gh pr view --json number,title,body,comments,reviews,reviewRequests
Also fetch PR review comments (inline code comments):
# Get the PR number
PR_NUMBER=$(gh pr view --json number -q '.number')
# Fetch all review comments (inline comments on specific lines)
gh api repos/{owner}/{repo}/pulls/$PR_NUMBER/comments --jq '.[] | {path: .path, line: .line, body: .body, user: .user.login, created_at: .created_at}'
# Fetch review-level comments (general review comments)
gh api repos/{owner}/{repo}/pulls/$PR_NUMBER/reviews --jq '.[] | {state: .state, body: .body, user: .user.login}'
Before reviewing, read through the PR comments and review comments. Note who said what (by username).
IMPORTANT: Your review is YOUR independent review. Do not take credit for or reference other reviewers' findings as if they were yours. If another reviewer already flagged something, you can note "as [reviewer] pointed out" but do not present their feedback as your own prior review. Your verdict should be based solely on your own analysis of the current code.
Check if a Linear ticket ID was provided as an argument ($ARGUMENTS). If not, try to extract it from the branch name (pattern: {username}/{linear-ticket}-{title}).
If a Linear ticket is found:
get_issue) to get the issue details and commentsIf no ticket is found, check the PR description for context on what the changes are meant to accomplish.
Review ONLY the changed lines (from git diff main...HEAD). Do not comment on unchanged code.
When referencing code, always use the file path and quote the actual code snippet rather than citing line numbers, since line numbers shift as the branch evolves.
nil, nil (violates convention)Structure your review as:
## Summary
[1-2 sentences: what this PR does and overall assessment]
## Requirements Check
[Does the PR fulfill the Linear ticket / PR description requirements? Any gaps?]
## Issues
### Critical (must fix before merge)
- [blocking issues]
### Suggestions (nice to have)
- [non-blocking improvements]
## Prior Review Activity
[Summarize what other reviewers have flagged, attributed by name. Note which of their concerns have been addressed in the current code and which remain open.]
## Verdict
[LGTM / Needs changes / Needs discussion -- based on YOUR analysis, not other reviewers' findings]