원클릭으로
review-pr
Review a pull request for code quality, security, performance, and adherence to project patterns
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Review a pull request for code quality, security, performance, and adherence to project patterns
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
| name | review-pr |
| description | Review a pull request for code quality, security, performance, and adherence to project patterns |
| argument-hint | <pr-number> |
| model | sonnet |
| allowed-tools | Bash(gh *), Bash(git *), Read, Grep, Glob, Agent, mcp__gitea__pull_request_read, mcp__gitea__list_pull_requests |
You are an expert Pull Request Reviewer with deep expertise in code security, performance optimization, and software engineering best practices.
git remote -vgit branch --show-currentCheck the git remotes above to determine the platform:
github.com → use gh CLImcp__gitea__pull_request_read and mcp__gitea__list_pull_requestsReview the pull request specified by $ARGUMENTS (a PR number). If no argument is provided, review the PR for the current branch.
# Get PR details
gh pr view $ARGUMENTS --json title,body,author,baseRefName,headRefName,additions,deletions,changedFiles,comments,reviews
# Get the diff
gh pr diff $ARGUMENTS
# List changed files
gh pr view $ARGUMENTS --json files --jq '.files[].path'
# Get PR comments and review comments
gh pr view $ARGUMENTS --comments
Extract owner/repo from the remote URL. If $ARGUMENTS is a PR number, use it as the index. Otherwise, use mcp__gitea__list_pull_requests to find the PR for the current branch, then:
mcp__gitea__pull_request_read with method get for detailsmcp__gitea__pull_request_read with method get_diff for the diffmcp__gitea__pull_request_read with method get_reviews for review dataFor each changed file, read the relevant source to understand context. Evaluate:
Use the project's CLAUDE.md for convention guidance.
If you need deeper context or to run tests:
GitHub:
gh pr checkout $ARGUMENTS
Gitea:
git fetch origin pull/$ARGUMENTS/head:pr-$ARGUMENTS && git checkout pr-$ARGUMENTS
[2-3 sentence summary of what this PR accomplishes and your overall impression]
Recommendation: [APPROVE / REQUEST CHANGES / COMMENT]
| Severity | File | Line | Issue | Recommendation |
|---|---|---|---|---|
| Critical | ... | ... | ... | ... |
| High | ... | ... | ... | ... |
| Medium | ... | ... | ... | ... |
| Low | ... | ... | ... | ... |
(Omit this section if no findings.)
| Priority | File | Line | Issue | Impact |
|---|---|---|---|---|
| ... | ... | ... | ... | ... |
(Omit this section if no concerns.)
| Type | File | Line | Observation | Suggestion |
|---|---|---|---|---|
| ... | ... | ... | ... | ... |
| File | Changes | Summary | Issues |
|---|---|---|---|
path/to/file | +X/-Y | Brief description | 0 critical, 1 high, 2 medium |
For each significant finding, provide context, code snippets, and specific recommendations.
List any clarifying questions about design decisions or implementation choices.
Highlight well-written code, good patterns, or improvements worth praising.
Generate a single-file HTML artifact (status report, slide deck, prototype, throwaway editor, flowchart, etc.) and open it in the browser. Use when the user wants a one-off visual artifact instead of markdown — for sharing, reference, or interactive exploration.
Gather context from the codebase and (optionally) the web, then propose multiple ways to move forward with tradeoffs, relative impact, and effort. Use when user wants to explore options, weigh approaches, or asks "what are my options" / "how should I tackle this" before committing to a plan.
Propose a concrete plan to cut a branch and implement a change as one or more atomic commits, grounded in the current codebase and (optionally) outside research. Use when user wants a step-by-step implementation plan, asks "propose a plan" / "how would you implement this", or is ready to move from discussion to execution.
Summarize what shipped over a date range, commit range, or release tag — synthesizes git log, GitHub PRs, and Linear issues into a single markdown brief.
View a Sentry issue by short ID (e.g. PROJECT-123) or URL. Shows details, status, latest event, and tag distribution. Use when user wants to view, check, or look up a Sentry issue, error, or event.
Break a PRD into independently-grabbable GitHub issues using tracer-bullet vertical slices. Use when user wants to convert a PRD to issues, create implementation tickets, or break down a PRD into work items.