원클릭으로
gh-pr-code-review
Review a GitHub Pull Request using the gh CLI and provide a comprehensive report with prioritized suggestions.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Review a GitHub Pull Request using the gh CLI and provide a comprehensive report with prioritized suggestions.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Draft a structured commit message for all uncommitted changes, auto-detecting project type (React, Rails, or generic).
Create a comprehensive, well-structured README.md file for the project.
Generate a comprehensive .gitignore file at the project root covering common environments, frameworks, and operating systems.
Review uncommitted local code changes and provide a prioritized report with suggested fixes.
Generate comprehensive markdown documentation for a Rails controller, including actions, routes, request/response formats, and business logic.
Generate a formatted Slack standup update by summarizing entries from the last working day and today in a work log markdown file.
| name | gh-pr-code-review |
| description | Review a GitHub Pull Request using the gh CLI and provide a comprehensive report with prioritized suggestions. |
| disable-model-invocation | true |
Review a GitHub Pull Request using the gh CLI and provide a comprehensive report with suggestions.
YOU MUST follow these steps IN ORDER. DO NOT skip any step:
Use the gh CLI to gather PR information:
gh pr view <number> --json title,body,changedFiles,reviews,commentsgh pr view --json title,body,changedFiles,reviews,comments to get the current branch's PRDO NOT proceed without PR metadata.
Get the actual code changes using git:
gh pr view <number> --json baseRefName,headRefName to get the base and head branch namesgit fetch origin to ensure remote refs are up to dategit diff origin/<baseRefName>...origin/<headRefName> to get all code changesThis is your primary source of truth for the actual code changes.
Run gh pr checks <number> to get CI/CD status.
CRITICAL WARNINGS:
You MAY read relevant files in the workspace for additional context if needed.
Provide the review report directly in the chat (do NOT create files).
Review Focus Areas (in priority order):
Response Guidelines:
When suggesting code changes, use unified diff format:
Rules:
--- path/to/file and +++ path/to/file (no timestamps or prefixes)@@ line indicating line numbers- prefix+ prefix--- /dev/null to +++ path/to/new/fileExample:
--- src/example.js
+++ src/example.js
@@ -10,3 +10,3 @@
function calculate(x, y) {
- return x + y;
+ return x * y;
}
Structure your review report as follows:
PR: https://github.com//pull/
Brief description of what this PR does:
path/to/file1.jsPriority: 🔴 SHOULD FIX Lines: 15-20
Issue: [Describe the problem]
Current code:
// Quote the problematic code
Suggested fix:
--- path/to/file1.js
+++ path/to/file1.js
@@ -15,2 +15,2 @@
-// old code
+// new code
path/to/file2.rbPriority: 🟡 MEDIUM Lines: 8-10
Issue: [Describe the problem]
[Continue for each file...]
Priority: 🟠 HIGH
Multiple files need consistent error handling:
File: src/api.js
[diff here]
File: src/utils.js
[diff here]
Recommendation: [Safe to merge ✅ | Needs changes ⚠️ | Blocking issues ❌]
Summary: [Brief summary of overall assessment]
Use emoji color-coding for priorities: