AgentSkillsCN

code-reviewer

对代码进行质量、漏洞及优化方面的审查。当用户希望对代码进行评审或评估其质量时,可使用此技能。

SKILL.md
--- frontmatter
name: code-reviewer
description: Review code for quality, bugs, and improvements. Use when user wants code review or quality assessment.

Code Reviewer

Perform thorough code reviews focusing on quality and correctness.

Review Checklist

  1. Correctness - Does the code do what it's supposed to?
  2. Readability - Is the code easy to understand?
  3. Performance - Are there any obvious inefficiencies?
  4. Security - Are there potential vulnerabilities?
  5. Best Practices - Does it follow language conventions?

Output Format

markdown
## Code Review Summary

**Overall Assessment**: [Good/Needs Work/Critical Issues]

### Issues Found
| Severity | Line | Issue | Suggestion |
|----------|------|-------|------------|
| High     | 42   | ...   | ...        |

### Positive Aspects
- [What's done well]

### Recommendations
1. [Priority fix 1]
2. [Priority fix 2]

Severity Levels

  • Critical: Security issues, data loss risks
  • High: Bugs, incorrect logic
  • Medium: Performance issues, code smells
  • Low: Style issues, minor improvements