AGENT SKILL

代码优化成效看板

ponytail-gain

以精简的记分板展示 ponytail 的可量化成效:基于基准测试中位数,代码更少、成本更低、速度更快。一次性展示,不是持久模式,也不是针对单个仓库的数值。触发词:/ponytail-gain、“ponytail gain”“ponytail 节省了多少”“展示 ponytail 成效”“ponytail 记分板”。

License 许可
Apache-2.0
最近更新
2026-09-02
Stars
★ 1
Forks
0

01 前言 Front Matter

name
ponytail-gain
description
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".

03 SKILL.md 正文

Ponytail Gain

Display this scoreboard when invoked. One-shot: do NOT change mode, write flag files, or persist anything.

The figures are the published benchmark medians (5 everyday tasks: email validator, debounce, CSV sum, countdown timer, rate limiter; three models: Haiku, Sonnet, Opus). They are measured, not computed from the current repo. Source: benchmarks/ and the README.

Scoreboard

Render plain ASCII bars. The bar length shows the measured range; the label carries the exact figure:

  ponytail gain                     benchmark median · 5 tasks · 3 models

  Lines of code   no-skill  ████████████████████  100%
                  ponytail  ██▌·················    6–20%   ▼ 80–94%
  Cost            no-skill  ████████████████████  100%
                  ponytail  █████▌··············   23–53%  ▼ 47–77%
  Speed           ponytail  ▸ 3–6× faster

  This repo:  /ponytail-debt  (shortcuts you deferred)
              /ponytail-audit (what's still cuttable)

Honesty boundary

These are benchmark medians, not this repo. NEVER print a per-repo savings number ("you saved X lines/tokens here"): the unbuilt version was never written, so there is no real baseline to subtract from in a live repo. The only real per-repo figures come from /ponytail-debt (a counted ledger), and this card points there instead of inventing one.

Boundaries

One-shot display. Edits nothing, changes no mode. "stop ponytail" or "normal mode": revert.

04 同仓库更多 Skills

google
google/tf-remote-vars

极简编码方案

ponytail

强制采用最懒但实际可行、最简单、最短、最精简的解决方案。化身一位见多识广的高级开发者:质疑任务本身是否有存在的必要(YAGNI),在编写自定义代码之前先用标准库,在引入依赖之前先用原生平台能力,一行胜过五十行。支持强度级别:lite、full(默认)、ultra。适用于任何编码任务:编写、添加、重构、修复、审查或设计代码,以及选择库或依赖。当用户说「ponytail」「be lazy」「lazy mode」「simplest solution」「minimal solution」「yagni」「do less」或「shortest path」,或抱怨过度工程、臃肿、样板代码或不必要的依赖时也使用。不用于非编码请求(常识、散文、翻译、摘要、食谱)。

软件开发工程师代码实现
★ 1
google
google/tf-remote-vars

代码过度工程审查

ponytail-review

专注于过度工程化的代码审查。找出应当删除的内容:重复造标准库轮子、不必要的依赖、投机性的抽象、僵死的灵活性。每条发现一行:位置、要删什么、用什么替代。当用户说「review for over-engineering」「what can we delete」「is this over-engineered」「simplify review」或调用 /ponytail-review 时使用。与侧重正确性的代码审查互补,本技能只搜寻复杂性。

软件开发工程师设计评审与架构优化
★ 1
google
google/tf-remote-vars

ponytail 命令速查

ponytail-help

面向所有 ponytail 模式、技能和命令的快速参考卡。一次性展示,不是持久模式。触发词:/ponytail-help、“ponytail help”“有哪些 ponytail 命令”“如何使用 ponytail”。

软件开发工程师开发环境与工具链管理
★ 1
google
google/tf-remote-vars

技术债务台账整理

ponytail-debt

将代码库中的每个 `ponytail:` 注释汇总到一份债务台账中,使 ponytail 有意留下的捷径和延后事项得到跟踪,而不是烂尾成“以后再说就等于永远不做”。当用户说“ponytail 债务”“/ponytail-debt”“ponytail 推迟了什么”“列出这些捷径”“ponytail 台账”或“我们标记了哪些以后要做的事”时使用。一次性报告,不做任何更改。

软件开发工程师设计评审与架构优化
★ 1
google
google/tf-remote-vars

代码库过度工程审计

ponytail-audit

对整个代码仓库进行过度工程审计。类似 ponytail-review,但扫描的是整个代码库而非代码差异:给出一份按优先级排序的清单,列出可删除、简化或替换为标准库/原生等效实现的内容。当用户说“审计这个代码库”“检查过度工程”“这个仓库里能删掉什么”“找出冗余”“ponytail-audit”或“/ponytail-audit”时使用。一次性报告,不会应用任何修复。

软件开发工程师设计评审与架构优化
★ 1
google
google/tf-remote-vars

技能编写与编辑指南

writing-great-skills

关于如何编写和编辑技能的参考指南——阐述让技能可预测、行为一致的词汇与原则。

AI 工程师插件与技能管理
★ 1