This skill should be used when the user asks to "code review,코드 리뷰,리뷰해줘,review this". Systematic code review with severity-rated feedback
From tenetxnpx claudepluginhub wooo-jin/tenetx/code-reviewReviews local uncommitted changes or GitHub PRs (pass PR number/URL) for security vulnerabilities, code quality issues, and best practices. Generates severity-based report with file locations, descriptions, and fixes.
/code-reviewPerforms automated multi-agent code review on current GitHub pull request: audits CLAUDE.md, bugs, git history, prior PRs, code comments; scores issue confidence.
/code-reviewReviews uncommitted changes for security vulnerabilities, code quality issues, and best practices using git diff. Generates report with severity levels, locations, descriptions, fixes; blocks commits on critical/high issues.
/code-reviewPerforms comprehensive code quality review of repository structure, code, security, performance, architecture, testing, and documentation. Produces prioritized issues and actionable recommendations with examples.
/code-reviewPerforms comprehensive code quality review of repository structure, code, security, performance, architecture, testing, and documentation. Produces prioritized issues and actionable recommendations with examples.
/code-reviewReviews recent git changes for code quality, security, performance, testing, and documentation. Provides actionable feedback with line-by-line comments.
정확성 검증: 로직이 의도대로 동작하는지 확인합니다
보안 검토: OWASP Top 10 기준으로 취약점을 점검합니다
유지보수성: 코드 품질과 가독성을 평가합니다
피드백 작성: 심각도별로 분류하여 리포트합니다
</Steps>code-reviewer 에이전트(Opus 모델)에 위임하여 심층 코드 분석을 수행합니다:
Agent(
subagent_type="code-reviewer",
model="opus",
prompt="CODE REVIEW TASK
코드 변경 사항의 품질, 보안, 유지보수성을 리뷰하세요.
Scope: [git diff 또는 특정 파일]
Review Checklist:
- Security 취약점 (OWASP Top 10)
- Code Quality (복잡도, 중복)
- Performance 이슈 (N+1, 비효율 알고리즘)
- Best Practices (네이밍, 문서화, 에러 핸들링)
- Maintainability (결합도, 테스트 가능성)
Output: 코드 리뷰 리포트:
- 리뷰한 파일 수
- 심각도별 이슈 (CRITICAL, HIGH, MEDIUM, LOW)
- 구체적인 파일:라인 위치
- 수정 권고
- 승인 권고 (APPROVE / REQUEST CHANGES / COMMENT)"
)
| 판정 | 조건 | 설명 |
|---|---|---|
| APPROVE | CRITICAL/HIGH 이슈 없음 | 경미한 개선 사항만 있음, 머지 가능 |
| REQUEST CHANGES | CRITICAL 또는 HIGH 이슈 존재 | 반드시 수정 후 재리뷰 필요 |
| COMMENT | LOW/MEDIUM 이슈만 존재 | 차단 사항 없음, 선택적 개선 권장 |
code-reviewer 에이전트는 교차 검증을 위해 Claude Task 에이전트에 자문할 수 있습니다.
| 심각도 | 설명 |
|---|---|
| CRITICAL | 보안 취약점 (머지 전 반드시 수정) |
| HIGH | 버그 또는 주요 코드 스멜 (머지 전 수정 권장) |
| MEDIUM | 경미한 이슈 (가능할 때 수정) |
| LOW | 스타일/제안 (수정 고려) |
Files Reviewed: N Total Issues: N
(없음 / 이슈 상세)
src/api/auth.ts:42 Issue: 사용자 입력이 SQL 쿼리 전에 살균되지 않음 Risk: SQL 인젝션 취약점 Fix: 파라미터화 쿼리 또는 ORM 사용
src/components/UserProfile.tsx:89 Issue: 비밀번호가 로그에 평문으로 출력됨 Risk: 크리덴셜 노출 Fix: 로그 구문에서 비밀번호 제거
src/utils/validation.ts:15 Issue: 이메일 정규식이 잘못된 형식을 허용 Risk: 잘못된 이메일 수용 Fix: 검증된 이메일 유효성 검사 라이브러리 사용
...
...
RECOMMENDATION: [APPROVE / REQUEST CHANGES / COMMENT]
[수정이 필요한 경우 요약 코멘트]
</Output>
<Policy>
- 변경된 코드만 리뷰합니다 (기존 코드의 기술 부채는 별도 이슈로)
- 구체적인 코드 라인을 참조하여 피드백합니다
- 문제 지적 시 해결 방안도 함께 제시합니다
- 잘된 부분도 언급하여 균형 잡힌 피드백을 제공합니다
- 20개 체크 항목을 빠짐없이 검토합니다
- APPROVE/REQUEST CHANGES/COMMENT 3단계 판정을 반드시 포함합니다
</Policy>
## 다른 스킬과의 연동
**Pipeline 연동:**
/tenetx:pipeline review "사용자 인증 구현"
구현 워크플로우의 일부로 코드 리뷰 포함
**Ralph 연동:**
/tenetx:ralph code-review then fix all issues
코드 리뷰 후 피드백 수정, 승인될 때까지 반복
**팀 기반 병렬 리뷰:**
/tenetx:team 4:code-reviewer "src/ 전체 파일 리뷰"
여러 파일에 대해 병렬 코드 리뷰 수행
## Best Practices
- **조기 리뷰** — 이슈가 누적되기 전에 잡기
- **자주 리뷰** — 크고 드문 리뷰보다 작고 빈번한 리뷰
- **CRITICAL/HIGH 우선** — 보안과 버그부터 즉시 수정
- **컨텍스트 고려** — 일부 "이슈"는 의도적 트레이드오프일 수 있음
- **리뷰에서 학습** — 피드백을 활용하여 코딩 관행 개선
<Arguments>
## 사용법
`/tenetx:code-review {리뷰 대상}`
### 예시
- `/tenetx:code-review` (기본: 최근 변경사항 리뷰)
- `/tenetx:code-review src/auth/login.ts`
- `/tenetx:code-review 최근 3개 커밋`
- `/tenetx:code-review PR #42`
### 인자
- 파일 경로, 커밋 범위, PR 번호 등을 지정
- 인자 없으면 `git diff`로 변경사항을 자동 감지
</Arguments>
$ARGUMENTS