understand-pr
Fungsinya
Skill ini memandu tinjauan menyeluruh atas pull request sebelum digabungkan. Ini untuk pengembang dan maintainer yang meninjau perubahan kode.
Kapan dipakai
- ✓Saat Anda ingin tinjauan pull request yang memeriksa apakah perubahan itu memang layak ada di basis kode.
- ✓Saat Anda perlu meninjau pull request Anda sendiri sebelum meminta orang lain melihatnya.
- ✓Saat Anda ingin memeriksa tinjauan ulang setelah commit baru ditambahkan.
Link skill
https://github.com/mastra-ai/mastra/blob/main/.mastracode/skills/understand-pr/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
“Tinjau pull request ini dan beri tahu saya apakah perubahannya sehat, beserta risiko utamanya.”
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Agent pertama-tama menentukan tujuan dan desain sederhana, membandingkan pull request dengan keduanya, memverifikasi klaim kunci dalam kode, lalu menulis ringkasan singkat.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Apakah skill ini memposting ulasan di GitHub?
Skill ini berfokus pada briefing. Pemostingan ditangani oleh panduan ulasan terpisah dan memerlukan persetujuan Anda.
Apakah skill ini menjalankan kodenya?
Bisa. Skill ini bisa menjalankan pemeriksaan kecil jika membantu memverifikasi klaim tentang perubahan.
Apakah hanya untuk perubahan besar?
Tidak. Kedalaman tinjauan mengikuti risiko perubahan.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 29k
- Peringkat
- #9371
- Lisensi
- —
- Diperbarui
- 2/11/2026
Komentar
- …
Skill lain dari repositori ini
debugging-difficult-bugs
29kMembantu agent Anda menelusuri bug yang sulit dengan mencatat apa yang dilakukan program sebenarnya saat berjalan, bukan hanya menebak dari pengujian.
mastra-frontend
29kMembantu agent Anda membangun layar aplikasi dengan sistem desain playground Mastra, dengan menggabungkan komponen siap pakai alih-alih menata gaya dari nol.
pr-explainer
29kMembantu agent Anda mengubah pull request menjadi halaman HTML yang jelas dan mandiri, yang menjelaskan perubahan kepada peninjau.
pr-splitter
29kMembantu agent Anda memecah pull request besar dan berantakan menjadi pull request kecil yang mudah ditinjau, sambil menjaga pekerjaan asli tetap aman.
Skill serupa
diffs
394kMemungkinkan agent Anda menghasilkan diff perubahan yang nyata dan dapat dibagikan sebagai tautan viewer atau file gambar, bukan ringkasan yang ditulis manual.
coding-agent
394kMembantu agent Anda menyerahkan pekerjaan pemrograman besar ke Codex, Claude Code, atau OpenCode di latar belakang, lalu memeriksa kemajuannya.
gh-issues
394kMembantu agent Anda menemukan issue GitHub, memilih yang dikerjakan, dan membuka pull request perbaikan, termasuk tindak lanjut komentar tinjauan.