agentleFS
dekozadekoza/oh-my-slop/skills/workflow/ponytail-audit/SKILL.md

ponytail-audit

Skill4 starsChanged 8 months agoUnlicenseView on GitHub

Use when the user wants the codebase swept for over-engineering and bloat and a ranked list of what to cut — dead code, reinvented stdlib, single-implementation abstractions, pass-through wrappers, dead flags. Read-only, one-shot report; applies nothing. Triggers on: "audit this codebase", "find bloat", "what can I cut", "trim this down", "YAGNI check", "over-engineering check", "reduce code surface".

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 16 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read the tree and look for: dependencies the stdlib or platform already ships.

    line 37
  2. Distinctive:

    If the module is being consolidated in recent commits, the "simplify" signal is residual from a pre-consolidation state.

    line 55
  3. Very specific:

    Before flagging anything delete or yagni, confirm the cross-file usage yourself — grep the repo and read the callers.

    line 58

“Common” is measured: kept by at least 6 in 10 of the 16 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Ponytail Audit

A whole-repo audit for over-engineering. Read the codebase, then produce a ranked list of what to cut. Read-only — no files are modified, no fixes applied.

This audit is model-driven, not heuristic. Over-engineering detection is a cross-file, intent-laden judgment: a function is only dead once you've confirmed nothing references it across the whole repo; an abstraction is only speculative once you've counted its implementations everywhere; a wrapper is only pass-through once you've read what it actually does. Name patterns and per-file occurrence counts cannot make those calls — they produce near-universal false positives. So read the code, reason about usage and intent, and only flag what you can justify against the actual code.

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.

Hunt

Read the tree and look for: dependencies 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.

For a broader set of smells to detect (long methods, duplicated code, feature envy, shotgun surgery, primitive obsession, etc.), see Smell Catalog. The existing tags (delete, stdlib, native, yagni, shrink) still apply — the catalog adds what to look for, not new output format.

Accidental coupling — unrelated concerns sharing one file because they share a category name, not a domain concept. Example: three middlewares in middleware.py that have no behavioral relationship. This is not deepening — it's a file organization mistake. Flag as shrink: with recommendation to split into focused modules.

Lagging indicators — before flagging a module as both "too shallow" (deepen) and "too bloated" (simplify), check git log --oneline -10 for recent refactors. If the module is being consolidated in recent commits, the "simplify" signal is residual from a pre-consolidation state. Skip it.

Before flagging anything delete or yagni, confirm the cross-file usage yourself — grep the repo and read the callers. A Django view referenced by string in urls.py is not dead; a Protocol implemented in another module has more than one implementation; a settings flag is config, not a dead feature flag. A finding you cannot justify against the actual code is a false positive; drop it rather than pad the report.

Output

One line per finding, ranked biggest cut first:

<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 out of scope — route them to a normal review, not this one. Lists findings, applies nothing. One-shot.

Stop after presenting. Present the ranked findings, then ask the user which to act on — and stop. Do not start fixing, do not re-explore the codebase to "build confidence," and do not drift into a general architecture tour ("let me look at key modules, URL patterns, the overall architecture…"). That broader tour is a different activity; if the user wants it, that's what improve-codebase-architecture is for. The findings are cheap for the user to triage; they don't need you to pre-validate the whole codebase first.

Pair with

  • codebase-design — the "before you build" ladder that prevents bloat in the first place
  • ponytail-debt — tracking shortcuts deliberately left behind
  • court-jester — adversarial review of whether a finding is actually bloat or justified complexity

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

Reviews can't be read right now.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.