From codeaware
코드의 AI 이해도를 6단계 척도로 진단합니다. '/codeaware:scan' 또는 '/codeaware:scan path/to/file' 로 실행. 인자 없이 실행하면 현재 프로젝트 전체를 스캔합니다.
How this skill is triggered — by the user, by Claude, or both
Slash command
/codeaware:scanThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
코드의 AI 이해도(AI Comprehensibility)를 6단계 척도로 진단하고, AI가 코드 맥락을 분석하여 오탐 필터링 및 종합 소견을 제공합니다.
코드의 AI 이해도(AI Comprehensibility)를 6단계 척도로 진단하고, AI가 코드 맥락을 분석하여 오탐 필터링 및 종합 소견을 제공합니다.
scan_file MCP tool 호출scan_project MCP tool 호출scan_project MCP tool 호출MCP 도구의 regex 결과를 받은 후, 다음 절차로 AI 2차 판단을 수행하세요.
scan_file 결과에서 evidence가 1개 이상이면 AI 판단 수행evidence가 없으면 AI 판단을 생략하고 기존 형식대로 출력합니다.
scan_project 결과의 worstFiles (level 높은 순 정렬됨)에서 상위 10개를 AI 판단 대상으로 선택사용자의 대화 언어에 맞춰 출력하세요. 한국어로 대화 중이면 시그널 이름, 심각도, 판정 등 모든 항목을 한국어로 표시합니다.
magic_number → 매직 넘버hardcoded_date → 하드코딩된 날짜order_dependent_init → 순서 의존 초기화unexplained_catch → 설명 없는 catchunexplained_value_comparison → 설명 없는 값 비교env_specific_branch → 환경별 분기commented_out_code → 주석 처리된 코드todo_without_ticket → 티켓 없는 TODOgeneric_name → 범용적 이름single_letter_name → 한 글자 이름inconsistent_casing → 네이밍 규칙 혼재undocumented_export → 문서 없는 exportuncommented_complex_condition → 설명 없는 복잡 조건unexplained_regex → 설명 없는 정규식mixed_export_styles → export 스타일 혼재inconsistent_error_handling → 에러 처리 불일치high_function_length_variance → 함수 길이 편차 큼high_import_count → import 과다global_state_access → 전역 상태 접근deep_relative_import → 깊은 상대경로 importunclear_test_name → 불명확한 테스트 이름magic_value_in_test → 테스트 내 매직 값no_edge_case_tests → 엣지 케이스 테스트 부재high → 높음medium → 보통low → 낮음결과를 받으면 다음 형식으로 사용자에게 보고하세요:
## [파일명] — Level X: [Label]
| 차원 | 점수 | 시그널 |
|------|------|--------|
| ... | ... | ... |
### AI 분석
#### Evidence 판정
| # | Line | 시그널 | Regex 심각도 | AI 판정 | 이유 |
|---|------|--------|-------------|---------|------|
| 1 | 42 | 매직 넘버 | 높음 | 오탐 | 상수 RETRY_COUNT에 할당된 값 |
| 2 | 87 | 설명 없는 catch | 높음 | 확인됨 | 에러 타입별 분기 이유 불명 |
| 3 | 120 | 매직 넘버 | 높음 | 심각도 조정 ↓보통 | 테스트 fixture |
#### 종합 소견
이 파일의 calculatePrice() 함수에는 할인율 계산이 매직 넘버로 인코딩되어 있습니다.
리팩토링 시 비즈니스팀에 할인 정책을 확인하세요.
AI 판정 한글 매핑:
confirmed → 확인됨false_positive → 오탐severity_adjusted → 심각도 조정evidence가 없는 파일은 AI 분석 섹션을 생략합니다.
## 프로젝트 진단 — Level X: [Label]
- 총 파일 수: N
- 레벨 분포: Level 1: n개, Level 2: n개, ...
### Worst Files (Top 10) — AI 분석 포함
| # | File | Level | 핵심 문제 | AI 소견 요약 |
|---|------|-------|----------|-------------|
| 1 | src/pricing.ts | 6 | 매직 넘버 ×5 | 할인 정책이 숫자로 하드코딩 |
| 2 | ... | ... | ... | ... |
> 나머지 N개 파일의 AI 분석을 보려면 "더 보여줘"라고 말씀하세요.
worstFiles가 10개 이하이면 "더 보여줘" 안내를 생략합니다.
structuralSignals 배열이 비어있지 않으면 아래 섹션을 추가로 출력하세요:
### 구조적 신호 & 리팩토링 방향
| # | 유형 | 심각도 | 설명 | 리팩토링 방향 |
|---|------|--------|------|--------------|
| 1 | ... | ... | ... | ... |
유형 매핑:
excessive_responsibility → 과다 책임domain_duplication → 도메인 중복layer_inconsistency → 계층 불일치dependency_violation → 의존성 위반circular_dependency → 순환 참조god_class → God Classnpx claudepluginhub giwonn/giwonn-plugins --plugin codeawareProvides a checklist for code reviews covering functionality, security, performance, maintainability, tests, and quality. Use for pull requests, audits, team standards, and developer training.