code-review-excellence
하는 일
이 스킬은 AI가 코드 변경을 검토하고 유용한 리뷰 댓글을 쓰도록 안내합니다. 문제를 찾고 사람들이 배울 수 있도록 돕는 코드 리뷰를 원하는 개발자와 팀을 위한 것입니다.
사용하는 경우
- ✓풀 리퀘스트나 코드 diff를 검토해야 할 때.
- ✓명확하고 친절한 리뷰 댓글을 쓰고 싶을 때.
- ✓팀이 코드 리뷰의 기준이나 체크리스트를 정하려고 할 때.
스킬 링크
https://github.com/Galaxy-Dawn/claude-scholar/blob/main/skills/code-review-excellence/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“이 풀 리퀘스트를 검토하고, 실제 버그를 짚으며 수정 방법을 제안하는 댓글을 써 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 변경을 읽고 버그, 예외 상황, 설계 문제를 찾은 뒤, 각 지적의 이유를 설명하는 구체적이고 우선순위가 있는 댓글을 씁니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Code Review Excellence
Transform code reviews from gatekeeping to knowledge sharing through constructive feedback, systematic analysis, and collaborative improvement.
When to Use This Skill
- Reviewing pull requests and code changes
- Establishing code review standards for teams
- Mentoring junior developers through reviews
- Conducting architecture reviews
- Creating review checklists and guidelines
- Improving team collaboration
- Reducing code review cycle time
- Maintaining code quality standards
Core Principles
1. The Review Mindset
Goals of Code Review:
- Catch bugs and edge cases
- Ensure code maintainability
- Share knowledge across team
- Enforce coding standards
- Improve design and architecture
- Build team culture
Not the Goals:
- Show off knowledge
- Nitpick formatting (use linters)
- Block progress unnecessarily
- Rewrite to your preference
2. Effective Feedback
Good Feedback is:
- Specific and actionable
- Educational, not judgmental
- Focused on the code, not the person
- Balanced (praise good work too)
- Prioritized (critical vs nice-to-have)
❌ Bad: "This is wrong."
✅ Good: "This could cause a race condition when multiple users
access simultaneously. Consider using a mutex here."
❌ Bad: "Why didn't you use X pattern?"
✅ Good: "Have you considered the Repository pattern? It would
make this easier to test. Here's an example: [link]"
❌ Bad: "Rename this variable."
✅ Good: "[nit] Consider `userCount` instead of `uc` for
clarity. Not blocking if you prefer to keep it."
3. Review Scope
What to Review:
- Logic correctness and edge cases
- Security vulnerabilities
- Performance implications
- Test coverage and quality
- Error handling
- Documentation and comments
- API design and naming
- Architectural fit
What Not to Review Manually:
- Code formatting (use Prettier, Black, etc.)
- Import organization
- Linting violations
- Simple typos
Review Process
Phase 1: Context Gathering (2-3 minutes)
Before diving into code, understand:
1. Read PR description and linked issue
2. Check PR size (>400 lines? Ask to split)
3. Review CI/CD status (tests passing?)
4. Understand the business requirement
5. Note any relevant architectural decisions
Phase 2: High-Level Review (5-10 minutes)
1. **Architecture & Design**
- Does the solution fit the problem?
- Are there simpler approaches?
- Is it consistent with existing patterns?
- Will it scale?
2. **File Organization**
- Are new files in the right places?
- Is code grouped logically?
- Are there duplicate files?
3. **Testing Strategy**
- Are there tests?
- Do tests cover edge cases?
- Are tests readable?
Phase 3: Line-by-Line Review (10-20 minutes)
For each file:
1. **Logic & Correctness**
- Edge cases handled?
- Off-by-one errors?
- Null/undefined checks?
- Race conditions?
2. **Security**
- Input validation?
- SQL injection risks?
- XSS vulnerabilities?
- Sensitive data exposure?
3. **Performance**
- N+1 queries?
- Unnecessary loops?
- Memory leaks?
- Blocking operations?
4. **Maintainability**
- Clear variable names?
- Functions doing one thing?
- Complex code commented?
- Magic numbers extracted?
Phase 4: Summary & Decision (2-3 minutes)
1. Summarize key concerns
2. Highlight what you liked
3. Make clear decision:
- ✅ Approve
- 💬 Comment (minor suggestions)
- 🔄 Request Changes (must address)
4. Offer to pair if complex
Review Techniques
Technique 1: The Checklist Method
## Security Checklist
- [ ] User input validated and sanitized
- [ ] SQL queries use parameterization
- [ ] Authentication/authorization checked
- [ ] Secrets not hardcoded
- [ ] Error messages don't leak info
## Performance Checklist
- [ ] No N+1 queries
- [ ] Database queries indexed
- [ ] Large lists paginated
- [ ] Expensive operations cached
- [ ] No blocking I/O in hot paths
## Testing Checklist
- [ ] Happy path tested
- [ ] Edge cases covered
- [ ] Error cases tested
- [ ] Test names are descriptive
- [ ] Tests are deterministic
Technique 2: The Question Approach
Instead of stating problems, ask questions to encourage thinking:
❌ "This will fail if the list is empty."
✅ "What happens if `items` is an empty array?"
❌ "You need error handling here."
✅ "How should this beha
자주 묻는 질문
서식에 초점을 맞추나요?
아니요. 서식은 린터에 맡기고, 버그, 유지보수성, 설계에 집중합니다.
피드백은 어떻게 전달하나요?
구체적이고 실행 가능하며, 사람이 아니라 코드에 초점을 맞춥니다. 잘된 부분도 함께 언급합니다.
팀의 기준을 세우는 데도 도움이 되나요?
네. 팀을 위한 리뷰 체크리스트와 지침을 만드는 데 도움을 줄 수 있습니다.
상세 정보
작성자의 원본 설명
This skill should be used when the user asks to review a diff or pull request, write review comments, audit code quality, establish review standards, or improve how a team performs code review.
인기도
- GitHub 스타
- 6.0k
- 순위
- #14482
- 라이선스
- MIT
- 업데이트
- 2026. 10. 19.
댓글
- …
이 저장소의 다른 스킬
agent-identifier
6.0k에이전트가 이름, 트리거 설명, 시스템 프롬프트, 설정을 올바르게 갖춘 Claude Code 에이전트를 만들도록 가르칩니다.
architecture-design
6.0k에이전트가 등록 가능한 부품을 추가할 때 팩토리와 레지스트리 패턴을 쓰는 머신러닝 프로젝트 구조를 가르칩니다.
bug-detective
6.0k에이전트가 문제 이해, 증거 수집, 가설 검증, 수정 확인의 방법으로 코드 오류를 찾아 고치도록 돕습니다.
citation-verification
6.0k에이전트가 논문의 인용을 신뢰할 수 있는 자료와 대조해 가짜이거나 잘못된 참고 문헌을 찾도록 가르칩니다.