understand-pr
하는 일
이 스킬은 병합 전 풀 리퀘스트를 철저히 검토하는 방법을 안내합니다. 코드 변경을 리뷰하는 개발자와 관리자를 위한 것입니다.
사용하는 경우
- ✓변경이 코드베이스에 속하는지 확인하는 풀 리퀘스트 검토를 원할 때.
- ✓다른 사람에게 보이기 전에 내 풀 리퀘스트를 직접 검토해야 할 때.
- ✓새 커밋이 추가된 뒤 다시 검토하고 싶을 때.
스킬 링크
https://github.com/mastra-ai/mastra/blob/main/.mastracode/skills/understand-pr/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 풀 리퀘스트를 검토하고, 변경이 타당한지 그리고 주요 위험이 무엇인지 알려 주세요.”
매주 새 스킬 5개. 읽는 데 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
- 라이선스
- —
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
debugging-difficult-bugs
29k에이전트가 추측이 아니라 실제 프로그램이 실행될 때의 로그를 남겨 어려운 버그를 디버그하도록 돕습니다.
mastra-frontend
29k에이전트가 처음부터 스타일을 만들지 않고, Mastra 플레이그라운드 디자인 시스템의 기성 컴포넌트로 앱 화면을 만들도록 돕습니다.
pr-explainer
29k에이전트가 풀 리퀘스트를 리뷰어가 이해할 수 있도록 독립적인 HTML 페이지로 설명해 줍니다.
pr-splitter
29k에이전트가 크고 복잡한 풀 리퀘스트를 원본 작업을 안전하게 지키면서 더 작고 리뷰하기 쉬운 풀 리퀘스트로 나누도록 돕습니다.