Ponytail Debt

DietrichGebert/ponytail/skills/ponytail-debt

作者 DietrichGebert9cc65d03aa2da1db7121b912d03596409ee340b8无许可证158K 个星标收录于 2026年10月9日更新于 2026年10月9日仓库今天更新

List every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.

AI 生成的概览

扫描代码库中的 shortcut: 和 ponytail: 注释标记,并汇总为债务清单。

功能
该技能会在代码库中检索 shortcut: 以及较早的 ponytail: 等注释标记,并跳过 node_modules、.git 和构建产物。它按文件对每个命中项分组,输出包含文件与行号、被简化的内容、所声明的上限以及升级触发条件的行。未注明升级路径或触发条件的标记会被打上 no-trigger 标签,报告末尾给出标记总数和无触发条件的数量。它只读取和报告;如被要求,可将清单写入文件。
适用场景
适用于审查代码库中有意留下的延后处理,例如被问及 ponytail 债务、ponytail 延后了什么,或要求列出这些捷径时。适合在延后处理可能变成永久问题之前做一次性审计。
运行要求
需要一个待扫描的代码库,以及带 grep 的 shell 环境;可选使用 git blame 为每行标注负责人。不附带脚本,除非被要求将清单写入文件,否则不做任何更改。

Every deliberate ponytail shortcut is marked with a shortcut: comment naming its ceiling and upgrade path (older code may say ponytail:). 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 '(#|//|/[*]) ?(shortcut|ponytail):' . (add other comment prefixes if your stack uses them)

If the user names their own marker word (/ponytail-debt TODO), grep for that word instead.

Each hit is one ledger row. The comment prefix keeps prose that merely mentions the convention out of the ledger. Skip hits that are not a deferral, like a note about a keyboard shortcut.

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 shortcut: <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 marker 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 shortcut 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位于skills/ponytail-debt提交9cc65d0

许可证: 无许可证

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

举报或申请下架

更多来自 DietrichGebert/ponytail 的技能

Ponytail Review

DietrichGebert

审查代码改动是否正确、安全、可承受负载、有测试、够快且精简,并输出审查报告。

Software Development158K今天更新

Ponytail Help

DietrichGebert

Quick reference for ponytail levels, skills and commands. One-shot display. Use for /ponytail-help, "ponytail help", "how do I use ponytail".

待分类158K今天更新

Ponytail Audit

DietrichGebert

Quality audit of a whole repo: bugs, security holes, what breaks under real load, risky code without tests, slow paths, and what to delete, merge or split. Ranked, each finding explained in plain English. One-shot report, changes nothing. Use for "audit this codebase", "review the whole repo", "find bloat", "what can I delete", /ponytail-audit.

待分类158K今天更新

Ponytail

DietrichGebert

Lazy senior dev mode: the smallest change that fully solves the task, and a reply a busy human understands in one read. Use on any coding task (writing, fixing, refactoring, reviewing, choosing dependencies) and when the user says "ponytail", "be lazy", "simplest solution", "yagni", or complains about over-engineering or bloat. Levels: lite, full (default), ultra.

待分类158K今天更新

Ponytail Review

dietrichgebert

审查代码差异,检查缺陷、安全、负载、缺失测试、速度与冗余代码,并输出发现报告。

Software Development158K今天更新

Ponytail Help

dietrichgebert

一次性显示 ponytail 的模式、技能与命令速查卡,不更改任何状态。

AI & Agents158K今天更新