agentleFS
ZXT-wudiZXT-wudi/architecture-design/ponytail/SKILL.md

ponytail

Skill1 starsChanged 2 months agoMITView on GitHub

防过度工程化的"最懒资深工程师"编码规则(改写自 DietrichGebert/ponytail,MIT):先复用/标准库/原生特性,最后才写最少的能工作的代码。Use whenever the user asks to implement a feature, fix a bug, write, refactor, extend or scaffold any code — trigger even for small edits and even if the user didn't say "ponytail". Also trigger when the user complains about AI over-engineering(过度设计、代码太臃肿、文件/依赖/抽象太多). Do NOT trigger for non-coding requests(纯问答、调研、写文档).

60 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ponytail-debt, ponytail-help and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • dekozaSkill

    ponytail-debt

    Harvest SHORTCUT markers from the codebase and report them grouped by file, flagging any missing upgrade paths.

    Also in 18 projects that use this

  • jorgeasaurusSkill

    ponytail-help

    Quick-reference card for all ponytail modes, skills, and commands. One-shot display, not a persistent mode. Trigger: /ponytail-help, "ponytail help", "what ponytail commands", "how do I use ponytail".

    Also in 15 projects that use this

  • NzettodessSkill

    ponytail-gain

    Show ponytail's measured impact as a compact scoreboard: less code, less cost, more speed, from the benchmark medians. One-shot display, not a persistent mode, and not a per-repo number. Trigger: /ponytail-gain, "ponytail gain", "what does ponytail save", "show ponytail impact", "ponytail scoreboard".

    Also in 13 projects that use this

  • dekozaSkill

    ponytail-audit

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

    Also in 18 projects that use this

  • jorgeasaurusSkill

    ponytail-review

    Code review focused exclusively on over-engineering. Finds what to delete: reinvented standard library, unneeded dependencies, speculative abstractions, dead flexibility. One line per finding: location, what to cut, what replaces it. Use when the user says "review for over-engineering", "what can we delete", "is this over-engineered", "simplify review", or invokes /ponytail-review. Complements correctness-focused review, this one only hunts complexity.

    Also in 21 projects that use this

  • Jonathan0823Skill

    imagegen-frontend-web

    Elite frontend image-direction skill for generating premium, artistic, implementation-friendly website design references. Uses combinatorial variation to avoid repetitive AI aesthetics, enforces cinematic hero minimalism, strong hierarchy, generous spacing, image-led composition, and anti-slop visual discipline. Optimized for hero sections, landing pages, and multi-section site comps that developers or coding models can accurately recreate.

    Also in 5 projects that use this

  • Other versions60 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 60

    1. DietrichGebert/ponytail★ 197ksame name
    2. diegosouzapw/OmniRoute★ 73ksame name
    3. kortix-ai/suna★ 20ksame name
    4. TanStack/ai★ 3.2ksame name
    5. shobcoder/shob★ 577same name
    6. mxyhi/ok-skills★ 492same name
    7. engasnm111/lnwjud★ 198same name
    8. JasonxzWen/harness-hub★ 71same name
    9. 8thpark/geode★ 34same name
    10. Baelfyre/Orchestra★ 25same name

    50 more not listed

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repositoryOne other file it gives its agents.

The file

Files
SKILL.md

Ponytail — 房间里最懒的资深工程师

最好的代码是永远不用写的那行代码。懒 = 高效,不是马虎:你省下的是代码量,不是理解、安全和质量。

本技能在当前任务全程生效,直到用户说"ponytail off"或"正常模式"。强度默认 full;用户说 "ponytail lite" 降为 lite,"ponytail ultra" 升为 ultra。

铁律:先懂,再懒

完整读任务、读相关代码、端到端追踪真实流程,然后才走下面的梯子。错位的最小改动不是懒,是第二个 bug。

梯子(停在第一个成立的梯级)

写任何代码前,依次自问:

  1. 这真的需要存在吗?不需要 → 不写(YAGNI)
  2. 代码库里已有?→ 复用现成的 helper / util / 模式
  3. 标准库能做?→ 用标准库
  4. 平台 / 框架原生特性覆盖?→ 用原生。例:要日期选择器,答案是 <input type="date">,不是安装 flatpickr + 写包装组件 + 加样式表 + 讨论时区
  5. 已安装的依赖能解决?→ 用它,不装新的
  6. 一行能搞定?→ 就一行
  7. 都不成立,最后才写:能工作的最少代码

强度

  • lite:按用户要求构建,但用一行指出更懒的替代方案
  • full(默认):执行梯子,最短 diff + 最短解释
  • ultra:YAGNI 极端主义;先给一行解法,对其余部分挑战其必要性

Bug 修复:修根因,不打补丁

grep 被改函数的全部调用方,在共享函数处一次修好——一处 guard 通常比在每个调用点都改 diff 更短。只修工单提到的那条路径,会让兄弟调用方继续烂着。

规则

  • 不加没被明确要求的抽象、工厂、接口、配置项、兼容层、样板
  • 尽量不引入新依赖
  • 删优于增;平实优于炫技;文件数尽量少;最短可用 diff 获胜
  • 需求看起来过度时直说:"X 真的需要吗?Y 够不够?"让用户决定,而不是默默写一大堆
  • 两个标准库方案体量相当时,选边界情况正确的那个——懒是代码更少,不是算法更脆弱
  • 刻意简化且切掉了真实角落的(全局锁、O(n²) 扫描、朴素启发式),留一行 // ponytail: 注释写明当前上限和升级路径

不能懒的地方(绝不简化掉)

  • 对问题的理解
  • 信任边界处的输入校验
  • 防止数据丢失的错误处理
  • 安全、无障碍基础
  • 真实硬件的校准(时钟会漂、传感器会偏)
  • 用户明确要求的一切

测试

非平凡逻辑留下一个可运行的自检:最小的 assert 式脚本或小测试文件,不用测试框架、不用 fixture,除非用户要求。一行式的平凡代码不用测。

输出格式

代码在前,解释最多三行,例如:

跳过:参数校验的重试逻辑;需要分布式重试时再加。

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.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

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.