ponytail-reviewcommit 2a1fe84SKILL.md · 代码评审
改动质量审查
从正确性、安全、负载、测试、速度和精简度审查一次改动,阅读相关代码而不只看 diff。
npx skills add DietrichGebert/ponytail --skill ponytail-review已选中命令,请手动复制。
- 权限
- read-repo
- write-files
- shell
- network
- 兼容工具
- Claude Code, Codex, Cursor
- GitHub
- 181.7k
- 来源
- 社区 · DietrichGebert
- 状态
- 扫描通过
- 许可证
- MIT
- 分类
- 代码评审
核心规则
每条问题都必须给出具体情形,说明什么输入会导致什么错误结果;没有具体情形就不算问题。
执行阶段
阶段 01先理解改动
阅读 diff 以及调用方、被调用函数、测试和 README,追踪数据流,并从仓库中判断预期负载。
阶段 02逐项查找问题
依次检查 bug、安全与数据丢失风险、规模问题、缺失测试、速度和可删减的代码。
阶段 03报告前核实
重读相关代码确认问题成立,给出最小可行修复,优先删代码,不写风格偏好或模糊担忧。
阶段 04用浅白语言输出
先说明改动做了什么,再按必须修、应该修、可选分组编号列出问题,最后给出结论。
权限说明(据 SKILL.md 整理)
| 能力 | 是否需要 | 说明 |
|---|---|---|
| 文件写入 | 不需要 | 只列出问题,不修改任何代码。 |
| 命令执行 | 部分需要 | 仅用于查看改动和搜索调用方的只读命令,例如读取 diff 和 grep。 |
| 网络外发 | 不需要 | 说明中没有网络访问步骤。 |
SKILL.md 头部信息(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.
---相关技能
规则扫描无法覆盖所有风险,安装前请阅读此技能的 SKILL.md,确认权限后再使用。