Ponytail Debt

作者 dietrichgebertb088b2df6e08MIT158K 个星标收录于 2026年10月8日更新于 2026年10月8日仓库今天更新

Harvest every ponytail: shortcut comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.

AI 生成的概览

扫描代码库中的 ponytail: 捷径注释,并将其汇总为一份债务台账报告。

功能
使用会跳过 node_modules、.git 和构建产物的 grep 命令,在代码库中搜索形如 ponytail: 的注释标记。每条命中都会成为按文件分组的一行台账,列出文件与行号、被简化的内容、所声明的上限以及升级触发条件。未注明升级路径或触发条件的注释会被标记为 no-trigger,报告末尾给出标记总数与无触发条件的数量。它只读取和报告;经请求可将台账写入 PONYTAIL-DEBT.md 之类的文件。
适用场景
当你希望把散落在代码库中的有意捷径和延后处理收集起来,使其得到跟踪而不是被遗忘时使用。它适合在开发周期前后对技术债务标记做一次性审查。
运行要求
需要一个包含 ponytail: 注释标记的代码库,以及可使用 grep 的 shell 环境。该技能不附带脚本,仅为说明性指令。将台账写入文件是可选的,且仅在请求时进行。

Every deliberate ponytail shortcut is marked with a ponytail: comment naming its ceiling and upgrade path. This collects them into one ledger so a deferral can't quietly become permanent.

Scan

Grep the repo for comment markers, skipping node_modules, .git, and build output:

grep -rnE --exclude-dir=.git --exclude-dir=node_modules --exclude-dir=dist --exclude-dir=build '(#|//|/[*]) ?ponytail:' . (add other comment prefixes if your stack uses them)

Each hit is one ledger row. The comment prefix keeps prose that merely mentions the convention out of the ledger.

Output

One row per marker, grouped by file:

<file>:<line>, <what was simplified>. ceiling: <the limit named>. upgrade: <the trigger to revisit>.

The convention is ponytail: <ceiling>, <upgrade path>, so pull the ceiling and the trigger straight from the comment. Want an owner per row too? add git blame -L<line>,<line>.

Flag the rot risk: any ponytail: comment that names no upgrade path or trigger gets a no-trigger tag, those are the ones that silently rot.

End with <N> markers, <M> with no trigger. Nothing found: No ponytail: debt. Clean ledger.

Boundaries

Reads and reports only, changes nothing. To persist it, ask and it writes the ledger to a file (e.g. PONYTAIL-DEBT.md). One-shot. "stop ponytail-debt" or "normal mode" to revert.

来源与署名

来源:dietrichgebert/ponytail位于.openclaw/skills/ponytail-debt提交b088b2d

许可证: MIT

内容归原作者所有。SourceWeft 从公开仓库中收录这些内容。

举报或申请下架