understand-pr
यह क्या करती है
यह स्किल मर्ज होने से पहले पुल रिक्वेस्ट के गहरे रिव्यू का मार्गदर्शन देती है। यह उन डेवलपर्स और मेंटेनर के लिए है जो कोड बदलाव रिव्यू करते हैं।
कब इस्तेमाल करें
- ✓जब आप पुल रिक्वेस्ट का रिव्यू चाहें जो जांचे कि बदलाव कोडबेस में होना चाहिए या नहीं।
- ✓जब आपको दूसरों से देखने को कहने से पहले अपनी पुल रिक्वेस्ट खुद रिव्यू करनी हो।
- ✓जब नए कमिट जुड़ने के बाद दोबारा रिव्यू चाहिए।
Skill का लिंक
https://github.com/mastra-ai/mastra/blob/main/.mastracode/skills/understand-pr/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“इस पुल रिक्वेस्ट का रिव्यू कीजिए और बताइए कि बदलाव सही है या नहीं, मुख्य जोखिमों के साथ।”
हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।
यह कैसे काम करती है
एजेंट पहले लक्ष्य और एक सरल डिज़ाइन समझता है, फिर पुल रिक्वेस्ट की उससे तुलना करता है, कोड में मुख्य दावों की पुष्टि करता है, और एक संक्षिप्त सारांश लिखता है।
तकनीकी सामग्री (मूल SKILL.md)
लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।
Understand PR
Review the PR as a maintainer deciding whether the change belongs in the codebase. Help the human understand it without turning the review into a walkthrough. Run uninterrupted to a concise front page. For draft PRs authored by the user or a confirmed user-owned bot, follow gh-review's autonomous posting exception and finish the review without an approval checkpoint; otherwise stay available inside the goal until the human says the review is finished.
The PR follows ARGUMENTS: at the end of the objective. If absent, infer it from the conversation or checked-out branch.
What matters
- Your design before theirs. Establish the required outcome and real constraints from the problem and base branch, then choose the simplest design that satisfies them—not a restatement of the author's proposal. Compare the PR against that reasoning. Agreement is valid when independently justified; disagreement needs evidence, not merely a different preference.
- Depth proportional to risk. Blast radius, irreversibility, uncertainty, and public-contract impact determine how hard to look—not a fixed checklist.
- Verify material claims. Read code deeply and run the smallest useful probes. Findings need real evidence and pointers; process compliance is not evidence.
- Judgment over coverage theater. Find the core decision, root cause, and meaningful risks. Do not manufacture findings or run work merely to look thorough.
- Complete, not padded. Every request you have evidence for is in the review; length follows from findings, never the other way around. Lead with what matters most and cut narration, not requests. Preserve supporting detail in one review file for follow-up questions.
Review record
Use one ignored file: .mastracode/scratch/reviews/<owner>-<repo>-<pr>.md. Never stage or commit it.
Before reading the diff, write a short Pre-diff model containing:
- the required outcome and constraints, separate from the proposed solution;
- how the base branch currently works;
- the cause or design pressure;
- the simplest design that meets those requirements, why it is sufficient, and what you would deliberately not add (flags, config, documented limitations);
- the behavior a valuable test would exercise;
- what evidence would make you comfortable approving.
Once you inspect the PR, leave that section unchanged. Append the review beneath it. Capture decisive evidence as you work so it survives context compression, but keep a ledger—not command transcripts. Use references/templates.md as an example, not a schema.
1. Build the independent model
Resolve the PR and base branch using the minimal metadata recipe in references/archaeology.md. Until the pre-diff model is written, use only:
- the problem statement from the PR title and description—treat any solution it names as the author's choice, not part of the problem;
- linked issue context about the problem;
- base-branch code and repository guidance.
Do not inspect the changed-file list, diff, PR branch, commits, review conversation, or CI details yet. Do not run git log before writing the pre-diff model—the current checkout may already be the PR branch, which would expose its commit history. Do not consult mastra_expert or another source that may know the PR. Orient on the base branch: locate the entry point, trace the current mechanism, find the closest sibling, and read the nearest repository instructions. Stop when you can explain the mechanism and commit to a design; do not perform archaeology for its own sake.
Write the pre-diff model. Before opening the diff, consider every entry in references/categories/README.md and load the pages relevant to the problem. These references contain broadly useful review knowledge, not just rules for one PR label. If a page could plausibly help, err on the side of reading it. Use their reading order, review focus, characteristic traps, and approval criteria to guide the investigation. Do not skip relevant pages because the main skill seems sufficient. Reading the relevant guidance is required; select checks according to the actual change and its risks rather than executing every listed recipe mechanically. Then open the PR fully.
2. Understand what actually changed
Read the changed-file overview and reassess the categories against the actual change. Load additional relevant pages before reviewing those portions in depth; do the same whenever later inspection reveals anot
अक्सर पूछे जाने वाले सवाल
क्या यह रिव्यू GitHub पर पोस्ट करती है?
स्किल का ध्यान ब्रीफ़िंग पर है। पोस्ट करना एक अलग रिव्यू गाइड का काम है, और उसके लिए आपकी मंज़ूरी चाहिए।
क्या यह कोड चलाती है?
जब बदलाव के किसी दावे की पुष्टि में मदद मिले, तब यह छोटी जांच चला सकती है।
क्या यह केवल बड़े बदलावों के लिए है?
नहीं। रिव्यू की गहराई बदलाव के जोखिम के अनुसार तय होती है।
जानकारी
लेखक का मूल विवरण
Review a PR the way a seasoned maintainer would — build an independent model before seeing the diff, investigate the implementation and history, verify material claims, and return a concise briefing. Use for any PR review, self-review, or re-review.
repo: mastra-ai/mastra
लोकप्रियता
- GitHub स्टार
- 29k
- रैंकिंग में स्थान
- #9371
- लाइसेंस
- —
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
debugging-difficult-bugs
29kयह आपके एजेंट को कठिन बग ढूंढने में मदद करती है, असली प्रोग्राम के रनटाइम लॉग से, केवल टेस्ट देखकर अंदाज़ा लगाने की जगह।
mastra-frontend
29kयह आपके एजेंट को Mastra playground डिज़ाइन सिस्टम के तैयार कॉम्पोनेंट जोड़कर ऐप स्क्रीन बनाने में मदद करती है, शुरू से स्टाइल करने की जगह।
pr-explainer
29kयह आपके एजेंट को पुल रिक्वेस्ट को एक साफ़, स्व-निहित HTML पेज में बदलने में मदद करती है, जो रिव्यूअर को बदलाव समझाए।
pr-splitter
29kयह आपके एजेंट को एक बड़ी, उलझी पुल रिक्वेस्ट को छोटी, रिव्यू योग्य पुल रिक्वेस्ट में बांटने में मदद करती है, मूल काम सुरक्षित रखते हुए।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।