mcpField
C
code-review

code-review

github.com/ww-w-aiTesting & quality60670 installsUpdated 5w ago
Repository

About code-review

A code-review skill for files, directories, and PRs. It delegates in-depth analysis to the code-analyzer Agent and filters findings by confidence.

Key features

  1. 01Code quality and complexity checks
  2. 02Bug and boundary-condition detection
  3. 03Security risk checks
  4. 04Performance analysis
  5. 05Confidence-based issue filtering
  6. 06Structured review reports

Use cases

  1. 01Review a single source file
  2. 02Review a feature directory
  3. 03Analyze code changes in a PR

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/ww-w-ai/bkit-claude-code --skill code-review

After installing, type/code-reviewin Claude Code to confirm it loaded.

Details

From the project README

Code Review Skill

Skill for code quality analysis and review

Arguments

ArgumentDescriptionExample
[file]Review specific file/code-review src/lib/auth.ts
[directory]Review entire directory/code-review src/features/
[pr]PR review (PR number)/code-review pr 123

Review Categories

1. Code Quality
  • Duplicate code detection
  • Function/file complexity analysis
  • Naming convention check
  • Type safety verification
2. Bug Detection
  • Potential bug pattern detection
  • Null/undefined handling check
  • Error handling inspection
  • Boundary condition verification
3. Security
  • XSS/CSRF vulnerability check
  • SQL Injection pattern detection
  • Sensitive information exposure check
  • Authentication/authorization logic review
4. Performance
  • N+1 query pattern detection
  • Unnecessary re-render check
  • Memory leak pattern detection
  • Optimization opportunity identification

Review Output Format

## Code Review Report

### Summary
- Files reviewed: N
- Issues found: N (Critical: N, Major: N, Minor: N)
- Score: N/100

### Critical Issues
1. [FILE:LINE] Issue description
   Suggestion: ...

### Major Issues
...

### Minor Issues
...

### Recommendations
- ...

Agent Integration

This Skill calls the code-analyzer Agent for in-depth code analysis.

AgentRole
code-analyzerCode quality, security, performance analysis

Usage Examples

# Review specific file
/code-review src/lib/auth.ts

# Review entire directory
/code-review src/features/user/

# PR review
/code-review pr 42

# Review current changes
/code-review staged

Confidence-Based Filtering

code-analyzer Agent uses confidence-based filtering:

ConfidenceDisplayDescription
High (90%+)Always shownDefinite issues
Medium (70-89%)Selectively shownPossible issues
Low (<70%)HiddenUncertain suggestions

PDCA Integration

  • Phase: Check (Quality verification)
  • Trigger: Auto-suggested after implementation
  • Output: docs/03-analysis/code-review-{date}.md

Comments

Markdown supported