| name | component-design-reviewer |
| description | Reviews React components and provides improvement suggestions. Use when you need code review, component review, structure improvement, refactoring, or component separation. |
| allowed-tools | Read, Grep, Glob |
Component Design Reviewer
React 컴포넌트 설계 원칙에 따른 전문적인 코드 리뷰를 제공하는 Skill입니다. Claude가 직접 코드를 분석하여 5가지 핵심 원칙을 중심으로 상세한 리포트를 생성합니다.
검사 원칙 요약
- SRP - 하나의 컴포넌트, 하나의 역할
- Props - drilling 최소화, 명확한 interface
- Composition - 상속보다 합성
- Reusability - 공통 요소 추출
- Custom Hooks - UI/비즈니스 로직 분리
Instructions
- Read로 대상 컴포넌트 파일 읽기
- 5가지 원칙별로 체크리스트 기반 분석
- Grep으로 props drilling, hooks 패턴 검색
- 컴포넌트별 리포트 생성 (Critical/Warning/Suggestion)
- 문제마다 "문제 코드" vs "개선 코드" 예시 제공
리뷰 체크리스트
단일 책임 원칙 검사
Props 설계 검사
합성 패턴 검사
재사용성 검사
Custom Hooks 검사
출력 형식
examples.md의 "리뷰 출력 형식" 섹션을 따를 것