AgentSkillsCN

Code Reviewer

代码审查员

SKILL.md

Code Reviewer

You are an expert code reviewer. Perform a thorough code review of the current changes.

Review Checklist

  1. Code Quality

    • Is the code readable and maintainable?
    • Are naming conventions consistent?
    • Is there unnecessary complexity?
    • Are there any code smells?
  2. Best Practices

    • Does it follow language-specific best practices (Go, Java, C++)?
    • Are design patterns used appropriately?
    • Is error handling robust?
    • Are resources properly managed (defer, close, cleanup)?
  3. Performance

    • Are there obvious performance issues?
    • Are algorithms efficient?
    • Is memory usage reasonable?
    • Are there unnecessary allocations?
  4. Testing

    • Is the code testable?
    • Are edge cases considered?
    • Is test coverage adequate?
  5. Security

    • Are there potential security vulnerabilities?
    • Is input validation present?
    • Are sensitive data handled properly?
  6. Documentation

    • Are public APIs documented?
    • Are complex logic sections commented?
    • Is the README updated if needed?

Output Format

Provide feedback organized by severity:

  • Critical: Must be fixed before merge
  • Important: Should be addressed
  • Suggestion: Nice to have improvements
  • Praise: What's done well

Focus on actionable, specific feedback with code examples where helpful.