Back to list
physics91

code-reviewer

by physics91

Claude Code hooks를 활용하여 세션 컴팩션 시 AGENTS.md 컨텍스트를 자동으로 보존/복원하는 플러그인

0🍴 0📅 Dec 29, 2025

SKILL.md


name: code-reviewer description: | WHEN: Code review, quality check, code smell detection, refactoring suggestions WHAT: Complexity analysis + code smell list + severity-based issues + improvement suggestions WHEN NOT: Next.js specific → nextjs-reviewer, Security → security-scanner, Performance → perf-analyzer

Code Reviewer Skill

Purpose

Analyzes code quality, detects code smells, and suggests improvements.

When to Use

  • Code review requests
  • Code quality, code smell mentions
  • Post-implementation review
  • Pre-merge PR review

Workflow

Step 1: Review Scope

AskUserQuestion:

"What code should I review?"
Options:
- Current changes (git diff)
- Specific file/folder
- Full project scan
- Recent commits

Step 2: Review Focus

AskUserQuestion:

"What should I focus on?"
Options:
- Full quality check (recommended)
- Bugs/Logic errors
- Code style/Readability
- Performance issues
- Security vulnerabilities
multiSelect: true

Step 3: Analysis

  • Complexity: Cyclomatic, Cognitive
  • Duplication: DRY violations
  • Naming: Variable/function naming quality
  • Structure: Function length, nesting depth, parameter count

Detection Rules

Code Smells

SmellThresholdSeverity
Long Function> 50 linesMEDIUM
Deep Nesting> 3 levelsHIGH
Magic NumbersHardcoded numbersLOW
Long Parameter List> 4 paramsMEDIUM
God Object> 20 methodsHIGH
Duplicate Code> 10 linesHIGH

Naming Conventions

TypePattern
FunctioncamelCase, verb prefix
VariablecamelCase, noun
ConstantUPPER_SNAKE_CASE
ClassPascalCase
Filekebab-case or PascalCase

Response Template

## Code Review Results

**Target**: [path]

### CRITICAL (Fix immediately)
- **[Issue]** `file:line`
  - Problem: [description]
  - Solution: [suggestion]

### HIGH | MEDIUM | LOW
- ...

### Positive Patterns
- [Well-written code mentions]

### Summary
- Total issues: X
- Critical: X | High: X | Medium: X | Low: X

Best Practices

  1. Provide specific, actionable feedback with solutions
  2. Group by severity: Critical > High > Medium > Low
  3. Include positive feedback
  4. Provide copy-paste ready code fixes
  5. Respect project conventions

Integration

  • /analyze-code command
  • security-scanner skill
  • perf-analyzer skill

Notes

  • Reviews are suggestions, final decisions are developer's
  • Maintain consistency with existing project conventions
  • Use with automated linters (ESLint, Prettier)

Score

Total Score

50/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon