review-github-pr
यह क्या करती है
यह स्किल AI को pull request या branch के diff का सार बनाने और ज़रूरी डिज़ाइन फ़ैसले बताने देती है। यह उन समीक्षकों के लिए है जो हर पंक्ति पढ़ने से पहले बदलाव समझना चाहते हैं।
कब इस्तेमाल करें
- ✓जब आप जानना चाहते हों कि कोई pull request क्या बदलता है, उसका साफ़ सार चाहिए।
- ✓जब आपको समीक्षा या merge से पहले branch के बदलाव समझने हों।
- ✓जब आप चाहते हों कि pull request के मुख्य डिज़ाइन फ़ैसले समझाए जाएँ।
Skill का लिंक
https://github.com/NVIDIA/OpenShell/blob/main/.agents/skills/review-github-pr/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“pull request 123 का सार बताइए और मुख्य डिज़ाइन फ़ैसले समझाइए।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
AI pull request का शीर्षक, विवरण और जुड़े issues पढ़ता है, फिर कोड के बदलाव पढ़ता है। फिर महत्वपूर्ण हिस्सों का सार लिखता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Review GitHub Pull Request
Summarize a GitHub pull request diff, highlighting key design decisions and notable code snippets.
Prerequisites
- The
ghCLI must be authenticated (gh auth status) - You must be in a git repository with a GitHub remote
Step 1: Resolve the PR
The user will provide either a PR number (e.g., #123 or 123) or a branch name. Determine which input was given and resolve it to a PR.
If a PR number is provided
Strip any leading # and use the numeric ID directly. Proceed to Step 2.
If a branch name is provided
Look up the open PR whose head branch matches:
gh pr list --head "<branch>" --state open
- If exactly one PR is found, extract its number and proceed to Step 2.
- If multiple PRs are found, list them and ask the user which one to review.
- If no PR is found, skip Step 2 (no PR description to fetch) and go directly to Step 3 using the local git diff fallback.
Step 2: Fetch PR Description
Retrieve the PR metadata:
gh pr view <number> --json title,body,state,headRefName,baseRefName,labels,author,closingIssuesReferences
Record the title, body, headRefName, and baseRefName for use in later steps.
Check Issue Acceptance
Inspect every closing issue reference (paginate as needed) and fetch its current repository and labels. Verify the PR author's permission in the target repository:
gh api repos/OWNER/REPO/collaborators/AUTHOR/permission --jq .permission
Call out each linked issue missing state:accepted, with an issue link. Verified
write, maintain, or admin access permits the exception; report it as context,
not a blocking concern. Other authors need at least one target-repository issue,
and every linked issue must be accepted; report violations under Potential
Concerns. PR body text such as No issue required does not bypass this gate.
Report failed lookups as unverified and continue the code review. For a branch
without a PR, note that issue acceptance was not verified.
Step 3: Generate the Diff
Primary: gh pr diff
Fetch the diff via the GitHub CLI:
gh pr diff <number>
If this succeeds, use this diff and proceed to Step 4.
Fallback: local git diff
If no PR exists (branch-only case) or the gh diff command fails, fall back to a local diff:
# Ensure both branches are available locally
git fetch origin <target-branch> <source-branch>
# Generate the diff
git diff origin/<target-branch>...origin/<source-branch>
If the user provided a branch name and no PR was found, diff against main:
git fetch origin main <branch>
git diff origin/main...origin/<branch>
Handling large diffs
If the diff output is very large (thousands of lines), use the Task tool to process it in chunks. Summarize each chunk independently, then merge the summaries. Do not skip or truncate parts of the diff — accuracy depends on reading all of it.
Step 4: Analyze and Summarize
Read through the full diff (and the PR description if available). Produce a summary with the following sections. Keep every section as concise as possible — brevity is a priority.
Summary format
## PR Review: <title>
**PR:** [#<number>](<url>) <- only if a PR exists
**Author:** <author>
**Branch:** `<source>` -> `<target>`
### Overview
<1-3 sentences describing what this PR does and why>
### Key Design Decisions
- <decision 1 with file:line reference>
- <decision 2 with file:line reference>
- ...
### Notable Code
<short fenced code snippets that illustrate the most important changes -- max 3 snippets>
### Potential Concerns <- omit if none
- **<concise user-visible behavior>** — Before this PR, <affected persona>
experienced <previous behavior>. With this PR, <new concerning behavior>, so
<user-visible impact>. Details: `<file>:<line>`.
Guidelines for the summary:
- Overview: State what changed and why. Pull context from the PR description if available.
- Key Design Decisions: Focus on why something was done a particular way, not what changed. Include
file_path:line_numberreferences. Examples: choice of algorithm, new abstraction introduced, API contract change, migration strategy. - Notable Code: Include only the most instructive or surprising snippets. Keep each snippet under 15 lines. Always include the file path above the code block.
- Potential Concerns: Only include genuine risks that warrant a change or a delibera
अक्सर पूछे जाने वाले सवाल
इसके इस्तेमाल के लिए मुझे क्या चाहिए?
gh कमांड लाइन टूल साइन-इन होना चाहिए, और आप GitHub repository से जुड़े फ़ोल्डर में होने चाहिए।
क्या मैं नंबर की जगह branch का नाम दे सकता हूँ?
हाँ। यह उस branch का खुला pull request ढूँढता है, और कई होने पर पूछता है कि कौन-सा लेना है।
क्या यह pull requests को approve या merge करता है?
नहीं। यह स्किल बदलावों को पढ़ने और सार बनाने के लिए है, approve या merge करने के लिए नहीं।
जानकारी
लेखक का मूल विवरण
Review a GitHub pull request by summarizing its diff and key design decisions. Use when the user wants to review a PR, understand changes in a branch, or get a code review summary. Trigger keywords - review PR, review pull request, summarize PR, summarize diff, code review, review branch, PR summary, diff summary.
repo: NVIDIA/OpenShell
लोकप्रियता
- GitHub स्टार
- 21k
- रैंकिंग में स्थान
- #10362
- लाइसेंस
- Apache-2.0
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
create-github-issue
21kआपके एजेंट को gh कमांड लाइन टूल और प्रोजेक्ट के टेम्पलेट से बग, फ़ीचर अनुरोध या कार्य के लिए GitHub issue बनाने में मदद करती है।
create-github-pr
21kआपके एजेंट को gh टूल से आपकी branch के लिए GitHub pull request खोलने देती है, समीक्षा के लिए काम तैयार है या नहीं, यह जाँचने के बाद।
watch-github-actions
21kआपके एजेंट को GitHub Actions runs की स्थिति जाँचने, किसी run के पूरा होने तक उसे देखने और फ़ेल हुए job के लॉग पढ़ने देती है।
openshell-policy-advisor
21kआपके एजेंट को sandbox के नेटवर्क अनुरोध रोकने पर संभलने में मदद करती है: एक सीमित अनुमति माँगकर मंज़ूरी के बाद फिर से कोशिश करती है।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।