# 改动质量审查 (ponytail-review)

> 从正确性、安全、负载、测试、速度和精简度审查一次改动，阅读相关代码而不只看 diff。

- 分类: [代码评审](https://www.myskills.tools/zh/categories/code-review/)
- 来源: 社区 · DietrichGebert
- 代码仓库: https://github.com/DietrichGebert/ponytail/tree/main/skills/ponytail-review (commit 2a1fe84)
- SKILL.md: https://github.com/DietrichGebert/ponytail/blob/main/skills/ponytail-review/SKILL.md
- 安装命令: `npx skills add DietrichGebert/ponytail --skill ponytail-review`
- 许可证: MIT
- 兼容工具: Claude Code, Codex, Cursor
- 权限: read-repo ✓, write-files ✗, shell ✓, network ✗
- 状态: 扫描通过
- 规则扫描无法覆盖所有风险，安装前请阅读此技能的 SKILL.md，确认权限后再使用。

## 核心规则

每条问题都必须给出具体情形，说明什么输入会导致什么错误结果；没有具体情形就不算问题。

## 执行阶段

1. **先理解改动** — 阅读 diff 以及调用方、被调用函数、测试和 README，追踪数据流，并从仓库中判断预期负载。
2. **逐项查找问题** — 依次检查 bug、安全与数据丢失风险、规模问题、缺失测试、速度和可删减的代码。
3. **报告前核实** — 重读相关代码确认问题成立，给出最小可行修复，优先删代码，不写风格偏好或模糊担忧。
4. **用浅白语言输出** — 先说明改动做了什么，再按必须修、应该修、可选分组编号列出问题，最后给出结论。

## 权限说明（据 SKILL.md 整理）

| 能力 | 是否需要 | 说明 |
|---|---|---|
| 文件写入 | 不需要 | 只列出问题，不修改任何代码。 |
| 命令执行 | 部分需要 | 仅用于查看改动和搜索调用方的只读命令，例如读取 diff 和 grep。 |
| 网络外发 | 不需要 | 说明中没有网络访问步骤。 |

## SKILL.md 头部信息（YAML）

```yaml
---
name: ponytail-review
description: >
  Quality review of a change: is the logic right, is it safe, does it hold
  under real load, is risky code tested, is it fast enough, and is every line
  needed. Reads the connected code, not only the diff. Each finding is
  explained in plain English. Use for "review this", "code review", "review
  the last commit", "review my PR", "is this over-engineered", /ponytail-review.
---
```

首页: https://www.myskills.tools/zh/ · URL: https://www.myskills.tools/zh/skills/ponytail-review/
