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 從公開儲存庫中收錄這些內容。

檢舉或申請下架