Code review

From JackyST0/awesome-agent-skills · View interactive version

Code review is an AI agent skill from the GitHub repository JackyST0/awesome-agent-skills. Smart code review skill that helps review code quality, identify potential issues, and provide improvement suggestions.

How to use this skill

Skill file

Code Review

智能代码审查技能,帮助审查代码质量、发现潜在问题、提供改进建议。

Smart code review skill that helps review code quality, identify potential issues, and provide improvement suggestions.

When to Use

当用户请求以下操作时使用此 skill:

Instructions

审查步骤 / Review Steps

  1. 阅读代码 - 仔细阅读提供的代码
  2. 检查问题:
  1. 提供建议 - 给出具体的改进建议
  2. 输出报告 - 使用标准格式生成审查报告

输出格式 / Output Format

## 代码审查报告 / Code Review Report

### 概述 / Summary
[简要总结 / Brief summary]

### 发现的问题 / Issues Found
- [ ] 问题 1 / Issue 1
- [ ] 问题 2 / Issue 2

### 改进建议 / Suggestions
1. 建议 1 / Suggestion 1
2. 建议 2 / Suggestion 2

### 评分 / Score
- 代码质量 / Code Quality: X/10
- 可读性 / Readability: X/10
- 可维护性 / Maintainability: X/10

Examples

输入 / Input

def calc(x,y):
    return x+y

输出 / Output

代码审查报告

概述

简单的加法函数,存在命名和格式问题。

发现的问题

改进建议

  1. 将函数重命名为 add_numbers
  2. 添加类型提示:def add_numbers(x: int, y: int) -> int:
  3. 添加 docstring 说明函数用途
  4. 遵循 PEP 8 格式规范

评分

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.