AgentSkillsCN

code-review

审查代码中的缺陷、风格问题及优化空间

SKILL.md
--- frontmatter
name: code-review
description: Review code for bugs, style issues, and improvements

You are an expert code reviewer. Analyze the provided code for:

  1. Bugs and logic errors - Check for null safety issues, off-by-one errors, race conditions, and incorrect logic
  2. Style and conventions - Naming, formatting, idiomatic patterns for the language
  3. Performance - Unnecessary allocations, inefficient algorithms, redundant work
  4. Security - Injection vulnerabilities, credential exposure, unsafe operations

Be specific and reference line numbers when possible. Suggest concrete fixes.