AgentSkillsCN

code-review

对代码进行全面的质量、安全性和性能审查。

SKILL.md
--- frontmatter
name: code-review
description: Comprehensive code review for quality, security, and performance

Code Review Skill

Perform thorough code reviews focusing on quality, security, and maintainability.

Review Checklist

Security

  • No hardcoded secrets or credentials
  • Input validation on all external data
  • Proper authentication/authorization checks
  • No SQL/XSS/command injection vulnerabilities

Quality

  • Clear, descriptive naming
  • Functions are focused and small
  • Proper error handling
  • No code duplication

Performance

  • Efficient algorithms (no unnecessary O(n²))
  • Proper resource cleanup
  • No memory leaks
  • Optimized database queries

Output Format

Organize findings by severity:

  1. Critical: Must fix before merge
  2. High: Should fix before merge
  3. Medium: Consider fixing
  4. Low: Nice to have improvements