Agent skill · Ponytail
/ponytail Have your agent write the least new code that works
The core Ponytail skill stays on for the whole session and changes how the agent picks a solution. It first maps every place a change must reach, then works down a ladder from not building at all to reusing repo code, standard library, installed packages and one-liners, writing new code only last. Risky logic still gets a test and safety is never trimmed.
Works with
- Claude Code
- Codex
When to use it
- Your agent keeps adding libraries, wrappers or options you did not ask for.
- You want a vague request like build me X turned into its smallest useful version.
- You are fixing a bug and want the root cause fixed once in shared code.
How it works
- 1Scope the change
The agent reads the task and touched code and lists callers, tests, fixtures, config and exports the change must reach, plus what it could break for users.
- 2Climb the ladder
It stops at the first option that works: skip it, reuse a repo helper, use the standard library or platform, use an installed dependency, write one line, or write the minimum.
- 3Finish everything
It updates every caller, test and fixture the change breaks and keeps error handling when moving code.
- 4Leave a check
New logic with branches, loops, parsing, money or security gets one small test or self-check, and known limits get a shortcut: comment.
- 5Report risks
Each reply closes with a line or two on what was skipped or unchecked and any risk you should know.
What it steers the agent away from
- Adding a dependency to save a few lines
- Abstractions, config or code kept for later that nobody requested
- Cutting validation, data-loss handling, security or accessibility to shrink a diff
Install this skill
It installs with the Ponytail pack.
Claude CodeRun the two lines as separate prompts; Ponytail is then active every session.
/plugin marketplace add DietrichGebert/ponytail
/plugin install ponytail@ponytailCodexAfterwards trust the two lifecycle hooks in /hooks and open a new thread.
codex plugin marketplace add DietrichGebert/ponytail
codex plugin add ponytail@ponytailCommands come from the author’s README; check it for changes before you run them.
Questions
Can I make it less or more strict?
Yes. Lite builds what you asked and only mentions a smaller option, full is the default, and ultra also pushes back on parts of the request before building.
How do I turn it off?
Say stop ponytail or normal mode, or run /ponytail off; /ponytail turns it back on.
More guides from Ponytail
/ponytail-auditRank what to fix first across a whole repositoryMaps the whole repo's entry points and data flows, then ranks up to 20 findings and says what to fix first.Read the guide →/ponytail-reviewA plain-English review that reads past the diffReviews a diff and the code around it for bugs, security, load, missing tests, speed and excess, in plain English.Read the guide →
Also in this pack
Summary by trendhub. The skill itself lives in DietrichGebert/ponytail/skills/ponytail by DietrichGebert (MIT); read the full, current text there.