Skip to content
Development
Command

/review

对代码进行全面审查,输出结构化报告

From plugin
claude-code-engineering
1.1k11 skills16 agents11 commands
Install
$ npx -y skills add huangjia2019/claude-code-engineering --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/review

Context preview

What this command does when you run it.

对代码进行全面审查,输出结构化报告

Command definition

review.md
name: review
description: 对代码进行全面审查,输出结构化报告

当用户运行 `/review [target]` 时,执行代码审查。

审查维度

1. **代码质量**

  • 命名规范(camelCase/PascalCase)
  • DRY 原则(重复代码)
  • 函数长度(建议 < 30 行)
  • 圈复杂度(建议 < 10)

2. **TypeScript 特定**

  • 类型安全(避免 any)
  • 空值处理(可选链、空值合并)
  • 接口设计

3. **React 特定**

  • Hooks 规则
  • 组件拆分
  • 状态管理

4. **安全**

  • 输入验证
  • XSS 防护
  • 敏感数据处理

5. **测试**

  • 测试覆盖率
  • 边界条件

输出格式

# 代码审查报告

**目标**: {target}
**时间**: {timestamp}
**审查者**: Claude (team-toolkit v2.0.0)

## 总览

| 类别 | 发现 | 严重性 |
|------|------|--------|
| 代码质量 | X | 中 |
| 安全 | Y | 高 |
| 性能 | Z | 低 |

## 必须修复

### [问题标题]
**文件**: path/to/file.ts:42
**类型**: 安全漏洞

**问题**:
[详细描述]

**修复建议**:
\`\`\`typescript
// 建议的修复代码
\`\`\`

## 建议修复
...

## 可选改进
...

## 亮点

[做得好的地方]

---
*由 team-toolkit 生成*
Ships withclaude-code-engineering

This repository demonstrates how to use Claude Code to do real engineering work, not just writing code. 本项目是极客时间专栏 《Claude Code 工程化实战》 的官方配套示例仓库,目标就是: 👉 把 Claude Code 从“对话式编码工具”,变成 可设计、可复用、可治理的工程系统。

Get the whole plugin, auto-invoked
Stats
1,050
Stars
0
Views
373
Forks
Active
Maintenance
JavaScript
Language
16d ago
Last commit
6mo ago
Created

Repo: huangjia2019/claude-code-engineering