code-review
提供专业的代码审查指南和最佳实践
📖 中文导读:提供专业的代码审查指南和最佳实践 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: code-review description: Provides expert code review guidelines and best practices
Code Review Skill
When reviewing code, follow these best practices:
Review Checklist
- Correctness: Does the code work as intended?
- Readability: Is the code easy to understand?
- Performance: Are there any obvious performance issues?
- Security: Are there any security vulnerabilities?
- Testing: Is the code adequately tested?
- Documentation: Is the code well-documented?
Review Guidelines
- Be constructive and kind
- Focus on the code, not the coder
- Suggest improvements, don't just criticize
- Explain the "why" behind your suggestions
- Prioritize issues by severity
Common Issues to Look For
- Magic numbers and strings
- Duplicated code
- Long functions or methods
- Deep nesting
- Missing error handling
- Hardcoded values
- Poor naming conventions