SuperAPI AI Directory

code-reviewer

Coding & development

View repository

Updated 10-16 08:49

About this skill

Code Review Skill

Description

Conduct a comprehensive review of code, checking quality, security, and best practices.

Trigger Conditions

  • "review this code"
  • "check the code"
  • 「code review」

Review Items

1. Code Quality

  • Whether naming is clear
  • Whether function length is reasonable (recommended < 50 lines)
  • Whether the DRY principle is followed
  • Whether complexity is too high

2. Security

  • SQL injection risk
  • XSS vulnerabilities
  • Sensitive data exposure
  • Permission checks

3. Performance

  • N+1 query problem
  • Unnecessary loops
  • Memory leak risk

4. Maintainability

  • Whether comments are sufficient
  • Whether error handling is complete
  • Test coverage

Output Format

## 審查結果

### ✅ 優點
- ...

### ⚠️ 建議改進
- [嚴重程度] 問題描述
  - 位置:第 X 行
  - 建議:...

### 📊 評分
- 品質:X/10
- 安全:X/10
- 效能:X/10