Code review

From hyperlist/feishu-multi-agent · View interactive version

Code review is an AI agent skill from the GitHub repository hyperlist/feishu-multi-agent. 代码审查技能。用户发送 /review 或要求 review 时触发。 自动检查代码质量、安全问题、架构建议。

How to use this skill

Skill file

Code Review

触发

审查流程

1. 确定审查范围(git diff / 指定文件 / 整个项目)
2. 按 checklist 逐项检查
3. 输出审查报告(问题分级:🔴 严重 / 🟡 建议 / 🟢 良好)

Checklist

🔴 必须修复

🟡 建议改进

🟢 架构层面

输出格式

## 审查报告: {文件/项目名}

### 🔴 严重问题 (N 个)
1. **[文件:行号]** 问题描述
   建议修复方案

### 🟡 改进建议 (N 个)
1. **[文件:行号]** 建议描述

### 🟢 总体评价
一句话总结代码质量和架构状态

快速命令

# 审查最近 commit 的改动
git diff HEAD~1 --stat
git diff HEAD~1 -- <有改动的文件>

# 审查未提交的改动
git diff --stat
git diff -- <文件>

# 检查 Python 代码质量
python3 -m py_compile <文件>
python3 -m pytest --tb=short
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.