界面已本地化;技能介绍与说明文档按所选语言由 AI 自动翻译,代码、命令、路径和专业术语保留原文,以原作者文档为准。
探索技能
数据与研究 · SKILL.md

code-reviewer

code-reviewer

【数据与研究】Review code for bugs, performance, security, and best practices. TRIGGERS - Use when user wants code review, bug checking, or code quality analysis.

独立 GitHub 快照 · 自动分类 · 以原作者文档为准

技能说明

GitHub

name: code-reviewer description: | Review code for bugs, performance, security, and best practices. TRIGGERS - Use when user wants code review, bug checking, or code quality analysis.

Code Reviewer

Review Checklist

For every code review, check:

  1. Correctness: Does it work as intended?
  2. Bugs: Edge cases, off-by-one, null handling
  3. Security: Input validation, injection, auth
  4. Performance: N+1 queries, unnecessary loops, memory
  5. Readability: Clear naming, comments, structure
  6. Best practices: DRY, SOLID, patterns
  7. Error handling: Try/catch, fallbacks, logging
  8. Tests: Coverage, edge cases, meaningful assertions

Output Format

# Code Review: [File/PR Name]

## Summary
[Overall assessment — 1-2 sentences]
**Rating**: 🟢 Approve / 🟡 Approve with suggestions / 🔴 Request changes

## Critical Issues 🔴
[Must fix before merge]

## Suggestions 🟡
[Recommended improvements]

## Nitpicks 🔵
[Optional style/preference items]

## What's Good 🟢
[Positive feedback — always include this]
我的收藏