AGENT SKILL

ponytail-debt

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

License 许可
Unlicense
所属仓库
dekoza/oh-my-slop
最近更新
2026-10-28
Stars
★ 4
Forks
0

01 前言 Front Matter

name
ponytail-debt
description
Harvest SHORTCUT markers from the codebase and report them grouped by file, flagging any missing upgrade paths.
disable-model-invocation
true

02 资源文件 1

03 SKILL.md 正文

Ponytail Debt

Harvest SHORTCUT: markers from the codebase. Read-only unless --output-debt-file is passed.

Marker format

Shortcuts are tagged during development (typically in TDD cycles):

# SHORTCUT: <what's skipped>. Upgrade: <what to do when this matters>.

Both # (Python) and // (TypeScript/JS) styles are recognized.

What it finds

Every SHORTCUT: marker in source files. Reports:

  • File and line number
  • What was simplified/skipped
  • Upgrade path (if present)
  • ⚠️ flag on markers missing an upgrade path

How to run

The script is bundled alongside this SKILL.md in the skill's scripts/ directory. The agent should resolve the path to this SKILL.md file and run:

uv run python <path-to-this-skill>/scripts/ponytail_debt.py <target-path> [--output-debt-file]
  • <path-to-this-skill> — directory containing this SKILL.md (e.g. ~/.pi/agent/git/github.com/dekoza/oh-my-slop/skills/workflow/ponytail-debt)
  • <target-path> — root directory to scan (default: .)
  • --output-debt-file — write SHORTCUT-DEBT.md for persistent tracking

Output format

Grouped by file:

## path/to/file.py
  L42: <what was simplified>. ceiling: <upgrade path>.
  L87: <what was simplified>. ceiling: none. ⚠️ no-trigger

---
<N> markers, <M> with no trigger.

Workflow

  1. Run the script against the project root.
  2. Present all markers grouped by file.
  3. Flag markers missing upgrade paths — these are time bombs.
  4. For each marker, ask: resolve now, schedule later, or accept permanently.
  5. Run with --output-debt-file to write SHORTCUT-DEBT.md for tracking.

Marker lifecycle

Phase Action
Write code Tag shortcuts with # SHORTCUT: markers
Refactor Resolve or upgrade shortcuts before they compound
Audit Run this skill to find all markers
Track Generate SHORTCUT-DEBT.md for the team

Pair with

  • tdd — where shortcuts are tagged during the red-green cycle
  • ponytail-audit — for finding bloat the agent didn't tag
  • codebase-design — for the ladder that prevents shortcuts in the first place

04 同仓库更多 Skills

dekoza
dekoza/oh-my-slop

wizard

Generate an interactive bash wizard that walks a human through a manual procedure — third-party setup, credential provisioning, a one-off migration — opening URLs, capturing values, confirming each step, and writing .env files and CI secrets (GitHub and Gitea/Forgejo Actions).

★ 4
dekoza
dekoza/oh-my-slop

restore-test-pyramid

Analyze the project's E2E suite and push every assertion that doesn't need a real browser down to a faster integration or unit test, proving each migration honest before thinning E2E.

★ 4
dekoza
dekoza/oh-my-slop

humanify

Repair an inherited or human-blocked ticket for agent implementation, or finish its explicit human-only outcome.

★ 4
dekoza
dekoza/oh-my-slop

fix-pr

Repair an existing pull request's review findings and target-branch conflicts, verify the result, and update the same open PR.

★ 4
dekoza
dekoza/oh-my-slop

feature-milestones

Reconstruct a fragmented backlog as finishable feature milestones with explicit delivery boundaries and an approval-gated tracker update.

★ 4
dekoza
dekoza/oh-my-slop

council

Use when the user wants a high-stakes decision debated by independent perspectives and synthesized into a verdict — five advisors (Contrarian, First Principles, Expansionist, Outsider, Executor) answer independently, peer-review anonymously, then a chairman synthesizes. Triggers on: "council this", "convene the council", "run a council on", "rerun the council", "I want the council to debate this", "five independent perspectives", "have advisors weigh in and peer-review each other".

★ 4