code-reviewer

hidai25 的头像作者 hidai25

一种帮助审查代码的最佳实践、错误和安全问题的技能

📖 中文导读:一种帮助审查代码的最佳实践、错误和安全问题的技能 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。

name: code-reviewer description: A skill that helps review code for best practices, bugs, and security issues

Code Reviewer

This skill helps you review code for common issues.

When to Use

Use this skill when:

  • Reviewing pull requests
  • Checking code quality
  • Looking for security vulnerabilities

Guidelines

  1. Always check for:

    • Null pointer exceptions
    • SQL injection vulnerabilities
    • Hardcoded secrets
    • Missing error handling
  2. Provide constructive feedback with suggestions

  3. Prioritize issues by severity

Examples

Example 1: Security Review

When asked "review this code for security issues", focus on:

  • Input validation
  • Authentication/authorization
  • Data sanitization

Example 2: Performance Review

When asked about performance, check for:

  • N+1 queries
  • Unnecessary loops
  • Memory leaks