---
id: gh-ponytail-audit
name: "ponytail-audit"
url: https://skills.yangsir.net/skill/gh-ponytail-audit
author: dietrichgebert
domain: ai-code-generation-quality
tags: ["code-audit", "refactoring", "code-quality", "simplification", "over-engineering"]
install_count: 43100
rating: 4.70 (120 reviews)
github: https://github.com/dietrichgebert/ponytail/tree/main/.openclaw/skills/ponytail-audit
---

# ponytail-audit

> 此技能用于审计整个代码仓库，识别并列出过度工程化的部分。它能帮助开发者发现并删除冗余代码、简化复杂实现，或替换为标准库/原生功能。通过提供一份按优先级排序的优化建议清单，该 Skill 大幅提升了代码审查的效率和准确性，有效减少了技术债务，从而提升代码质量、可维护性和项目的长期健康度。

**Stats**: 43,100 installs · 4.7/5 (120 reviews)

## Before / After 对比

### 过度工程化代码审计效率

**Before**:

在没有此技能之前，开发者或团队需要投入大量时间进行人工代码审查，逐行查找过度工程化、冗余或可简化的代码，耗时且容易遗漏关键优化点。

**After**:

该 Skill 能够自动化扫描整个代码仓库，快速识别并排名过度工程化的部分，显著减少了人工审计的时间投入，并确保了更全面的覆盖，提升了代码质量和维护效率。

| Metric | Before | After | Change |
|---|---|---|---|
| 审计时长 | 480分钟 | 60分钟 | -87% |

## Readme

ponytail-review, repo-wide. Scan the whole tree instead of a diff. Rank
findings biggest cut first.

## Tags

Same as ponytail-review:

- `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.

## Hunt

Deps the stdlib or platform already ships, single-implementation interfaces,
factories with one product, wrappers that only delegate, files exporting one
thing, dead flags and config, hand-rolled stdlib.

## Output

One line per finding, ranked: `<tag> <what to cut>. <replacement>. [path]`.
End with `net: -<N> lines, -<M> deps possible.` Nothing to cut: `Lean already. Ship.`

## 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. Lists findings, applies nothing. One-shot.
"stop ponytail-audit" or "normal mode" to revert.


---
*Source: https://skills.yangsir.net/skill/gh-ponytail-audit*
*Markdown mirror: https://skills.yangsir.net/api/skill/gh-ponytail-audit/markdown*