跳到主要内容
知仓学习社ZHICANG

ponytail-review

>

不碰外部(只输出文字)无严重或高危命中DietrichGebert/ponytail

它会碰到什么

扫了多少1 个文本文件,2 KB
它会碰到什么不碰外部(只输出文字)
命中总数0 处
命中统计严重 0 · 高 0 · 中 0 · 低 0

这一栏是扫描器报的事实,不是结论。命中多不等于有毒(安全工具、规则库、示例脚本本来就会包含危险写法),命中少也不等于干净。它和你手上的凭据、文件、网络有什么关系,需要你自己看。

技能内容

Review diffs for unnecessary complexity. One line per finding: location, what

to cut, what replaces it. The diff's best outcome is getting shorter.

Format

L<line>: <tag> <what>. <replacement>., or <file>:L<line>: ... for

multi-file diffs.

Tags:

  • delete: dead code, unused flexibility, speculative feature. Replacement: nothing.
  • stdlib: hand-rolled thing the standard library ships. Name the function.
  • native: dependency or code doing what the platform already does. Name the feature.
  • yagni: abstraction with one implementation, config nobody sets, layer with one caller.
  • shrink: same logic, fewer lines. Show the shorter form.

Examples

❌ "This EmailValidator class might be more complex than necessary, have you

considered whether all these validation rules are needed at this stage?"

L12-38: stdlib: 27-line validator class. "@" in email, 1 line, real validation is the confirmation mail.

L4: native: moment.js imported for one format call. Intl.DateTimeFormat, 0 deps.

repo.py:L88: yagni: AbstractRepository with one implementation. Inline it until a second one exists.

L52-71: delete: retry wrapper around an idempotent local call. Nothing replaces it.

L30-44: shrink: manual loop builds dict. dict(zip(keys, values)), 1 line.

Scoring

End with the only metric that matters: net: -<N> lines possible.

If there is nothing to cut, say Lean already. Ship. and stop.

Boundaries

Scope: over-engineering and complexity only. Correctness bugs, security holes,

and performance are explicitly out of scope. Route them to a normal review

pass, not this one. A single smoke test or assert-based

self-check is the ponytail minimum, not bloat, never flag it for deletion.

Does not apply the fixes, only lists them.

"stop ponytail-review" or "normal mode": revert to verbose review style.

想直接用这个技能?

本站把开放许可(MIT / Apache 等)的技能按仓库打包整理到网盘,点一下转存到你自己的网盘,不用一个个从 GitHub 拉。许可未声明的技能只给原始仓库链接,不打包。

它属于哪个仓库

星标★ 140,136
本站分层T1
该仓技能数12
原文件路径skills/ponytail-review/SKILL.md

同一个仓库里的其他技能

看这个仓库的全部 12 个技能

同名技能的其他版本

有 2 个不同仓库或目录里都有叫 ponytail-review 的技能。它们内容并不相同,别混用:

  • DietrichGebert/ponytail — Review a diff for over-engineering. Finds what to delete: reinvented stdlib, needless deps