본문으로 건너뛰기
Skillpedia
일반 코딩33k · #9144

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/tirth8205/code-review-graph/blob/staging/skills/review-pr/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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

  1. Identify the changes. With a branch name run git diff --name-only main...<branch>; otherwise diff the current branch against main (or master). Use that ref as base below.
  2. Call get_minimal_context_tool(task="review PR", base="main"). If it returns status: not_ready, call build_or_update_graph_tool() and continue.
  3. Call detect_changes_tool(base="main", detail_level="minimal") for risk-scored changed functions, test gaps and affected flows across the whole branch.
  4. For high-risk functions call query_graph_tool(pattern="callers_of", target="<function>") and query_graph_tool(pattern="tests_for", target="<function>"). Flag public API changes whose callers were not updated.
  5. Call get_review_context_tool(base="main") for source snippets, or get_impact_radius_tool(base="main") for the full dependent list, only when step 3 leaves a high-risk item unclear.
  6. 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_tool to 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.

repo: tirth8205/code-review-graph

인기도

GitHub 스타
33k
순위
#9144
라이선스
MIT
업데이트
2026. 10. 29.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬