AgentSkillsCN

code-review

审查代码的风格、性能和可维护性。在合并更改之前使用。

SKILL.md
--- frontmatter
name: code-review
description: Review code for style, performance, and maintainability. Use before merging changes.

Code Review

Systematically review code changes for quality, consistency, and potential issues.

Review Areas

  1. Style: Naming, formatting, idioms
  2. Performance: Efficiency, complexity
  3. Maintainability: Readability, duplication
  4. Correctness: Logic errors, edge cases

Output

Create review reports using templates:

  • templates/review-style.md for style issues
  • templates/review-performance.md for performance issues

Tips

  • Focus on significant issues, not nitpicks
  • Explain why something is problematic
  • Suggest specific improvements
  • Acknowledge good patterns too
  • Prioritize by impact