Skip to content
Back to skills

Bob Code Review

ASecurity

按固定清单审查代码改动,找出会出问题的地方。当用户说「帮我 review」「审查一下这段代码」「看看这个改动有没有问题」「提交前检查一下」时使用。

  • 8 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 29, 2026
ai-agentssqlcode-reviewgit

Security analysis

A100/100

Scanned November 29, 2026

npx -y skills add TF49/AI-Helper --skill bob-code-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Bob Code Review?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Bob Code Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tf49-bob-code-review/badge)](https://www.skillsdirectory.com/skills/tf49-bob-code-review)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: bob-code-review
description: 按固定清单审查代码改动,找出会出问题的地方。当用户说「帮我 review」「审查一下这段代码」「看看这个改动有没有问题」「提交前检查一下」时使用。
---

# 代码审查

目标是找出真正会造成问题的地方,而不是挑风格。

## 步骤

1. 先弄清改动范围:有 git 仓库时看 `git diff`(未提交)或 `git diff <base>...HEAD`(分支);用户直接贴代码时就审查贴出的内容。
2. 读改动涉及的调用方和被调用方,不要只看 diff 本身。
3. 按下面的清单逐项检查。
4. 能运行测试或构建时就运行,把结果写进结论。

## 检查清单

- **正确性**:边界值、空值、空集合、并发、错误分支是否处理;返回值和异常有没有被吞掉。
- **数据安全**:有没有可能丢数据、覆盖用户文件、写一半中断后留下坏状态。
- **安全**:用户输入是否直接拼进命令、SQL、路径或 HTML;密钥是否写进日志或提交进仓库。
- **兼容性**:接口、配置格式、数据库结构的改动会不会让旧版本或旧数据出错。
- **测试**:新逻辑有没有对应测试;测试是否真的断言了行为,而不是只跑通。
- **可读性**:只在名字或结构会误导后来的人时才提。

## 输出格式

按严重程度分组,每条写清位置、问题、后果和建议改法:

```
必须修改
- 文件:行号 — 问题是什么;什么情况下会出错;建议怎么改

建议修改
- ...

可以忽略的小问题
- ...
```

- 没发现问题就直接说「没有发现需要修改的问题」,并说明检查了哪些方面。
- 不确定的地方标注「需要确认」,不要当成确定的缺陷来写。
- 不要为了显得有内容而凑数。
- 未经用户同意不要直接改代码。

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.