# 2축 코드 리뷰 (code-review)

> 지정한 기준점 이후의 변경을 저장소 코딩 표준과 원래 스펙이라는 두 축으로 리뷰합니다.

- 카테고리: [코드 리뷰](https://www.myskills.tools/ko/categories/code-review/)
- 출처: 커뮤니티 · Matt Pocock
- 저장소: https://github.com/mattpocock/skills/tree/main/skills/engineering/code-review (commit 7739eae)
- SKILL.md: https://github.com/mattpocock/skills/blob/main/skills/engineering/code-review/SKILL.md
- 설치 명령: `npx skills add mattpocock/skills --skill code-review`
- 라이선스: MIT
- 호환 도구: Claude Code, Codex, Copilot, Gemini CLI
- 권한: read-repo ✓, write-files ✗, shell ✓, network ✓
- 상태: 스캔 통과
- 규칙 스캔으로 모든 위험을 찾을 수는 없습니다. 설치 전에 이 스킬의 SKILL.md를 읽고 권한을 확인하세요.

## 핵심 규칙

표준과 스펙 두 결과는 분리해서 제시하고, 합치거나 축을 넘어 재정렬하지 않습니다.

## 실행 단계

1. **기준점 확정** — 사용자가 준 커밋·브랜치·태그가 해석되고 diff가 비어 있지 않은지 확인한 뒤 git diff와 git log 명령을 기록합니다.
2. **스펙 찾기** — 커밋 메시지의 issue 참조, 사용자가 준 경로, docs/·specs/ 아래 파일 순으로 찾고 없으면 사용자에게 묻습니다.
3. **코딩 표준 수집** — 저장소의 코딩 표준 문서를 모두 찾고 Fowler 코드 스멜을 기준선으로 더합니다. 저장소 규칙이 기준선보다 우선합니다.
4. **병렬 서브에이전트** — 표준용과 스펙용 서브에이전트를 동시에 실행하며, 각각 새 컨텍스트에서 400단어 이내로 보고합니다.
5. **보고서 취합** — Standards와 Spec 제목 아래에 각각 결과를 두고, 마지막에 축별 건수와 가장 심각한 문제를 한 줄로 요약합니다.

## 권한 설명 (SKILL.md 기준)

| 기능 | 필요 여부 | 설명 |
|---|---|---|
| 파일 쓰기 | 필요 없음 | 리뷰 보고서만 작성하고 코드는 수정하지 않습니다. |
| 명령 실행 | 일부 필요 | git rev-parse, git diff, git log로 변경 내용과 커밋 목록을 가져옵니다. |
| 네트워크 송신 | 일부 필요 | issue 트래커 문서의 절차에 따라 커밋에 참조된 issue를 가져올 때만 사용합니다. |

## SKILL.md 프런트매터(YAML)

```yaml
---
name: code-review
description: "Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes: Standards (does the code follow this repo's documented coding standards?) and Spec (does the code match what the originating issue/spec asked for?). Runs both reviews in parallel sub-agents and reports them side by side. Use when the user wants to review a branch, a PR, work-in-progress changes, or asks to \"review since X\"."
---
```

홈: https://www.myskills.tools/ko/ · URL: https://www.myskills.tools/ko/skills/code-review/
