review-pr
하는 일
이 스킬은 code-review-graph 도구로 풀 리퀘스트나 브랜치의 모든 커밋을 검토하도록 AI 에이전트를 안내합니다. 풀 리퀘스트를 다루는 개발자와 리뷰어를 위한 스킬입니다.
사용하는 경우
- ✓병합 전에 풀 리퀘스트를 구조적으로 검토하고 싶을 때.
- ✓공개 API 변경이 모든 호출자를 업데이트했는지 확인해야 할 때.
- ✓브랜치의 모든 커밋을 다루는 위험 요약이 필요할 때.
스킬 링크
https://github.com/tirth8205/code-review-graph/blob/staging/skills/review-pr/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“feature-login 브랜치를 main과 비교해서 위험 요소를 알려 주실 수 있나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 브랜치를 main과 비교하고, 위험한 함수와 그 호출자 및 테스트를 확인한 뒤, 영향이 가장 큰 파일을 읽습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Review PR
Review all commits of a pull request or branch against its base branch.
Steps
- Identify the changes. With a branch name run
git diff --name-only main...<branch>; otherwise diff the current branch againstmain(ormaster). Use that ref asbasebelow. - Call
get_minimal_context_tool(task="review PR", base="main"). If it returnsstatus: not_ready, callbuild_or_update_graph_tool()and continue. - Call
detect_changes_tool(base="main", detail_level="minimal")for risk-scored changed functions, test gaps and affected flows across the whole branch. - For high-risk functions call
query_graph_tool(pattern="callers_of", target="<function>")andquery_graph_tool(pattern="tests_for", target="<function>"). Flag public API changes whose callers were not updated. - Call
get_review_context_tool(base="main")for source snippets, orget_impact_radius_tool(base="main")for the full dependent list, only when step 3 leaves a high-risk item unclear. - Read the changed source of the highest-impact files first. Do not load whole files unless the change needs it.
Output
## PR Review: <title>
### Summary
<1-3 sentences>
### Risk
- Overall: Low / Medium / High
- Blast radius: <n> files, <m> functions
- Test coverage: <covered> of <changed> changed functions
### Files
#### <path>
- Changes: <what>
- Impact: <who depends on it>
- Issues: <bugs, style, concerns>
### Missing Tests
- <function> in <file>
### Recommendations
1. <action>
Tips
- Use
semantic_search_nodes_toolto find related code the PR may have missed.
자주 묻는 질문
어떤 기준 브랜치를 사용하나요?
지정한 브랜치를 쓰거나, 지정하지 않으면 현재 브랜치를 main이나 master와 비교합니다.
결과물은 어떤 모습인가요?
요약, 위험 수준, 파일, 테스트 범위 개수가 포함된 구조화된 검토 보고서입니다.
API 변경도 표시하나요?
네. 호출자를 업데이트하지 않은 공개 API 변경을 표시합니다.
상세 정보
작성자의 원본 설명
Review a PR or branch diff using the knowledge graph for full structural context. Outputs a structured review with blast-radius analysis.
인기도
- GitHub 스타
- 33k
- 순위
- #9144
- 라이선스
- MIT
- 업데이트
- 2026. 10. 29.
댓글
- …
이 저장소의 다른 스킬
build-graph
33k에이전트가 저장소의 코드 지식 그래프를 만들거나 갱신해, 이후 코드 리뷰와 검색을 더 빠르게 돕습니다.
debug-issue
33k에이전트가 코드 지식 그래프에서 호출 체인을 따라 버그의 시작점을 추적하도록 돕습니다. 원본 코드를 읽기 전에 먼저 살펴봅니다.
explore-codebase
33k에이전트가 코드 지식 그래프에서 모듈과 관계를 검색해 낯선 코드베이스를 둘러보도록 돕습니다.
refactor-safely
33k에이전트가 의존성 분석으로 코드 리팩터링을 계획하고, 이름 변경은 미리 보기를 확인한 뒤에만 적용하도록 돕습니다.