code-review
审查代码的质量、错误、安全问题和最佳实践。当用户要求代码审查、代码分析或希望对其代码获得反馈时使用此技能。
📖 中文导读:审查代码的质量、错误、安全问题和最佳实践。当用户要求代码审查、代码分析或希望对其代码获得反馈时使用此技能。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: code-review description: | Review code for quality, bugs, security issues, and best practices. Use this skill when the user asks for code review, code analysis, or wants feedback on their code.
Code Review Skill
This skill helps you perform thorough code reviews.
Guidelines
When reviewing code, check for:
- Correctness - Does the code do what it's supposed to?
- Security - Are there any vulnerabilities?
- Performance - Are there obvious inefficiencies?
- Readability - Is the code clear and maintainable?
- Best Practices - Does it follow language conventions?
Available Scripts
Run these from the skill's base_path:
# Analyze code complexity
python scripts/analyze_complexity.py <file>
# or via stdin
cat <file> | python scripts/analyze_complexity.py
# Check code style
python scripts/check_style.py <file>
# or via stdin
cat <file> | python scripts/check_style.py
Usage
- Run
analyze_complexity.pyto get metrics - Run
check_style.pyfor style issues - Provide comprehensive feedback based on the results