ponytail-audit

ponytail-audit is a skill for Claude Code from mirkobozzetto/espresso. It costs 105 tokens per session (478 once invoked), scanned A, a copy of ponytail-audit, MIT.

A whole-codebase audit for unnecessary complexity. It searches the repository for dead code, needless flexibility, duplicate helpers, and custom code that standard libraries or platform features already provide.

In plain words
What is it for?
Use it to produce a ranked list of code to delete, shrink, reuse, or replace, with checks for references before recommending deletion.
Why use it?
It finds simplifications across the entire repository instead of limiting the review to one change or file.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the espresso plugin — 7 skills, 1 agent shipped together

Good fit Use it to produce a ranked list of code to delete, shrink, reuse, or replace, with checks for references before recommending deletion.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mirkobozzetto/espresso/ponytail-audit
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mirkobozzetto/espresso --skill ponytail-audit
Clone the repo
git clone --depth 1 https://github.com/mirkobozzetto/espresso

Made for: Claude Code.

Or install espresso, the plugin that ships this one along with the rest of its 7 skills, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for ponytail-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/mirkobozzetto/espresso/ponytail-audit/github.svg)](https://agentmods.dev/skills/mirkobozzetto/espresso/ponytail-audit)
Your own site
<a href="https://agentmods.dev/skills/mirkobozzetto/espresso/ponytail-audit"><img src="https://agentmods.dev/badge/skills/mirkobozzetto/espresso/ponytail-audit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ponytail-audit

Your own site · 80×15
<a href="https://agentmods.dev/skills/mirkobozzetto/espresso/ponytail-audit"><img src="https://agentmods.dev/badge/skills/mirkobozzetto/espresso/ponytail-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 105 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 478 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 88% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00105 $0.00478
Opus 5.5 $0.00042 $0.00191
Sonnet 5.5 $0.00021 $0.00096
Haiku 4.5 $0.00011 $0.00048

Measured 1mo ago against content hash 38c209f3b56c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

ponytail-audit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

88% identical to ponytail-audit — 3 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/ponytail-audit/SKILL.md · 47 lines

What it actually says

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.
  • reuse: equivalent helper, util, or pattern already in this repo. Name the path.
  • 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, helpers duplicating an equivalent that already lives in this repo. Before emitting delete:, grep the whole tree for the symbol, including tests, fixtures and string or dynamic references.

Output

One line per finding, numbered and ranked: <N>. <tag> <what to cut>. <replacement>. [path], so the user can say "fix 2 and 5". 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.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 47 lines · 105 tokens per session scan A 38c209f3b56c

Subscribe to this mod's changes

ponytail-audit is a skill published in the GitHub repository mirkobozzetto/espresso (25 stars, last pushed 1mo ago), licensed MIT. It adds 105 tokens to every session and 478 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 88% identical to ponytail-audit, differing in 3 lines, and is treated as a copy.

Related

ponytail-audit compared with skills from other repositories

ponytail-audit next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ponytail-auditmirkobozzetto/espressoSkill251mo agoMITA105Claude Code
autoreviewopenclaw/clawhubSkill9.6ktodayMITA17Claude Code, Codex
agent-teams-simplify-and-hardenLeoYeAI/openclaw-master-skillsSkill2.2k12d agoMITA115Claude Code, Codex
asplos-writing-stylebrycewang-stanford/Awesome-Journal-SkillsSkill1.5kyesterdayMITA65Claude Code
revdiff-planumputun/revdiffSkill977yesterdayMITA84Claude Code
re0-mergeLilMGenius/paperthinSkill1.5ktodayMITA51Claude Code, Codex
explore-unknownsdzhng/skillsSkill1.5k20d agoMITA162Claude Code, Codex